DESIRE - VPS Masternode Setup Guide

in #masternode7 years ago (edited)

Updated on December 29th 2017

UPDATED NOTES:

Many users are getting similar issue, so see 3 simple and MANDATORY NOTES before setting up:

  1. desire.conf file on LOCAL wallet MUST BE EMPTY!
  2. masternode.conf file on VPS wallet MUST BE EMPTY!
  3. PRE_ENABLED status is NOT an issue, just restart local wallet and wait a few minutes.

--

This guide is for a single masternode, on a Ubuntu 14 64bit server (2GB RAM minimum) or 16.04 LTS. That will be controlled from the wallet on your local computer.

If you don’t have enough RAM, create 2–4GB of swap memory using this guide.

After you’ve got your VPS running, I would recommend you to go through the initial setup guide here before doing anything masternode related, for security purposes.

Basic requirements

  • 1,001 DSR (1 is for fee)
  • A main computer (containing the main wallet where your coins will be stored) Ubuntu, Windows or Mac
  • Masternode Server (The VPS that will be on 24/7) Access with root using putty
  • A unique VPS and IP address for EACH masternode
    (For security reasons, you’re gonna need a different IP for each masternode you plan to host)

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

For this guide, I’m going to refer to your main computer’s wallet as the main wallet, and the masternode wallet as the masternode wallets.

Setting up the Masternode wallet

First, you’ll have to install the required packages with this 1-line Setup as root:

apt-get update;apt-get upgrade -y;apt-get dist-upgrade -y;apt-get install nano htop git -y;apt-get install build-essential libtool autotools-dev automake pkg-config -y;apt-get install libssl-dev libevent-dev bsdmainutils software-properties-common -y;apt-get install libboost-all-dev -y;apt-get install libzmq3-dev libminiupnpc-dev libssl-dev libevent-dev -y;add-apt-repository ppa:bitcoin/bitcoin -y;apt-get update;apt-get install libdb4.8-dev libdb4.8++-dev -y;

Now we have to build the wallet. Clone the Github DESIRE repository from here.

sudo apt-get install git
git clone https://github.com/lazyboozer/Desire.git

Then navigate to the newly created Desire folder and execute the following lines :

cd Desire
chmod 755 autogen.sh
./autogen.sh
./configure
chmod 755 share/genbuild.sh
make
This process can take a while, it will compile the Desire wallet.

Once finished, start the Desire headless client

cd src
./desired -daemon

You should get an error about the .conf file, that’s normal, if not, just let it sync.

Setting up the main wallet

Go to your local computer where your main wallet is running with all your coins inside.

On menu, Go to FILE -> RECEIVING ADDRESSES -> click NEW and put your Label (alias), we are using "MN1" on this tutorial. Feel free to choice or use the same.

Then copy the address and send EXACTLY 1000 DSR to this address, you will be just send a payment to yourself.
Wait for 15 confirmations, then go to the debug console :

masternode outputs

You should see one line corresponding to the transaction id (tx_id) of your 1000 coins with a digit identifier (digit). Save these two strings in a text file.

Note that if you get more than 1 line, it’s because you made multiple 1000 coins transactions, with the tx_id and digit associated.

Now we have to create the masternode private key to link the main wallet and the VPS masternode. Type in the debug console :

masternode genkey
Copy this key somewhere. It will be referred as masternodeprivkey.

Next, you have to go to the data directory of your main wallet (in Linux it’s located at /home/user/.desirecore). Open the masternode.conf file and type :

MN1 IP:9919 masternodeprivkey tx_id digit

Save it and close it. Restart your main wallet.

Note that each line of the masternode.conf file corresponds to one masternode.

Back to the Masternode wallet

Navigate to the data directory by typing

cd ˜/.desirecore
nano desire.conf
Now copy paste the following configuration :

rpcuser=user
rpcpassword=pass
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
rpcport=9918
staking=0
externalip=IP:9919
masternode=1
masternodeprivkey=masternodeprivkey

You need to change IP to your VPS IP address, the masternodeprivkey is the one that you got from the main wallet. Choose whatever you like for user and password. Note that the port should be 9919 for all Desire masternodes and rpcport is 9918 for sentinel.

Type Ctrl + X => Y => Enter. The file desire.conf is now saved.

If you have a firewall (with this guide), you need to open the 9919 and 9918 port :

sudo ufw allow 9919/tcp
sudo ufw allow 9918/tcp
Now start you masternode wallet by navigating through your Desire folder.

cd ~/Desire/src/
./desired -daemon

Wait like 10 mins for your wallet to download the blockchain. You can check the progress with the following command :

./desire-cli getblockcount
The block number has to catch up with the latest on the explorer.

Starting the Masternode
Go back to your main wallet, to the Masternode tab.

You need to wait for 15 confirmations in order to start the masternode. Select the line corresponding to the masternode.

If the Masternode tab isn’t showing, you need to go to Options>Wallet>Show Masternodes Tab.

Click “start-alias”. Your masternode should be now up and running !

Checking the Masternode status
You can check the masternode status by going to the masternode wallet and typing:

./desire-cli masternode status
If your masternode is running it should print “Masternode successfully started”.

Now you need SENTINEL to fix WATCHDOG EXPIRED issue, run this 1 line for it:

cd ~;mkdir .desirecore;cd .desirecore;wget https://github.com/ZonnCash/sentinel/releases/download/v1.1.0-win64/sentinel-lin64 ;chmod +x sentinel-lin64;

Before run, install and run screen:

apt-get instal screen
screen
./sentinel-lin64
You will see it running, so then you can close window. Screen will make it running from behind, so wait around 30min to see ENABLED instead of WATCHDOG EXPIRED.

You can also check your MN status by local wallet console, just type:

masternode list full XXXX

(Where XXXX is yours first 4 character of TX_ID).

I hope this guide was usefull to you. You can ask me some more questions on the official Desire discord channel. My username is juniormasters. Please if you found some error give me feedback so i can fix it!

If you liked my work and want to thank me i’ll be happy for a tip :)

Desire address donations : DUK6NMqkULrcBvTa89NSopmD2AL9Ldq5h7

Original guide from: @Chill
Edited by: @juniormasters

Sort:  
Loading...

Hi. I am @greetbot - a bot that uses AI to look for newbies who write good content.
I found your post and decided to help you get noticed.
I will pay a resteeming service to resteem your post,
and I'll give you my stamp of automatic approval!
greetbot's stamp of approval

Resteemed by @resteembot! Good Luck!
The resteem was payed by @greetbot
Curious?
The @resteembot's introduction post
Get more from @resteembot with the #resteembotsentme initiative
Check out the great posts I already resteemed.

Coin Marketplace

STEEM 0.20
TRX 0.14
JST 0.030
BTC 66745.34
ETH 3326.92
USDT 1.00
SBD 2.71