Guest User

Untitled

a guest
Jan 9th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. Configuration for VPS:
  2.  
  3. Prerequisite:
  4. Putty client
  5. VPS hosting account
  6.  
  7. Steps:
  8. 1) Create an account at any VPS hosting site. (I prefer Vultr)
  9.  
  10. 2) Selecting the hardware requirement and the OS.
  11.  
  12. 3) After the server is set-up, SSH into it via putty and enter the login details provided by Vultr.
  13.  
  14. 4) Add another user to the system.
  15. #CODE:
  16. adduser *username* (Enter a desireable password, you can leave the other options blank)
  17. usermod -aG sudo *username*
  18.  
  19. 5) Performing update of the system software.
  20. #CODE:
  21. apt update
  22. apt upgrade
  23.  
  24. 6) Restart your server.
  25. #CODE:
  26. reboot
  27.  
  28. 7) SSH into your server with the user you created above. After you're logged in, enter the code below to make changes to the system.
  29. #CODE:
  30. sudo -i
  31.  
  32. 8) Installing "ufw" firewall and configuring it for the ports.
  33. #CODE:
  34. apt install ufw
  35. ufw allow ssh/tcp
  36. ufw limit ssh/tcp
  37. ufw allow 61146
  38. ufw logging on
  39. ufw enable
  40.  
  41. 9) OPTIONAL if you have server with 2GB RAM or more. Create a swap file double the size of server ram.
  42. #CODE:
  43. fallocate -l 2G /swapfile
  44. chmod 600 /swapfile
  45. mkswap /swapfile
  46. swapon /swapfile
  47. echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
  48. free -h
  49. reboot
  50.  
  51. 10) Installing Cosmos CLI wallet and deamon
  52. #CODE:
  53. wget https://github.com/CMOS-Project/Cosmos/releases/download/v1.0.0/cmos-1.0.0-x86_64-linux-gnu.tar.gz
  54. tar -xzvf cmos-1.0.0-x86_64-linux-gnu.tar.gz
  55. cd cmos-1.0.0/bin/
  56. ./cmosd
  57.  
  58. To check the status of sync:
  59. #CODE:
  60. ./cmos-cli getinfo
  61.  
  62. 11) Configure cmos.conf file.
  63. #CODE:
  64. cd ~
  65. nano .Cosmos/cmos.conf
  66.  
  67. Paste the below data:
  68. rpcuser=<your random rpc username>
  69. rpcpassword=<your random rpc password>
  70. listen=1
  71. txindex=1
  72. server=1
  73. daemon=1
  74. rpcallowip=127.0.0.1
  75. banscore=1000
  76. bantime=10
  77. logtimestamps=1
  78. maxconnections=64
  79. masternode=1
  80. externalip=<your masternode ip>
  81. masternodeprivkey=<your private key>
Add Comment
Please, Sign In to add comment