Skip to content

Gexan VPS Masternode Setup Guide

gexan edited this page Nov 16, 2018 · 8 revisions

Gexan VPS Masternode Setup Guide

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. 5000 GEX
  2. A main computer (Your everyday computer) – This will run the control wallet, hold your collateral 5000 GEX 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 GEX in your local wallet and host your masternode remotely, securely.


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 5000 GEX 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 5000 GEX. 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 5000 GEX 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 5000 GEX)

5. Still on the main computer, go to Tools->Open Masternode Configuration File and add the following line to it:

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

Example: MN1 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 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 libzmq3-dev libboost-all-dev libdb4.8-dev libdb4.8++-dev libminiupnpc-dev libevent-2.0-5 libevent-pthreads-2.0-5 libevent-dev -y && wget && unzip && chmod +x ./gexan/gexd && chmod +x ./gexan/gex-cli && chmod +x ./gexan/gex-tx

mkdir .Gexan && nano ~/.Gexan/Gexan.conf

Make the config look like this:

rpcuser=long random username

rpcpassword=longer random password







masternodeprivkey=Result of Step 1

Make sure to replace rpcuser and rpcpassword with your own.

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

Start your masternode

9. Now, you need to finally start these things in this order – Start the daemon client in the VPS. 

cd && ./gexan/gexd

Wait for fully sync - check it with command

cd && ./gexan/gex-cli getinfo

When VPS is fully synced, in local wallet, to start the masternode, go to tools -> debug console and type:

masternode start-alias YOURMNALIAS

If you masternode was successfully started, your masternode should appear in the masternodes tab.

Congratulations! You have successfully created your masternode!

Clone this wiki locally
You can’t perform that action at this time.