Jump to content
Sign in to follow this  
buzzkillb

DNR Masternode SCRIPT Setup - Mainnet - Cold Wallet

Recommended Posts

307

462 posts
1187 BF$

Script setup guide for VPS. If you want to use easy mode for setting up your VPS wallet, try out this script. https://github.com/denariuscrypto/masternode-script  This script is so easy and quick, that when its time to update the ubuntu wallet, just reimage your VPS and rerun.

image.png.bd7b2faa92f1b68243f40e6757ddd237.png

Think of the QT Wallet as your remote control and the Ubuntu VPS as your TV. At the end of setup you will turn your TV (VPS) on using the remote (QT wallet). The remote doesn't need to be in the room while you binge on Netflix for the next month.

How to setup Windows QT Wallet as the Main Wallet and Ubuntu Server 16.04 LTS for the VPS. Read through the guide first. Make sure to copy and paste keys and transactionhash to notepad or paper. Since so many are using Vultr, please spread the network out to different VPS's. I am trying to pick providers that I am pretty sure are located in separate data centers.

VPS

Dedicated

Deal Blogroll https://lowendbox.com/
Server Discussions Lowendtalk https://lowendtalk.com/categories/offers

Youtube Video Guide

 

Below is how to setup the QT Wallet for this, which the script does try to guide the user with already.

TIPS:
On putty right click or shift+insert will paste a command
when entering a password, the field will be blank

Setup QT Wallet

1. Make sure your wallet is fully synced before proceeding further. Using the QT wallet, enter the debug console (Help > Debug window). This step will generate a masternode private key, please note this down and this will be required later. Type the following command:

masternode genkey

2. Get masternode address for your masternode. Replace masternodename with your desired masternode name.

getaccountaddress masternodename

3. Send from your wallet exactly 5,000 DNR to the address you generated from step 2. Ensure you get 20 confirmation before proceeding.

4. Get the outputs of the transaction of the 5,000 DNR send to your masternode address. The long hash is your Transaction Hash and the number after is the Transaction Index. Please note this down and this will be required later.

masternode outputs

5. Navigate to your users Roaming folder. Copy and paste %AppData% This should show you the Roaming folder and find Denarius folder.

6. In the denarius folder we will create a denarius.conf file, if it is has not been created already. Copy and paste the configuration below to your denarius.conf file.

staking=0

addnodes to the bottom of the denarius.conf above, this could help with syncing issues, not required though.

7. Create and save another configuration file called masternode.conf in the same location as denarius.conf.

<Alias name of your choice> <VPS IP address>:9999 <Private Key from step 1> <TransactionHash from step 4> <Transaction Index from step 4>

Example: MNDNR 31.14.125.27:9999 DF92WPpkqbr7s6Si4fdsfssjjapuFzAXwETCrpPJubnrmU6aKzh c8f4965ea57a68d0e6dd384324dfd28cfbe0c801015b973e7331db8ce018716999 1

8. Ensure you close or restart your main wallet.

Start masternode remotely - QT wallet

From your main computer, go to the debug console and verify masternode.conf file is setup properly

masternode list-conf

Make sure the data output here matches the information entered in the masternode.conf file. If not, edit the file and correct the data. You will have to restart the main wallet, if you update the masternode.conf file. If the masternode configuration matches then we can finally start the masternode.

Here is the command to get going on the VPS. And setup 1 MN per VPS you cheapskates! :x

apt-get install python -y
wget https://raw.githubusercontent.com/buzzkillb/masternode-script/master/denarius.py && python denarius.py

or for the no compile wallet that gets from hashbag.cc

apt-get install python -y
wget https://raw.githubusercontent.com/buzzkillb/masternode-script/master/denarius-nocompile.py && python denarius-nocompile.py

Once this is done get into the directory with su mn1. I would give this a good 20 minutes to make sure its synced up with the tail command below. Some more commands below once in there. Status=9 means its working.

su mn1
denariusd getinfo
denariusd masternode status
denariusd masternode debug
tail -f ~/.denarius/debug.log
tail -f ~/.denarius/debug.log | grep -i enabled

To update script
su -c "denariusd stop" mn1 && cd /opt/Denarius/src && git pull && make -f makefile.unix && cp denariusd /usr/local/bin/denariusd && su -c "denariusd" mn1

 

Start the masternode by executing the following on QT Wallet (QT Wallet needs to be unlocked):

masternode start-alias <alias name specified in masternode.conf>

If the output says “masternode is stopped” then run the following command:

masternode start

Verify on VPS masternode - VPS wallet

Login as root and at the prompt to get to denariusd type

su mn1

To ensure the masternode is running properly you can use the debug and status commands:

denariusd masternode debug

If there are no issues, there should be a message returned with no problems found.

denariusd masternode status

You should get a status 9 if the masternode is active and there is no issue!

How to read debug log on VPS wallet.

tail -f ~/.denarius/debug.log

After a while of disconnects on the debug.log, you will eventually see this below while you catch up with the blockchain.

image.png.947c1c02498fdb5ca52a33ccd0d1fa32.png

You can see if your masternode is listed on the QT wallet - Masternode Icon > Denarius Network tab. If it does not appear straight away, give it 30mins and restart the wallet to check if your masternode shows up on the list

If you watch the debug.log while you run masternode start-alias masternodename from the QT wallet, you might be able to catch the screenshot below.

shut-down-cold-daemon.PNG.a2977211773ddbef0156b0abe7e0f03a.PNG

Masternode Status Codes

MASTERNODE_NOT_PROCESSED: 0 
MASTERNODE_IS_CAPABLE: 1 
MASTERNODE_NOT_CAPABLE: 2 
MASTERNODE_STOPPED: 3
MASTERNODE_INPUT_TOO_NEW: 4
MASTERNODE_PORT_NOT_OPEN: 6
MASTERNODE_PORT_OPEN: 7
MASTERNODE_SYNC_IN_PROCESS: 8
MASTERNODE_REMOTELY_ENABLED: 9

 

  • Like 2

If you enjoy my content please consider donating to the Denarius creator - https://www.patreon.com/carsenk
Join Denarius Discord - https://discord.gg/JQEmXwb

Share this post


Link to post
Share on other sites
307

462 posts
1187 BF$
8 hours ago, denafans said:
Hi, I can't start the MN. The error we're getting is:
 

vps.png

qt.png

You are looking for status 9. Not sure why it can't detect your external address. Try wiping the VPS and redo the script. 


If you enjoy my content please consider donating to the Denarius creator - https://www.patreon.com/carsenk
Join Denarius Discord - https://discord.gg/JQEmXwb

Share this post


Link to post
Share on other sites
denafans    denafans
0

5 posts
0 BF$
15 hours ago, buzzkillb said:

You are looking for status 9. Not sure why it can't detect your external address. Try wiping the VPS and redo the script. 

I just redo step by step, finally, the same error happened.What is the external address?What's the masternodeaddr configuration option can I use?

Share this post


Link to post
Share on other sites
denafans    denafans
0

5 posts
0 BF$
16 hours ago, buzzkillb said:

You are looking for status 9. Not sure why it can't detect your external address. Try wiping the VPS and redo the script. 

Followed this issue, I found the similar problem of Dash.This is the link about the externalip:https://dashpay.atlassian.net/wiki/spaces/DOC/pages/104371228/Updating+to+12.1+-+Masternodes

From the Dash conf, we can see it contain the externalip conf:

#----
rpcuser=683776b31faf919079924a543d52deac6548b6a7
rpcpassword=683d52deac6548b63776b39924a51faf919074a8
rpcport=9998
rpcallowip=127.0.0.1
#----
listen=1
server=1
daemon=1
maxconnections=24
#--------------------
masternode=1
masternodeprivkey=7ra1rhngvNkhkiFE8STrmvH3LvYTCzLyRFHFsZvrJUBV6ZmWncv
externalip=123.123.123.123

Share this post


Link to post
Share on other sites
307

462 posts
1187 BF$
4 hours ago, denafans said:

However, when I run the command "masternode start-alias Masternoder1" from QT wallet, the output didn't says "masternode is stopped", instead says:

 

91D81969F31A591B305B63D305AA2AAA.png

I don't think the QT wallet matters too much from that point, you want to make sure the VPS status is right. And if this isnt working for you, set it up the manual way without the script.


If you enjoy my content please consider donating to the Denarius creator - https://www.patreon.com/carsenk
Join Denarius Discord - https://discord.gg/JQEmXwb

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...