Advertisement
Guest User

Untitled

a guest
Sep 5th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.52 KB | None | 0 0
  1. Introduction
  2.  
  3. This guide is for a single masternode, on a Ubuntu 16.04 64bit server (VPS) running headless and will be controlled from the wallet on your local computer (Control wallet). The wallet on the the VPS will be referred to as the Remote wallet.
  4. You will need your server details for progressing through this guide.
  5.  
  6. First the basic requirements:
  7.  
  8. 10,000 KGS
  9. A main computer (Your everyday computer) – This will run the control wallet, hold your collateral 10,000 KGS and can be turned on and off without affecting the masternode.
  10. Masternode Server (VPS – The computer that will be on 24/7)
  11. A unique IP address for your VPS / Remote wallet
  12.  
  13. (For security reasons, you’re are going to need a different IP for each masternode you plan to host)
  14.  
  15. The basic reasoning for these requirements is that, you get to keep your KGS in your local wallet and host your masternode remotely, securely.
  16. Configuration
  17.  
  18. Note: The auto zKGS minter should be disabled during this setup to prevent autominting of your masternode collateral. BEFORE unlocking your wallet, you can disable autominting in the control wallet option menu.
  19.  
  20. 1) Using the control wallet, enter the debug console (Tools > Debug console) and type the following command:
  21. masternode genkey (This will be the masternode’s privkey. We’ll use this later…)
  22.  
  23. 2) Using the control wallet still, enter the following command:
  24. getaccountaddress chooseAnyNameForYourMasternode
  25.  
  26. 3) Still in the control wallet, send EXACTLY 10,000 KGS to the address you generated in step 2 (Be 100% sure that you entered the address correctly. You can verify this when you paste the address into the “Pay To:” field, the label will autopopulate with the name you chose”, also make sure this is exactly 10,000 KGS; No less, no more.)
  27. – Be absolutely 100% sure that this is copied correctly. And then check it again. We cannot help you, if you send 10,000 KGS to an incorrect address.
  28.  
  29. 4) Still in the control wallet, enter the command into the console:
  30. masternode outputs
  31. (This gets the proof of transaction of sending 10,000)
  32.  
  33. 5) Still on the main computer, go into the Kingscoin data directory, by default in Windows it’ll be
  34. %Appdata%/Kingscoin
  35. or Linux
  36. ~
  37.  
  38. Find masternode.conf and add the following line to it:
  39.  
  40. <Name of Masternode(Use the name you entered earlier for simplicity)> <Unique IP address>:5545 <The result of Step 1> <Result of Step 4> <The number after the long line in Step 4>
  41.  
  42. Example: MN1 31.14.135.27:5545 892WPpkqbr7sr6Si4fdsfssjjapuFzAXwETCrpPJubnrmU6aKzh c8f4965ea57a68d0e6dd384324dfd28cfbe0c801015b973e7331db8ce018716999 1
  43.  
  44. Substitute it with your own values and without the “<>”s
  45. VPS Remote wallet install
  46.  
  47. 7) Install the latest version of the Kingscoin wallet onto your masternode. The lastest version can be found here: https://github.com/KINGSCOIN-KGC/KGS-Core
  48.  
  49. Go to your home directory:
  50. cd ~
  51. From your home directory, download the latest version from the Kingscoin GitHub repository:
  52. wget https://github.com/KINGSCOIN-KGC/KGS-Core/releases/download/v1/ubuntu.tar.gz
  53. The link above is for Ubuntu (or similar), make sure you choose the correct version of the core wallet if you are not using Ubuntu from:
  54. https://github.com/KINGSCOIN-KGC/KGS-Core/releases/
  55. Unzip and extract:
  56. tar -zxvf kingscoin-ubuntu.tar.gz
  57. Go to your Kingscoin bin directory:
  58. cd ~/kgs-binaries-ubuntu/bin
  59. Note: If this is the first time running the wallet in the VPS, you’ll need to attempt to start the wallet
  60. ./kingscoind
  61. this will place the config files in your ~/.kingscoin data directory
  62. press
  63. CTRL+C
  64. to exit / stop the wallet then continue to step 8
  65.  
  66. Configuration Cont.
  67.  
  68. 8) Now on the masternodes, find the Kingscoin data directory here.(Linux: ~/.kingscoin)
  69. cd ~/.kingscoin
  70.  
  71. 9) Open the kingscoin.conf by typing
  72. vi kingscoin.conf
  73. then press i to go into insert mode and make the config look like this:
  74.  
  75. rpcuser=long random username
  76. rpcpassword=longer random password
  77. rpcallowip=127.0.0.1
  78. server=1
  79. daemon=1
  80. logtimestamps=1
  81. maxconnections=256
  82. masternode=1
  83. externalip=your unique public ip address
  84. masternodeprivkey=Result of Step 1
  85.  
  86. Make sure to replace rpcuser and rpcpassword with your own.
  87.  
  88. 10) to exit the editor press
  89. esc
  90. then
  91. :wq!
  92. then press enter
  93. Start your masternode
  94.  
  95. 11) Now, you need to finally start these things in this order
  96. – Start the daemon client in the VPS. First go back to your installed wallet directory,
  97. cd ~/kgs-binaries-ubuntu/bin
  98. and then start the wallet using
  99. ./kingscoind
  100.  
  101. – From the Control wallet debug console
  102. startmasternode alias false <mymnalias>
  103.  
  104. where <mymnalias> is the name of your masternode alias (without brackets)
  105.  
  106. The following should appear:
  107. “overall” : “Successfully started 1 masternodes, failed to start 0, total 1”,
  108. “detail” : [
  109. {
  110. “alias” : “<mymnalias>”,
  111. “result” : “successful”,
  112. “error” : “”
  113. }
  114.  
  115. – Back in the VPS (remote wallet), start the masternode
  116. ./kingscoin-cli startmasternode local false
  117.  
  118. – A message “masternode successfully started” should appear
  119.  
  120. 12)Use the following command to check status:
  121.  
  122. ./kingscoin-cli masternode status
  123.  
  124. You should see something like:
  125.  
  126. {
  127. “txhash” : “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”,
  128. “outputidx” : 0,
  129. “netaddr” : “45.11.111.111:5545”,
  130. “addr” : “xxxxxxxxxxxxxxxxxxx”,
  131. “status” : 4,
  132. “message” : “Masternode successfully started”
  133. }
  134.  
  135. Congratulations! You have successfully created your masternode!
  136.  
  137. Now the masternode setup is complete, you are safe to remove “enablezeromint=0” from the kingscoin.conf file of the control wallet.
  138. Tearing down a Masternode
  139.  
  140. 1) How do I stop running MN1 on my VPS hoster and delete MN1 from my ‘Kingscoin Core – Wallet’?
  141.  
  142. a) ./kingscoin-cli stop from the masternode to stop the wallet.
  143. b) Then from your controller wallet PC, edit your masternode.conf, delete the MN1 masternode line entry.
  144. c) Now restart the controller wallet.
  145. d) your 10K will now be unlocked.
  146.  
  147. 2) How do I get the 10k back that I’ve send to my MN1 address at the beginning of the MN1 setup?
  148.  
  149. You don’t need to “get that back” as it is already in your wallet.
  150. Being in the different address is not an issue as that’s also your address.
  151.  
  152. 3) Can I use this 10k normally on my wallet then again, and sell it or stake it normally like before?
  153.  
  154. Yes! :slight_smile:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement