Skip to content

Automated Multiple Node Installer Precomplied Binaries Cold Node Linux VPS

Crypto Centric edited this page Mar 28, 2019 · 3 revisions

Absolute coin (ABS) one VPS / multinode install script

This script is used to install multiple Masternode of Absolute coin (ABS) on a single VPS with multiple IP addresses.

What you need

To install the node you need the following:

a control wallet on your PC, MAC or Linux computer (v12.2.5 at the time of writing) 2500 ABS coins for each node that will be used as collateral a VPS server running Ubuntu Linux 16.04 or 18.04 with multiple IP addresses

How to do it

1. On your local computer

Download the last version of ABS wallet from the github repository found here:

https://github.com/absolute-community/absolute/releases

Then you need to generate a new ABS address in your control wallet. Open Debug Console from Tools menu of your control wallet and paste the next command:

getaccountaddress MN1

MN1 is just an alias associated with the generated address (MN2... MN3... etc for each node you want to setup).

Send the collateral - 2500 ABS - to the address generated above. Make sure that you send exactly 2500 ABS to that address. Make sure that the option is not checked.

You need to wait for 15 confirmations before you can obtain transaction id and index with the next command run in debug console:

masternode outputs

To connect your VPS with the cold wallet you need a masternode private key which is obtained with this command run in debug console:

masternode genkey

This private key is needed later when you run install script. Generate as many private keys you need, one for every node you want to setup.

Now open the Masternode configuration file from the control wallet (Tools > Open Masternode configuration file) and configure the Masternode using the example present in the file. You need the following information to create the masternode line, separated by one space:

  • masternode alias
  • vps ip and port
  • masternode private key
  • transaction id
  • output index

Example line:
MN1 207.246.76.60:18888 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 0

You need to have one line for each IP your VPS has. To be sure which private key is associated with each ip, check the script output and make sure you have associated them right.

Save this file and enable Masternode tab in your ABS control wallet (Setting > Options > Wallet > Show Mastenodes tab)

Restart your Absolute wallet.

2. On your VPS server

Use Putty to connect to your VPS via ssh. Make sure you have Ubuntu Linux v16.04 installed.

You need to be root, so, if you use a different user to login to your VPS then switch the current user to root and navigate to /root folder with this shell command:

cd /root

*Choose to download the install script with this command:

For Ubuntu 16.04
wget http://bit.ly/abs-install-12-2-5-MMN-1604 -O install_multi_mn_ubuntu_1604.sh && chmod +x install_multi_mn_ubuntu_1604.sh

For Ubuntu 18.04
wget http://bit.ly/abs-install-12-2-5-MMN-1804 -O install_multi_mn_ubuntu_1804.sh && chmod +x install_multi_mn_ubuntu_1804.sh

Start the install script with the next command. You need to provide the masternode private key(s) generated earlier.

For Ubuntu 16.04
./install_multi_mn_ubuntu_1604.sh mn_private_key1 mn_private_key2 mn_private_key3...

For Ubuntu 18.04
./install_multi_mn_ubuntu_1804.sh mn_private_key1 mn_private_key2 mn_private_key3...

Make sure that the script run without errors!

Some warnings may occur, for example if you run the script twice for some reason. At the end, the script will provide you with a few commands that you can use to start the nodes or just reboot the vps, the script auto start the daemon on system reboot.

After you start the nodes, the daemon will download the ABS blockchain for each node and sync with the network. This process takes about 15-20 minutes, depending on your VPS internet connection.

To check if the vps is synced with the network use this command:

absolute-cli -datadir=/root/.absolutecore1 getinfo

Always use -datadir=path_to_abscore option in a multi node vps.

Check that the last block is the one as on ABS explorer found here:

http://explorer.absolutecoin.net

Also note that the script will display at the end which ip is associated with which private key. You will need this info to set up masternode.conf file corectly.

After your node is synced with the network, switch to you control wallet and start your masternodes. Open Masternode tab, select each alias you just created from the masternode list and click the Start alias button. You should get a "Successfuly started MNx" prompt.

Now you need to wait another 20 minutes and the status of your Masternode should be Enabled.

To check if the Masternode started successfully type next command on your VPS:

absolute-cli -datadir=/root/.absolutecore1 masternode status

In a multi node environment you always need to use -datadir=path_to_abscore option in your commands. This way you select a specified node that you want to send cmds to.

Congratulations, your multi node VPS is running!

If you run into problems ask for help in ABS discord support channel.