Configuring and running Goldmine on BananaPro
Step by step instructions for setting up and running the Goldmine nodes on a mini computer Banana Pro (Banana Pi, Raspberry Pi, etc.).
IMPORTANT! Please note that the Banana Pro has two connectors Micro-USB - Power and OTG. Do not confuse them, otherwise you can burn the board!
To connect the power connector is necessary to use Micro-USB Power.
Memory Card Slot micro-SD is on the back side of the board. It is recommended to use a memory card class 10, and of not less than 32 GB.
If you connect the Banana Pro via wi-fi, it is necessary to install a special antenna to the connector on the back of the card next to the card slot micro-SD.
Also, you need an RJ-45 network cable to connect to the router Banana Pro.
Before proceeding to the Goldmine on launch Banana Pro, you must install it:
- 1. The Linux operating system and make the necessary settings,
- 2. The built-in database system Berkeley DB,
- 3. Wallet for Arctic Core Banana Pro
1. Install and configure the Linux operating system
In this manual, we will install a Linux distribution - Bananian.
IMPORTANT! Note that Linux is case-sensitive operating system, ie, for example, bananaPro and Bananapro - these are different commands.
Download the Bananian Linux distribution link - https://www.bananian.org/download.
Extract the contents of the archive.
To record Bananian distribution of the image to the memory card download the program Win32DiskImager.
Insert the microSD card into the card reader on your computer.
Run the program Win32DiskImager.
Specify in the field of Image File path to the downloaded image Bananian.
Choose a drive letter from the Device menu with flash cards.
Press Write button and wait for the end of the recording Bananian image on a flash card.
Download the program Putty for connection to a computer Banana Pro.
Insert the flash memory card with the image of Bananian into the microSD slot on the Banana Pro.
Banana Pro Connect a network cable to the router.
Go to the router's settings and see the IP-address of the Banana Pro.
For example, TP-Link router, see "DHCP client list". In each model, the router may be a section with a different name.
Run the program previously downloaded Putty.
Select "Session", in the field "Hostname (or IP address)" enter the IP-address of the Banana Pro.
And in the field "Saved Sessions" enter any name by which we connect to the Banana Pro.
Then click "Save".
Further, in the left menu, select "Connection - Data", in the "Auto-login username" enter "root" (without quotes).
Go back to the menu "Session".
In the "Saved Sessions" select created connection and click "Open".
When you first connect to the Banana Pro, we are invited to agree to the record of the remote server in the key cache Putty.
We fall into the Banana Pro window. Because Putty in the settings we specified the auto-login "root", then we are left at the entrance to enter the password only.
The first time you enter the password - "pi". Note that when you enter the password characters are not displayed - this is normal. Press Enter.
If a connection is lost with the Banana Pro or you're a long time not to enter any commands, it will display a message to close the connection.
Click "OK". Close Putty and connect again.
We continue. After entering your password to get access Bananian Linux.
The first thing we need to do - is to make the necessary adjustment. Enter the command (you can copy the command below and paste it into the command line Putty by pressing the key combination Shift + Ins):
bananian-configAnd press Enter. (Further, the instructions after you enter each command, it will be understood pressing the Enter key. If it is necessary to press another key or key combination, this will be discussed).
We proposed to change the login password, and agree to select "y" (click on the keyboard key "y" and Enter)
Enter a new password. Let me remind you that when you enter the password characters are not displayed.
Repeat the new password.
The next step is proposed to set the time zone.
We agree and choose "y".
We fall out of the window select the geographic region you live. Choose a region, press "Tab" key on your keyboard, get on the field "OK", press Enter.
Next, select the city or region where you live.
Press "Tab" key on your keyboard, get on the field "OK", press Enter.
The next step is proposed to establish the localization language.
We agree and choose "y".
We fall into the selection window language localization.
Press and hold down the "Down Arrow" key until until we arrive in the list to "en_US.UTF-8, UTF-8".
To select the desired locale, press the "Space" - in front of the selected language appear as "*", then press the "Tab" key on your keyboard, get on the field, "the OK", press Enter.
We fall into the default language selection box.
Press "Tab" key on the keyboard, we get the "OK" box, press Enter.
It is further proposed to change the name of the host - we do not necessarily - press Enter.
It is further proposed to change the hardware configuration. Agree - choose the "y".
In the resulting window, select the "Banana Pro". Press "Space" and "Tab" - get on "OK" and press Enter.
In some cases, you may be asked to include a video processor, in this case it is not necessary - refuse - press Enter.
Also, in some cases, can offer to disable USB OTG - disable, select "y".
It is further proposed to split our stick into sections - refuse - press Enter.
All! This Bananian Linux setup is complete.
Next, you need to restart the system. To do this, enter the command:
shutdown -r now
After restarting, a message appears on the connection loss.
Click "OK", close the window and connects again via Putty.
Next, you need to check for updates. Enter the command:
We wait until the end of the update, and then check the update installed packages. Enter the following command:
Set Midnight Commander, enter the command:
apt-get install mc -y
If you want to use in the future, Midnight Commander, you can make the settings below. If not - you can skip setting Midnight Commander.
1. Enter the Midnight Commander, typing:
2. Press the F9 key, and go to the top menu:
3. Select "Right", press Enter. In the drop-down menu, select "Listing mode...", press Enter.
4. In the window that opens, select the "Brief file list" by pressing "Space", then press the "Tab" - get on the "OK" button, press Enter.
5. We do the same with the "Left".
F9 - go to the top menu, "Left" - Enter. In the drop-down menu - "Listing mode..." - Enter.
Select the "Brief file list" - "Space" key "Tab" - get on the "OK" button, press Enter.
6. Again, press F9 - in the menu, select "Options", then "Configuration..."
7. You need to select "Use internal edit", to do this, click a few times "Tab" key to select key "Space".
Then again, several times, "Tab" - get on the "OK" button - press Enter.
- 8. Save the settings. The F9 - "Options" - "Save setup".
Create a bin directory, which we will use to download and compile different files. To do this, enter the command:
Then we go to the new directory by typing:
Download the archive bananaPro.tgz command:
Unpack the downloaded archive command:
tar -xvf bananaPro.tgz
If you connect to the network Banana Pro you use wi-fi, it is necessary to make the settings below.
If you connect to the network Banana Pro you will be using a network cable, configure wi-fi can be skipped.
1. Edit the file wi-fi settings on the Banana Pro:
mcedit ~/bin/instruction/wifi/wpa_supp.confIn the file write their data - the network name and the wi-fi password to the wi-fi:
Name wi-fi network is available here:
Save the file by pressing the F2 key, and twice "Esc" to exit the file.
2. Now copy the necessary files to the correct directories. We enter one by one the following commands:
cp ~/bin/instruction/wifi/interfaces /etc/network/
cp ~/bin/instruction/wifi/modules /etc/
cp ~/bin/instruction/wifi/wpa_supp.conf /etc/network/
3. Restart command system:
shutdown -h now
You can disconnect the network cable from the Banana Pro, unplug the power and move the Banana Pro where it is you will be after the wallet Arctic Core settings. So to speak in his place ;).
After that, switch on the power supply in the Banana Pro Network and enter the system via Putty.
Now we need to install dependencies - copy the command below, paste it into the Putty (Shift + Ins) and press Enter:
apt-get install build-essential autoconf libssl-dev libboost-dev libboost-chrono-dev libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-test-dev libboost-thread-dev sudo automake git
2. Compiling and installing Berkeley DB.
Go to the bin directory by typing:
Download the archive Berkeley DB. To do this, copy the entire row and paste it below the key combination Shift + Ins:
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gzThen unpack it by typing:
tar -xzvf db-4.8.30.NC.tar.gzGo to the unpacked directory:
We set up a system to compile by typing:
../dist/configure --enable-cxxCompile the Berkeley DB command:
makeInstall Berkeley DB:
The installation process takes some time. We can drink tea;), and then move to the wallet Arctic Core.
But first, after you install Berkeley DB, you must delete the unnecessary files, freeing up space on the flash card.
Delete the file command:
rm -f ~/bin/db-4.8.30.NC.tar.gzRemove the directory command:
rm -rf ~/bin/db-4.8.30.NC
3. Set the wallet for Arctic Core Banana Pro.
Copy the files wallet consistently performing command:
cp ~/bin/instruction/daemon/arcticcoind /usr/local/bin/
cp ~/bin/instruction/daemon/arcticcoin-cli /usr/local/bin/
cp ~/bin/instruction/daemon/arcticcoin-tx /usr/local/bin/
Add the wallet to autostart when the system starts.
To begin the file copy command:
cp ~/bin/instruction/autostart/arcticcoin /etc/init.d/Go to the directory with the file command:
cd /etc/init.d/And enter the command:
update-rc.d arcticcoin defaults
Setting up the configuration file of the wallet.
To do this, enter the command:
mcedit ~/bin/instruction/arcticcoin/arcticcoin.confCome up with your password in the line rpc password = your_password.
Specify instead xxx.xxx.xxx.xxx in line externalip = your external ip.
Specify instead xxx.xxx.xxx.xxx in line goldmineaddr = your external ip. Port: 7209 - leaving unchanged.
The last two lines in the file marked "#" as long as we do not touch.
Save the file F2 button and exit the file by clicking twice "Esc".
Add a new user by typing:
adduser --disabled-login arcticcoin
Create a directory for the wallet command:
Copy the configuration file in the wallet directory command:
cp ~/bin/instruction/arcticcoin/arcticcoin.conf /home/arcticcoin/.arcticcoin/
And transmits it to the user rights arcticcoin command:
chown -R arcticcoin:arcticcoin /home/arcticcoin
Run the wallet on the initial command to initialize:
We are waiting for at least 10 minutes until the wallet is initialized on the network!
IMPORTANT! No action from the Banana Pro does not produce at this time! Otherwise, possible departures Goldmine.
At this time, we are forwarding port 7209 from the external network ip-address of the Banana Pro.
After 10 minutes, stop the Wallet command:
We continue to the Goldmine on Banana Pro.
Open the configuration file command:
mcedit /home/arcticcoin/.arcticcoin/arcticcoin.confRemove the "#" in front of a goldmine=1 and goldmineprivkey.
Insert the private key in a wallet line goldmineprivkey=.
How to create a private key - see User Goldmine launch.
Save the file F2 button and exit the file by clicking twice "Esc".
Launch Wallet command:
Give wallet on Banana Pro initialized for approximately 2-3 minutes.
Editing goldmine.conf file, check that all the data has been entered correctly (look User Goldmine launch).
Note that ip-address goldmine.conf should not be 127.0.0.1, and match your external ip-address.
Save the file goldmine.conf after making changes, restart the "cold" wallet Arctic Core (on your computer)
Then, on the "cold" wallet in the debug console, enter the command:F
goldmine start-manyAlso check that your Goldmine Goldmine appeared in the list on the website - https://arcticcoin.org/goldmine-list.
About an hour after entering the "goldmine start-many" command, you can test the functionality of running Goldmine, entering the following command in the console:
goldmine list-confIf "status": "ENABLED", the Goldmine node running. If "status": "MISSING", the node is taken off and you need to check the settings Goldmine node and check whether all the starting conditions are met Goldmine node (external ip-address, open port 7209).
Still have questions?
Find answers to many questions relating to earnings on cryptocurrency ARC, as well as ask questions you can on our Forum.