This is a auto update for anyone who followed my original Linode Chaincoin Masternode guide, simply copy & paste the below code in SSH anywhere: chaincoind stop;cd /usr/local/bin;rm chaincoind -rf; rm chaincoin-cli -rf;wget http://highoncoins.com/chaincoin/centos7/chaincoin-cli; wget http://highoncoins.com/chaincoin/centos7/chaincoind;chmod 700 chaincoin*;cd ~;yum install -y libevent libevent-devel;chaincoind --daemon;sleep 300s;chaincoind masternode start;chaincoind getinfo;
For those of you having trouble with your Chaincoin Masternode not receiving Chaincoins or maybe seeing POS Error, here’s a simple script I wrote that will auto restart if Chaincoind goes down, server restarts, or has POS errors.
This script is ONLY for those who followed my original guide! (You may be able to tweak it a bit for other VPS/platforms)
First, choose any other port than 22, this will prevent hacking bots, which continually attack port 22 but you can choose any port you want, any number between 0 to 65535. So, choose a number between 0 and 65535, for this example, I am going to use port 99.
First, type the following and add port tcp to your firewall:
Next, edit the ssh config file by typing:
Change the following line:
# Port 22
to: Port 99
service sshd restart
to restart SSH. Next time you login, make sure to CHANGE PORT from 22 to the port you changed it to!
Next, MAKE SURE YOU HAVE A SECURE PASSWORD, if you do not, you can easily change your password by typing: passwd