Loading...
Crypto-Talk

How To Setup Desire MasterNode

Desire MN
How to Setup Desire Masternode

This is a complete guide to setup Desire(DSR) masternode on Ubuntu Vps. Here I will show how to setup desire masternode on Ubuntu 14.04 x64(1Gb Ram). I will recommend Vultr for vps as service is good and price is quite affordable.

First of all download latest Desire wallet and let it sync. Once it is fully synced then encrypt the wallet. Then send 1000.1 DSR from exchange(Mercatox ,Coinmarkets and Stocks.Exchange so that you receive 1000 DSR in your wallet. Then  backup your wallet.

Set Up Your Main Wallet:

To setup your Main desire wallet go to Tools>Debug Console

Then type: masternode genkey

save the output in a text file.

Then Type: masternode outputs

you will get something like this:

{

“l3a88c53e48af78fbt6afc785647f13fha6589lsf8dqa75a66cf8a247569m91dc”: “1”

}

save that info in your text file we need that in our masternode.conf file later.

After this we are set to setup our Main wallet.

Go to Tools>Open wallet configuration file

rpcuser=user
rpcpassword=password
rpcallowip=127.0.0.1
rpcport=9919
listen=1
server=1
daemon=1
staking=0
externalip=VPS_IP:9919
masternode=1
masternodeprivkey=YOUR_GEN_KEY_SAVED_EARLIER_IN_YOUR_FILE(masternode genkey)

Then Save that file and close it.

Then go to Tools> Open Masternode configuration file.

Add your details in this format:

Format: alias VPS_IP:port   masternodeprivatekey   collateral_output_txid    collateral_output_index

Example: mn1 VPS_IP:19919 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 1

You have the details taken from masternode outputs in debug console.

{

“l3a88c53e48af78fbt6afc785647f13fha6589daf8dqa75a66cf8a247569m91dc”: “1”

}

Here,

collateral_output_txid: l3a88c53e48af78fbt6afc785647f13fha6589daf8dqa75a66cf8a247569m91dc

collateral_output_index: 1

After adding all the details save that file and close that. This is all for main wallet setup. Now we need to setup VPS server.

VPS SERVER SETUP:

Open your putty and login to your vps as root. Then run below commands one by one.

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

 

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

cd Desire;
chmod 755 autogen.sh;
./autogen.sh;
./configure;
chmod 755 share/genbuild.sh;
make

If you get an error like virtual memory exhausted then you can increase your swap memory or you can use 2Gb ram instead.

How to increase swap memory?

cd /
sudo dd if=/dev/zero of=swapfile bs=1M count=3000
sudo mkswap swapfile
sudo swapon swapfile
sudo nano etc/fstab
/swapfile none swap sw 0 0

 

cd ~;
wget https://github.com/lazyboozer/Desire/releases/download/Desire-v.0.12.2.1/desire-0.12.2.1-linux.tar.gz ;
cd Desire;
tar xzvf ../desire-0.12.2.1-linux.tar.gz;
cd ~;
mkdir .desirecore;
cd .desirecore;
wget https://github.com/ZonnCash/sentinel/releases/download/v1.1.0-win64/sentinel-lin64 ;
chmod +x sentinel-lin64;
echo “desire_conf=`pwd`/desire.conf” > sentinel.conf;

nano desire.conf

rpcuser=user
rpcpassword=password
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
staking=0
externalip=your_vps_ip:9919
masternode=1
masternodeprivkey=YOUR_PRIVATE_KEY

Edit your details here and paste it there.

Then CTRL+X >Y => Enter

sudo ufw allow 9919/tcp;
cd ~;
cd Desire
./desired -daemon

Wait for few minutes to sync your wallet. Check for current number of blockwith this command.
./desire-cli getblockcount

Start your desire masternode from your main wallet. Go to Settings>Options and enable your Desire masternode tab and Start your Alias.



Now check your VPS, When it is completely synced with current block then check for Desire masternode status
./desire-cli getblockcount
./desire-cli masternode status

You should see :Masternode successfully started.

Also check in your main wallet: Go to debug console and type :masternode status

Here also you will see : "Masternode successfully started"

You will see in Status as Watchdod_Expired. You can solve this by starting sentinel manually.

cd ~;

cd ~/.desirecore;
./sentinel-lin64

 

After Few minutes you will see Enabled.

Finally you own a Desire masternode and it is successfully started. Do comment below if you successfully  able to setup your masternode. If you liked my work then please TIP me here.

DSR: D5jpNU4ryQwFTzuAEN1UTSg5T2YBEUu9v1

 

 

12 comments
  1. Aaron

    First, let me express my gratitude for your work and willingness to share this setup guide. After weeks of head scratching and failure, your guide helped me to finally get my Desire masternode running. Thank you! I did, however, run into a few issues while following your guide. I am a complete novice with Linux, but some simple web searches helped me find the solutions. Problems I encountered and the fix I found are as follows:

    In the local wallet configuration file, rpcport needs to be a different port than the Desire masternode port (9919).
    rpcport=9918
    In the VPS desire.conf add line:
    rpcport=9918
    Allow access to port 9918 on VPS:
    sudo ufw allow 9918/tcp

    Was unable to install libminiupnpc-dev as noted in your instructions (sudo apt-get install libminiupnpc-dev). Aborts after Y. Was able to install as per Jonathan Rogiest’s answer to this question on askubuntu.com.
    sudo aptitude install libminiupnpc-dev

    sudo apt-get update

    Vultr.com 1G ram server was inadequate to build Desire (…chmod 755 share/genbuild.sh make). Error: virtual memory exhausted: Cannot allocate memory. To fix, I added swap space (found at digitizor.com):
    cd /
    sudo dd if=/dev/zero of=swapfile bs=1M count=3000
    sudo mkswap swapfile
    sudo swapon swapfile
    sudo nano etc/fstab
    /swapfile none swap sw 0 0

    After “wget https://github.com/lazyboozer/Desire/releases/download/Desire-v.0.12.2.1/desire-0.12.2.1-linux.tar.gz ;” the line should be:
    cd Desire;

    To start the Desire daemon, you need to be in the Desire folder, not Desire/src:
    cd ~;
    cd Desire
    ./desired -daemon

    Thank you again for posting this guide. I worked through several other guides on the internet but none were successful at setting up a Desire masternode. Following yours got me up and running. I have sent you a small tip to the address you listed in the guide. Thank you!

    Aaron
    DSR: DEwafvEikD2n8LwbMWErzLY6agiJVPmK7N

  2. subha

    Thank You, Aaron, for your valuable input. I have modified in few places as per your comment and port 9919 is working for many people. May be that port is not enabled in your machine. So I would recommend who ever is facing issue with port 9919, they should try with 9918. This concrete input is real help for all Desire community. Thank you.

  3. Craig Rich

    Just ran through this on 12/10/2017. Looks like it went perfectly with your instructions.
    Question though if this has set the VPS wallet to auto start at boot including sentinel?
    Thanks!
    Craig

  4. subha

    Hi Craig,

    After boot if you have any doubt do check your masternode status as well as sentinel.

    Run these commands.

    cd Desire
    ./desire-cli masternode status

    Here you will get masternode started successfully.

    cd ~;
    cd ~/.desirecore;
    ./sentinel-lin64

    here u will see running sentinel.

  5. John

    ./sentinel-lin64
    Using desire.conf: /root/.desirecore/desire.conf
    2017-12-19 23:48 Running sentinel
    -342: non-JSON HTTP response with ‘401 Unauthorized’ from server
    Cannot connect to desired. Please ensure desired is running and the JSONRPC port is open to Sentinel.

  6. Raz

    Hello, thank you so much for this amazing article. Just a qeury though, is there a way to schedule the Sentinel to start say twice a day on the vps? I find that I’m having to putty in at least once a day to start it because My wallet goes into watchdog mode. The wallets is updating as per normal on watchdog mode so “last seen” is always up to date, which makes me wonder if it’s just he wallet playing up. I stop and start the wallet several times, but the only way to get it back to enabled is if I run the senticel. Another query I’d love have answwered is that am I losing potential staking rewards even though the masternode on the is running, but the wallet shows watchdog, but last seen is always up to date?

    1. subha

      Hi Raz,

      I am glad that you liked my article. My suggestion is if you have set up in VPS then keep the sentinel running in the background.
      Run below this command.

      sudo apt install tmux htop;
      tmux new -s sentinel;
      cd ~/.desirecore
      ./sentinel-lin64

      It will keep ur sentinel running. whenever you open ur local desktop wallet keep it open for 10-15 min you will see Started.

      If any issue, post a comment here.

  7. Jordan

    Hello,
    Thank you for the great article.I was trying to set up this masternode but no luck.I am doing something wrong.After my try yesterday now I can not open the wallet I got message (Invalid masternodeprivkey. Please see documentation)
    Have somebody had this message? I restart the wallet and now it give only this message.I have the wallet.dat file saved.I was reading another article that says I have to change something mastenode.conf file but I do not have access to that.
    Let me know if you have experience with this.

    Thank you

  8. subha

    Hello Jordon,

    Have you generated masternode genkey from the console? If it is generated from there then it should work fine. You can always edit your masternode.conf file but why don’t you have access for that. If it does not work try fresh again but keep your wallet.dat file safe.

  9. Timothyml

    Oh my goodness! a tremendous article dude. Thank you Nonetheless I am experiencing issue with ur rss . Don’t know why Unable to subscribe to it. Is there anyone getting equivalent rss drawback? Anybody who is aware of kindly respond. Thnkx http://hellowh983mm.com

Leave a Reply

Your email address will not be published. Required fields are marked *