Advertisement
sagacrypto

Masternode guide for windows-linux setup

Jan 2nd, 2018
2,436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.13 KB | None | 0 0
  1. #paranoidtruth SAGA GUIDE for windows-linux (cold) setup
  2. #you do need a linux vps to get a public IP, etc. If you don't know what that is, you might want to hold off on this.
  3.  
  4. ***************************** LINUX VPS setup (part 1) *************************************************************
  5. #I personally use a fairly small linux instance, 1024memory, ubuntu, 16.04
  6. #a lot of people use vultr, the $5 instance. but any vps will do. stick with ubuntu 16.04 for this guide, though.
  7. #there are tons of vps services like: ovh, vpsdime, vultr, digitalocean, etc, etc.
  8. #get the vps ip they gave you, you will need that for the windows setup
  9. ********************************************************************************************************************
  10.  
  11.  
  12. *************************** WINDOWS SETUP (or mac) *****************************************************************
  13. #side note, you actually need a little over 2500 coins because there's a trans fee.
  14. #If you literally have only 2500, go buy one more coin.
  15.  
  16. #edit your local (windows/mac) sagacoin.conf file
  17. #it should be at /users/<your user name>/AppData/Roaming/SagaCoin
  18. #or in mac: /Users/<username>/Library/Application Support/SagaCoin
  19. #it should look like this:
  20. rpcuser=whatever_you_want
  21. rpcpassword=some_password_but_you_do_not_need_to_remember_it
  22. rpcport=48844
  23. rpcallowip=127.0.0.1
  24. staking=0
  25. addnode=node1.sagacoin.net
  26. addnode=node2.sagacoin.net
  27. addnode=node3.sagacoin.net
  28. addnode=155.94.230.24
  29. addnode=155.94.230.163
  30. addnode=80.209.228.1
  31.  
  32. #shutdown & restart wallet to load those new configs
  33.  
  34. #There's really only a couple more steps on the windows side.
  35. #make sure the wallet is unlocked
  36. #go to masternodes tab & create one.
  37. #it asks for an alias, that's just MN1 or whatever you want to call it.
  38. #it asks for your ADDR: use your VPS ip & port: xx.xx.xx.xx:48744
  39. #that generated a new MN address for you, you can see it if you go to your receive tab, copy the addr from there
  40. #go to the send tab. send 2500 exactly to that addr.
  41. #it will charge you a fee, do not send 2500.001 to cover the fee, just send 2500
  42. #go to the transactions tab. you will NOT see the 2500 since you are just sending to yourself, only the trans fee
  43. #wait for 10 confirms on the fee, you will eventually see the clock change to a checkmark
  44. #go to masternodes tab & highlight your new masternode
  45. #click on get config button.
  46. #you only need ONE item from here, the masternodeprivkey, copy that, ignore everything else.
  47. #go to the debug console: Help->console
  48. #type masternode outputs
  49. #if you got data there, you're good on the windows side and can start it now:
  50. #click the start all button. OR, in the console, masternode start-alias MN1
  51. #Verify in the console: masternode list full active
  52. #you want to see your ip in the list
  53.  
  54. #staking note... in order to make sure your MN doesn't fail after sending coins:
  55. #set staking=0 (set in configs above) lock/encrypt the wallet, and make sure you use coin-control when sending to not dip into the MN funds!
  56. ********************************************************************************************************************
  57.  
  58.  
  59. ***************************** LINUX VPS setup (part 2) *************************************************************
  60. #SSH into the vps (most windows users will use putty. If you're not familiar with putty, watch a quick youtube vid)
  61. #If you're on a mac (when the mac wallet is available, you have a built in SSH terminal instead of putty)
  62. #after connecting should see something like: root@whatever_your_server_name_is
  63. #copy all instructions one line at a time:
  64.  
  65. #first we will create a new user, we do not want to install as root
  66. #so let's create a user called saga1
  67. #it's going to ask you questions like room number, you can just hit enter for all those, all you really need to fill in
  68. #is the new user password, do not lose this password either, you need both the root & saga1 password from now on
  69.  
  70. adduser saga1
  71.  
  72. #now give this user sudo access (more power!)
  73. usermod -aG sudo saga1
  74.  
  75. #now download and run the install script:
  76. wget https://raw.githubusercontent.com/paranoidtruth/SagaCoin_install/master/saga_install.sh
  77. sudo chmod +x saga_install.sh
  78. #you WILL NEED the masternodeprivkey from windoows, copy it, right click to paste when asked for it
  79. sh saga_install.sh
  80. #enter y at the end to enable firewall
  81.  
  82. #now, let's see if we can see our ip in the list, swap in YOUR ip instead of xx.xx.xx.xx:
  83. sagacoind masternode list | grep xx.xx.xx.xx
  84.  
  85. #with any luck you will see something like: xx.xx.xx.xx:48744 : 1,
  86. #1 is good, that means your ip is active/enabled in the saga masternode list
  87.  
  88. #what if that doesn't find yours?
  89. #DEBUG RULES:
  90. #wait 5 min, then restart vps wallet & try again:
  91. sagacoind stop
  92. sagacoind
  93. #test again using the grep technique above
  94. #verify your vps wallet is in sync on blockchain to current block number:
  95. sagacoind getmininginfo
  96. #see if block number there matches current block count in explorer:
  97. #http://explorer.sagacoin.net/
  98.  
  99. if sync'd and still not in list, go back to windows and shut-down, restart wallet.
  100. Do all of the following in the windows wallet debug/console:
  101. masternode start-alias MN1 (use whatever you named your MN)
  102. verify yours is enabled in: masternode list full active
  103. If everything is good there, try again in LINUX VPS, use the grep command again
  104. if it's still not good, stop and restart it in the VPS:
  105. sagacoind stop
  106. sagacoind
  107. #still not good? Wait 5 min and repeat all debug steps.
  108.  
  109.  
  110. #FYI: some VPS commands you might use on occasion:
  111. sagacoind #starts sagacoin
  112. sagacoind masternode list #shows all nodes
  113. sagacoind stop #stops sagacoin
  114. sagacoind getmininginfo #show blocks, etc.
  115. sagacoind help #shows every possible command
  116.  
  117. #WINDOWS CMD:
  118. masternode outputs
  119. masternode list full active #and find yours
  120.  
  121. #wait for rewards. First one might take up to 24+ hours.
  122. #saga is SUPER random. don't be surprised when you don't get a reward in a full day.
  123. #just verify that it's running and you're fine.
  124. #I also use the monitoring feature of masternodes.online.
  125. #You can create an acct and find your node by searching by ip:port
  126. #add it to your monitor list, and be sure that it's running.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement