Guide to put a remote EN in a VPS server like Vultr or VPS.ag in Ubuntu 16.04 x64
I know that put this in root should be avoided, but don't have time to make users and so on for all the nodes I have.
After looging for the first time in the VPS follow this instructions. VPS is refered to the remote wallet. Controller wallet is the one with your ENT in your computer. If yo have installed masternodes of other coins, this is quite similar, but wording is always eternitynode.
Change default pass for security:
passwd root
Some simple firewall rules to improve security a bit:
ufw default deny
ufw logging on
ufw allow 22/tcp
ufw allow 4854/tcp
ufw allow 4855/tcp
ufw limit OpenSSH
ufw --force enable
Install the repo:
Wallet first start to create folders and files:
./eternityd
After the error message we create our eternity.conf file:
cd
cd .eternity/
nano eternity.conf
Write in it and save:
rpcuser=long random username
rpcpassword=longer random password
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
logtimestamps=1
maxconnections=256
eternitynode=1
eternitynodeprivkey=XXXX
addnode=176.65.120.174
addnode=176.65.120.5
addnode=2.95.220.18
addnode=46.119.117.105
addnode=5.19.241.85
In the controller wallet, open console and:
eternitynode genkey
You get the EN private_key
getaccountaddress
Associated address to the EN.
Send the collateral (exactly 1000 ENT in one trasaction) to the address generated before.
Back in the VPS:
cd
cd .eternity/
nano eternity.conf
Put your private_key obtained with enternitynode genkey before in the place XXXX and save.
Then:
cd
cd eternity-0.12.0/bin
./eternityd
In the wallet:
eternitynode getoutputs
We get the collateral TX_ID and TX_INDEX(0 or 1) (85898ae7956757657ced9689687687a 1 for example)
We open eternitynode.conf in our controller wallet and put a new line as:
Node-alias VPS_IP:4855 Private_key TX_ID TX_INDEX
Save the file
Close and reopen controller wallet
In VPS, check the wallet is already synced:
./eternity-cli getinfo
And take a look at block number to be sure EN is synced.
Check node creation transaction has already at least 16 confirmations. In the console:
Eternitynode start-alias
Message : eternitynode
succesfully started blablablablabla...
Back in the VPS:
./eternity-cli eternitynode status
"status" : "Eternitynode successfully started"
And done. My nodes have the bad habit to fall down every 10-15 days, take a look sometimes to their status with:
eternitynode list-conf
Donation address (give me a bit of your returns, I'm a poor man ) : EenLewAUJNYR2EWVd4qRCyq7vrzysLkpRb
Salute, and any correction will be appreciated.
berron would be great if you have also manual for miners, I saw that some people had problems setting them up.