Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Configuration for VPS:
- Prerequisite:
- Putty client
- VPS hosting account
- Steps:
- 1) Create an account at any VPS hosting site. (I prefer Vultr)
- 2) Selecting the hardware requirement and the OS.
- 3) After the server is set-up, SSH into it via putty and enter the login details provided by Vultr.
- 4) Add another user to the system.
- #CODE:
- adduser *username* (Enter a desireable password, you can leave the other options blank)
- usermod -aG sudo *username*
- 5) Performing update of the system software.
- #CODE:
- apt update
- apt upgrade
- 6) Restart your server.
- #CODE:
- reboot
- 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.
- #CODE:
- sudo -i
- 8) Installing "ufw" firewall and configuring it for the ports.
- #CODE:
- apt install ufw
- ufw allow ssh/tcp
- ufw limit ssh/tcp
- ufw allow 61146
- ufw logging on
- ufw enable
- 9) OPTIONAL if you have server with 2GB RAM or more. Create a swap file double the size of server ram.
- #CODE:
- fallocate -l 2G /swapfile
- chmod 600 /swapfile
- mkswap /swapfile
- swapon /swapfile
- echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
- free -h
- reboot
- 10) Installing Cosmos CLI wallet and deamon
- #CODE:
- wget https://github.com/CMOS-Project/Cosmos/releases/download/v1.0.0/cmos-1.0.0-x86_64-linux-gnu.tar.gz
- tar -xzvf cmos-1.0.0-x86_64-linux-gnu.tar.gz
- cd cmos-1.0.0/bin/
- ./cmosd
- To check the status of sync:
- #CODE:
- ./cmos-cli getinfo
- 11) Configure cmos.conf file.
- #CODE:
- cd ~
- nano .Cosmos/cmos.conf
- Paste the below data:
- rpcuser=<your random rpc username>
- rpcpassword=<your random rpc password>
- listen=1
- txindex=1
- server=1
- daemon=1
- rpcallowip=127.0.0.1
- banscore=1000
- bantime=10
- logtimestamps=1
- maxconnections=64
- masternode=1
- externalip=<your masternode ip>
- masternodeprivkey=<your private key>
Add Comment
Please, Sign In to add comment