The Use Tutorial of M_Berry Miner_ubuntu Node Procedure

BlockCDN
5 min readJan 13, 2018

--

The use tutorial is available for the Ubuntu 16.04 version of the Linux Kernel, which is currently the most widely used version.

Download linux mining procedure at http://www.blockcdn.org/html/download/.

It should be a compressed file which includes mining procedure and environmental dependencies.

1. The installation of Go environmental dependencies:

(1) Because the node procedure doesn’t support the above 1.8 version of Go language, if want to install go language by default under Linux, it is generally 1.6 version and can’t meet the requirements. So the go language needs to be re-installed.

(2) Download go language:

Method one: log on the official website

https://storage.googleapis.com/golang/go1.9.1.linux-amd64.tar.gz

Method two: use the downloaded Go procedure package(recommend)

(3) Installation

1)Download go1.9.1 language package from the official website or copy the installation package to Ubuntu system, in general, the copied data package can be decompressed automatically.

2) Enter the following command after the station command( notice: this command should be executed in the directory under the compression package, otherwise the compression package will not be available.)

sudo tar -C /usr/local -zxvf go1.9.1.linux-amd64.tar.gz

as the following

Complete compression to the selected content

1) Configure the environment variable

sudo mkdir -p ~/go/src

echo “export GOPATH=$HOME/go” >> ~/.bashrc

echo “export PATH=$PATH:$GOPATH/bin:/usr/local/go/bin” >> ~/.bashrc

source ~/.bashrc

go version

Through go version, you can query the current version of the go environment. From the above pictures, the version of successful installation is go 1.9.1. It means a success with installation and environment.

2. The installation of Libervent: Libevent is light, based on event-driven and high-performance open resource network, and support multiple platforms and package I/O multiplexing technology. When we compile the library code, compiled script will compile the corresponding code according to the OS event handing mechanism, so as to be consistent in Libevent interface.

(1) The installation package for Libevent is already in the attachment. You need to copy it into the Linux system and complete the decompression.

(2) Enter the compressed file with station command

cd Libevent-release-2.1.8-stable

(3) Generate configuration file

./autogen.sh

(4) Configure the destination path for the installation library

./configure — prefix=/usrcon

(5) Compile and install Libevent

make

sudo make install

(6) Check it

ls -al /usr/lib | grep libevent

(7) This information means successful installation.

3. Protobuf installation: Google Protocol Buffer (hereinafter referred to as Protobuf) is a mixture of Google’s internal language data standards. There are more than 48162 kinds of message format definition and more than 12183 the proto file now being used for RPC system and continuous data storage system. Protocol Buffers is a kind of portable structured data storage format, and can be used for structured data serialization, or serialize. It is very suitable for data storage or RPC data exchange format. And it can be used for communication Protocol and data storage in the areas of unconnected language and independent platform and extensible structure serialization data format. Currently it offers three languages c + +, Java Python API.

(1) Prepare work: before installing protobuf, you need to install some stool.

sudo apt-get install autoconf automake libtool curl make g++ unzip

sudo apt-get install libssl-dev

(2) Need to copy the package to Linux system, and compress to the content.

(3) Into the compressed file with station command

./autogen.sh

(4) Configure the installation information

./configure

(5) Compile and check the compiled file ( about one hour, please be patient)

make

make check

(6) Install protobuf

sudo make install

(7) To guarantee successful installation, enter the following commdar

sudo ldconfig # refresh shared library cache

(8) Check it

protoc –version

(9) If it shows like this picture, it is successful installation.

4. Install the node procedure:

(1)Copy M_Berry Miner_ubuntu to Ubuntu system(must be placed in home file)

(2) Modify code (mining code)

Enter the code (mining code) to the configured file, the file : the code.txt file under /M_Berry Miner_ubuntu_v1_0/server/conf

(3) Start procedure

Enter the server, then click.

(4) Query the machine online status and the income of mining everyday.

Here is the use tutorial of ubuntu node procedure.

M-Berry for android
M-Berry for ios

--

--