buzzkillb Posted March 5, 2018 Report Share Posted March 5, 2018 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. 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 Digital OceanÂ https://m.do.co/c/6dffa03c3628Â [2FA] LinodeÂ https://www.linode.com/pricingÂ [2FA] QuadranetÂ https://www.quadranet.com/infracloudÂ (accepts BTC, LTC, ETH) HostodoÂ https://hostodo.com/cloud.html VirmachÂ https://billing.virmach.com/aff.php?aff=3972Â [2FA] RamnodeÂ https://ramnode.com/vps.php WholesaleinternetÂ https://www.wholesaleinternet.net/vps/ KimsufiÂ https://www.kimsufi.com/us/en/vps-ssd.xml OVHÂ https://www.ovh.com/world/vps/vps-ssd.xml VultrÂ https://www.vultr.com/?ref=7307426Â [2FA] Dedicated WholesaleinternetÂ https://www.wholesaleinternet.net/dedicated/ KimsufiÂ https://www.kimsufi.com/us/en/servers.xml BuyVMÂ https://buyvm.net/kvm-dedicated-server-slicesÂ (accepts BTC, LTC, BCH, ETH) HosthatchÂ https://hosthatch.com/ssd-vpsÂ [2FA] 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 188.8.131.52: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!Â 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. 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. 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 Â 2 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.