Setup of Nodes


This guide is for a single/multiple masternodes, on a Ubuntu 16.04 64bit server (VPS) running headless and will be controlled from the wallet on your local computer (Control wallet). The wallet on the the VPS will be referred to as the Remote wallet. You will need your server details for progressing through this guide.

First the basic requirements:
100000 Telos

A main computer (Your everyday computer) – This will run the control wallet, hold your collateral 1000 Telos and can be turned on and off without affecting the masternode.
Masternode Server (VPS – The computer that will be on 24/7)

Recommended VPS Servers: Vultr, Digitalocean, Aruba

1) Using the control wallet, enter the debug console (Tools > Debug console) and type the following command: masternode genkey (This will be the masternode’s privkey, make sure to save it. We’ll use this later…)

2) Using the control wallet still, enter the following command: getaccountaddress chooseAnyNameForYourMasternode


3) Still in the control wallet, send 1000 Telos to the address you generated in step 2 (Be 100% sure that you entered the address correctly. You can verify this when you paste the address into the “Pay To:” field, the label will autopopulate with the name you chose”, also make sure this is exactly 1000 Telos. No less, no more.)


4) Still in the control wallet, enter the command into the console: masternode outputs (This gets the proof of transaction of sending 1000, make sure that the transaction has at least 1 confirmation before doing this command)


5) It will show a Transaction Id(TxId) and a 0 or a 1, save this 0 or 1. We'll use it later


6) On the wallet, click on tools and select open masternodes configuration file and add the following line to it:

(Name of Masternode) (IP address of the VPS):(Port) (Private key) (TxId)

Example:

MN1 31.14.135.27:8051 4KPqnjkhN6vYwWprjVDL1qnpShFJJMFH1CxVtsefQkpJwTJzY1N c8f4965ea57a68d0e6dd384324dfd28cfbe0c801015b973e7331db8ce018716999 1

Substitute it with your own values and without the “()”s

Restart the wallet and you should see your masternode in masternodes tab

VPS Remote wallet install
7) Install the latest version of the Telos wallet onto your masternode.


Go to your home directory: cd ~ From your home directory, download the latest version of lobo's hub by doing:

wget
https://raw.githubusercontent.com/lobomfz/Masternode-tools/master/lobohub.sh && chmod 777 lobohub.sh

Whenever you want to install or remove a node you just run from your home directory


./lobohub.sh

Follow the instructions asked by the script


After that, you can check the status of the node using "ALIAS_status" (Make sure to substitute ALIAS with the alias you entered in last step)


You should see something like:


error: {"code":-1,"message":"Masternode not found in the list of available masternodes. Current status: Node just started, not yet activated"}

Wait a few minutes for the wallet to sync, until you get this status:


error: {"code":-1,"message":"Masternode not found in the list of available masternodes. Current status: Not capable masternode: Hot node, waiting for remote activation."}

This means that the node on the VPS is completely set, now you just need to activate it, make sure that the 1000 Telos transaction has around 35 confirmations before activating it, to do so you need go to your wallet, right click on your node and click start alias, then check your node again in your VPS and you should see something like this:

{
“txhash” : “334545645643534534324238908f36ff4456454dfffff51311”,
“outputidx” : 0,
“netaddr” : “45.11.111.111:8051”,
“addr” : “D6fujc45645645445645R7TiCwexx1LA1”,
“status” : 4,
“message” : “Masternode successfully started”
}

Congratulations! You have successfully created your masternode!


Masternode Commands:
replace word ALIAS with the name of your Master Node. as example, if name is MN01, then you would use "MN01_status".

ALIAS_start - Start masternode
ALIAS_restart - Restart masternode
ALIAS_status - Masternode status
ALIAS_stop - Stop masternode
ALIAS_config - View/Edit config file
ALIAS_getinfo - Block count/No. of connections
ALIAS_getpeerinfo - Stats of connected peers
ALIAS_resync - Resync mn wallet
ALIAS_reindex - Reindex mn wallet

If commands wont' work type 'source .bashrc'