Skip to content

VPS Masternode Setup Guide

Globycoin edited this page Jan 25, 2019 · 10 revisions

Introduction

This guide is for a single masternode, 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:

1. 150,000 GLB
2. A main computer (Your everyday computer) – This will run the control wallet, hold your collateral 150,000 GLB and can be turned on and off without affecting the masternode.
3. Masternode Server (VPS – The computer that will be on 24/7)
4. A unique IP address for your VPS / Remote wallet

(For security reasons, you’re are going to need a different IP for each masternode you plan to host)

The basic reasoning for these requirements is that, you get to keep your GLB in your local wallet and host your masternode remotely, securely.

Configuration

  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. We’ll use this later…)

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

  3. Still in the control wallet, send 150,000 GLB 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 150,000 GLB; No less, no more.) – Be absolutely 100% sure that this is copied correctly. And then check it again. We cannot help you, if you send 150,000 GLB to an incorrect address.

  4. Still in the control wallet, enter the command into the console: masternode outputs (This gets the proof of transaction of sending 150,000 GLB)

  5. Still on the main computer, go into the Globycoin data directory, by default in Windows it’ll be %Appdata%/globycoin or Linux (Ubuntu) ~/.globycoin

Find masternode.conf and add the following line to it:

<Name of Masternode(Use the name you entered earlier for simplicity)> :23500 <The result of Step 1> <Result of Step 4> <The number after the long line in Step 4>

Example: MN1 31.14.135.27:23500 892WPpkqbr7sr6Si4fdsfssjjapuFzAXwETCrpPJubnrmU6aKzh c8f4965ea57a68d0e6dd384324dfd28cfbe0c801015b973e7331db8ce018716999 1

Substitute it with your own values and without the “<>”s

VPS Remote wallet install

  1. Log in to your VPS console as root or sudo user and copy paste lines:

    cd ~

    sudo apt-get update

    sudo apt-get install unzip nano libboost-system-dev libzmq3-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev software-properties-common -y

    sudo add-apt-repository ppa:bitcoin/bitcoin -y

    sudo apt-get update && sudo apt-get install libdb4.8-dev libdb4.8++-dev libminiupnpc-dev libevent-2.0-5 libevent-pthreads-2.0-5 libevent-dev -y && wget https://github.com/Globycoin/glbcore/releases/download/2.1.1.1/Ubuntu16.04.zip && unzip Ubuntu16.04.zip

    ./Ubuntu16.04/./globycoind

Configuration Cont.

  1. Now on the VPS, edit the Globycoin configuration file:

    nano ~/.globycoin/globycoin.conf

Make the config look like this:

rpcuser=long random username
rpcpassword=longer random password
rpcallowip=127.0.0.1
server=1
daemon=1
logtimestamps=1
maxconnections=256
masternode=1
masternodeprivkey=Result of Step 1

Make sure to replace rpcuser and rpcpassword with your own.

  1. to exit the editor press Ctrl+o, enter and Ctrl+x

Start your masternode

  1. Now, you need to finally start these things in this order – Start the daemon client in the VPS. First go back to your installed wallet directory,

cd ~

and then start the wallet using

./Ubuntu16.04/./globycoind

Now, restart Control wallet, go to Masternode tab, select masternode and press "Start alias"

The following should appear: “Alias: “ “Successfully started masternode”,

– Back in the VPS (remote wallet) and check masternode status

./Ubuntu16.04/./globycoin-cli masternode status

You should see something like:

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

Congratulations! You have successfully created your masternode!

Clone this wiki locally