Installation Guide

Controller-Cold-Setup

This is the advised Method to setup your Masternodes. The wallet containing the coins does not have to be exposed and can run on your local computer. It does not have to run all the time and you are not vulnerable to someone hacking your VPS because all he can do when he hacked your VPS is stop your MNs but not steal your coins!

Desktop Wallet Setup

In the first steps the desktop wallet will be setup. This is the wallet you can run on your local PC. When the masternodes are connected this wallet can be closed and the PC does not have to run in order for the masternodes to generate rewards.

We will create an address, private key and transaction for each masternode (MN in the following) and show the necessary steps for configuration.

1. Open Console: Tools → Debug Console

    a.   Type “getaccountaddress MN1” and press Enter.

Repeat this step for the amount of masternodes you want to setup as shown. Make sure you count up (MN1, MN2 etc.)

These are the addresses that will be associated with the MNs. You can view all you created addresses under File → Receiving Addresses

    2.   Send exactly 10000 coins to each MN address

Klick on “add recipient” to add lines so you can send to all nodes in one transaction.

3. Setup MNs in config: Tools → Open Masternode Configuration File

Your text editor will open with the configuration file.
alias IP:port masternodeprivkey txhash outputindex

We will now add a Line for each MN with the following Format:

    a.   Begin by entering and alias IP:port
          i.   Alias: the name of the MN receiving address (we named them
          MN1, MN2, …)
          ii.  IP: The static IP of your server
         iii.  port: A port the MN will connect to. The port is not fixed and    
           multiple nodes can run on one server but need different ports.

You can have more than one node per IP just adjust the ports.

    b.   Next we get the “masternodeprivkey “
           i.    Open debug console again, type “masternode genkey” and  press enter

    ii.   Repeat the line for each MN you want to setup
   iii.   Copy the output keys to the config

The private keys are used for voting and identify you as the real owner so don’t share them.

    c.   Next we will add txhash and outputindex
          i.   Go to the debug console again, type “masternode outputs” and press enter

    ii.   If you send the coins in one transaction the “txhash” will be the same. If you add a masternode later, another tuple will be added. So every masternode has a unique pair of txhash and outputindex

    iii.   Copy the information to the config file (Make sure you don’t forget the index!)

This is what your config should finally look like.

4.   Save the file and restart the wallet.

Verify now that your MN are shown in the Masternodes tab.

Getting a VPS

For the cold wallets you first need a linux VPS. You can get very cheap ones for 5$ here: vultr.com. These can run around 10 HUMcoin masternodes instances though it might be a good idea to split your MNs across some different servers.  The more isolation you have the less likely you are hit big by a server outage.

After registration you get to the Dashboard. You have to do the first payment with something else then Bitcoin. After the first payment you can pay the servers in BTC.

5.    Deploy the server

Hit the plus top right to add new instances

6.   Choose a region near you. It does not really matter.

    a.   As “Server Type” choose Ubuntu and klick 16.04 (Important don’t take 17.10!)

b.   As Server Size choose the 5$ instance with 1GB Ram.

    c.   Scroll down and give the node a name.

    d.   After that click “Deploy now” in the overview you should see this:

7.   Connect to the Server.
    e.   You will need some SSH tool connect. I use “Royal-TS” to manage several connections at once. It’s a bit harder getting used too but has real value.
    f.   To connect with “putty” a basic tool refer to this guide
    g.   You can find username (root) and password when you click on the newly created instance. The installation has to finish before!
    h.   Note: pasting your clipboard is “right click”

Automatic server installation and setup.

8.    Download and execute script on VPS:

wget https://human-chain.org/dls/installmn.sh
chmod 755 installmn.sh
./installmn.sh

This process is interactive and takes several minutes.

 

 

Enter y and press enter when you first setup the server. All dependencies and needed programs will be installed (takes some minutes)

Enter y and press enter.

Enter the the servers IP address (209.250.235.194 in my case)

Enter the number of masternodes you want to run on the server (2 in my case)

Enter the asked information. The alias is to give each node a unique name and control it. Enter port and masternode key which you configured before in the desktop wallet. Also unique free rpc port is needed. You can take any. The input process repeats for every node you want to configure (2 times in my case)

If you made an error when typing the interactive stuff: ctrl+c and restart the script

9.    Controlling the masternode

    a.   The script from the last step already started all wallets on VPS

    b.   Type “source .bashrc” in console

    c.   Each MN has now its own control script under ~/bin (named with alias you typed before)

    d.   To see if everything works type:

humcoin-cli_mn1.sh mnsync status

Every node has a script “humcoin-cli_ALIAS.sh”, “humcoin_ALIAS.sh”. Always use these scripts and not the daemon directly.

    e.   If sync is finished go to your desktop wallet and start MNs in the masternode tab (unlock wallet before).

    f.   You can close your Desktop wallet after a while.

Adding more nodes to existing VPS

To add more HUM MNs to a existing server setup with the setup.sh script before just restart the script and type “n” when asked if you want to install the dependencies at the beginning. After that just follow the steps from before in the interactive script.

To add more HUM MNs to a existing server setup with the setup.sh script before just restart the script and type “n” when asked if you want to install the dependencies at the beginning. After that just follow the steps from before in the interactive script.