Advertisement
Guest User

Linux MN Set Up

a guest
Jan 15th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.05 KB | None | 0 0
  1. This guide is for a single masternode, on a Ubuntu 16.04 64bit server(1GB RAM 25GB SDD) hosted by Vultr.com and will be controlled from the wallet on your local computer.
  2. After you’ve got your server details, you need to go through some initial setup before you do anything masternode related. I would recommend you follow these instructions.
  3. First the basic requirements:
  4. -10,000 JEW
  5. -A main computer(Your everyday computer browsin’, game playing’ computer)
  6. -Masternode Server(The computer that will be on 24/7)
  7. -A unique IP address for EACH masternode
  8. (For security reasons, you’re gonna need a different IP for each masternode you plan to host)
  9. The basic reasoning for these requirements is that, you get to keep your PIV in your local wallet,
  10. and host your masternode remotely, securely.
  11. For this guide, I’m going to refer to your main computer’s wallet as the main wallet, and the masternode wallet as the masternode wallets.
  12. I will also be simulating the install using a Ubuntu server using the command line. If your using pivxd, all commands should be proceeded by ./jew-cli .
  13. 1) Using the main wallet, enter the debug console and type the following command:
  14. masternode genkey (This will be the masternode’s privkey. We’ll use this later…)
  15. 2) Using the main wallet still, enter the following command:
  16. getaccountaddress masternodename
  17. 3) Still in the main wallet, send 10,000 JEW to the addresse. (Make sure this is 100% only 10,000; No less, no more.)
  18. 4) Still in the main wallet, enter the command into the console:
  19. masternode outputs (This gets the proof of transaction of sending 10,000)
  20. 5) Still on the main computer, go into the JEW data directory, by default in Windows it’ll be %Appdata%/shekel or ~
  21. Find masternode.conf and add the following line to it:
  22. <Name of Masternode(Use the name you entered earlier for simplicity)> <Unique IP address>:51472 <The result of Step 1> <Result of Step 4> <The number after the long line in Step 4>
  23. Example: MN1 31.14.135.27:51472 892WPpkqbr7sr6Si4fdsfssjjapuFzAXwETCrpPJubnrmU6aKzh c8f4965ea57a68d0e6dd384324dfd28cfbe0c801015b973e7331db8ce018716999 1
  24. Substitute it with your own values and without the “<>”s
  25. 6) Still on the main computer, open the shekel.conf file (Find it or use the edit the config file in the PIVX-qt client under “Tools”). Make it look like this:
  26. rpcuser=long random username
  27. rpcpassword=longer random password
  28. rpcallowip=127.0.0.1
  29. listen=0
  30. server=1
  31. daemon=1
  32. logtimestamps=1
  33. maxconnections=256
  34. Save it, close and restart the wallet.
  35. 7) Now on the masternods, find the JEW data directory here.(Linux: ~/.shekel). Open the shekel.conf file and make it look like this:
  36. rpcuser=long random username
  37. rpcpassword=longer random password
  38. rpcallowip=127.0.0.1
  39. listen=1
  40. server=1
  41. daemon=1
  42. logtimestamps=1
  43. maxconnections=256
  44. masternode=1
  45. externalip=your unique public ip address
  46. bind=your unique public ip address
  47. masternodeaddr=your unique public ip address
  48. masternodeprivkey=Result of Step 1
  49. Make sure to replace rpcuser and rpcpassword with your own.
  50. 8) Close and restart this masternode wallet.
  51. 10) Now, you need to finally start these things
  52. masternode start-alias alias (Make sure wallet is unlocked)
  53. If you did it right, you should see something like this:
  54. {
  55. "overall" : "Successfully started 1 masternode, failed to start 0, total 1",
  56. "detail" : {
  57. "status" : {
  58. "alias" : "mn1",
  59. "result" : "successful"
  60. }
  61. }
  62. 11)Use the following command to check status:
  63. masternode status
  64. You should see something like:
  65. {
  66. “vin” : “CTxIn(COutPoint(masternode output, index
  67. ), scriptSig=)”,
  68. “service” : “ip:51472”,
  69. “pubkey” : “masternode address”,
  70. “status” : “Masternode successfully started”
  71. }
  72. Congratulations! You have successfully created your masternode! You can confirm the node running correctly by making sure the time updates in the controller wallet.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement