Post
Topic
Board Announcements (Altcoins)
Re: [ANN][ENT] Eternity - X11 - No Premine
by
berron
on 16/07/2017, 10:47:40 UTC
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:
Quote
passwd root

Some simple firewall rules to improve security a bit:
Quote
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:
Quote

Wallet first start to create folders and files:
Quote
./eternityd

After the error message we create our eternity.conf file:
Quote
cd
cd .eternity/
nano eternity.conf

Write in it and save:
Quote
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:
Quote
eternitynode genkey
You get the EN private_key
Quote
getaccountaddress
Associated address to the EN.

Send the collateral (exactly 1000 ENT in one trasaction) to the address generated before.

Back in the VPS:
Quote
cd
cd .eternity/
nano eternity.conf

Put your private_key obtained with enternitynode genkey before in the place XXXX and save.

Then:
Quote
cd
cd eternity-0.12.0/bin
./eternityd

In the wallet:
Quote
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:
Quote
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:
Quote
./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:

Quote
Eternitynode start-alias

Message : eternitynode succesfully started blablablablabla...

Back in the VPS:
Quote
./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:
Quote
eternitynode list-conf

Donation address (give me a bit of your returns, I'm a poor man Wink ) : EenLewAUJNYR2EWVd4qRCyq7vrzysLkpRb

Salute, and any correction will be appreciated.