Setting up a VPS
For this you'll need a VPS with Linux (prefferably Ubuntu 16.04).
One provider with quality VPS hosting is Digital Ocean .
(if you use the above reflink, you'll get a free $10 with your first deposit!)
1. Create an Account on Digital Ocean (reflink above)
2. Fund your account ($5 should do it) with Paypal or Credit Card
3. In your dashboard, at the top right click: "create" and select "Droplets"
4. Choose "Ubuntu 16.04", a $5/month package will do for most Masternodes
5. Choose Datacenter region (This applies mostly if you run multiple MNs from the same coin. Help the network and decentralize!)
6. Finalize your order by ordering the amount of VPS you need and giving them a name. Click Create.
You'll get an email with all info to log into your VPS
// There where other security options. I would encourage you to use them but they are not needed for the droplet to work.
For ANY masternode you can already set up:
Download PuTTY to SSH into your newly created VPS
You have chosen a VPS with only 1GB RAM, wich could be less then enough to compile the coin's wallet. Therefore we'll create a SWAP file (harddisk space that will be used as if it was RAM):
Check the memory:
Add the swapfile:
sudo fallocate -l 4G /swapfile ls -lh /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile #Make Changes Permanent echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab sudo bash -c "echo 'vm.swappiness = 10' >> /etc/sysctl.conf"
Check the memory, you should see the swapfile:
Then on to the user.
The root user is all powerfull. We don't want someone to get in there and snoop your MN info or alter it. We'll add a new user:
sudo adduser --force-badname MasterNodeCoinNameHere
usermod -aG sudo MasterNodeCoinNameHere
Now, as root we'll need to prepare the VPS:
sudo apt-get update -y sudo apt-get upgrade -y sudo apt-get dist-upgrade -y sudo apt-get install nano htop git vim -y sudo apt-get install build-essential libtool autotools-dev automake -y sudo apt-get install pkg-config libssl-dev libevent-dev bsdmainutils software-properties-common -y sudo apt-get install libboost-all-dev -y sudo apt-get install libzmq3-dev libminiupnpc-dev libssl-dev libevent-dev -y sudo add-apt-repository ppa:bitcoin/bitcoin -y sudo apt-get update -y sudo apt-get install libdb4.8-dev libdb4.8++-dev -y sudo apt-get install fail2ban -y sudo apt-get install -y ufw sudo apt-get update -y
for extra security we'll add some firewall items and fail2ban:
(XXXX = the port your MN coin uses)
udo ufw default allow outgoing sudo ufw default deny incoming sudo ufw allow ssh/tcp sudo limit ssh/tcp sudo ufw allow XXXX/tcp sudo ufw logging on sudo ufw enable sudo ufw status sudo systemctl enable fail2ban sudo systemctl start fail2ban
Now you log in as the new user and just follow the guide from your MN coin on how to set up your MN. This is in most cases pretty identical, but follow their guide to be sure!
You have set up your first VPS, ready for your first MN!
Enjoy the rewards
(please be patient and wait up to 48 hours after MN install to see if rewards come in)