Installing Smilo mainnet node on Ubuntu Linux

This time we are going to install the Smilo Go Client, it will allow act as a node that you will be able to connect to via the web3.js library on the client.
Create your VPS on your favorite cloud using a Ubuntu +16.04
Install go-smilo
apt-get install software-properties-common
add-apt-repository -y ppa:smilo/smilo
apt-get update && apt-get install smilo
Create the smilo user:
adduser smilo
Lets configure smilo geth to start on reboot and to restart after 30s when crashing for some reason.
nano /lib/systemd/system/smilo.service
Copy in
[Unit] Description=Smilo Go Client
[Service] ExecStart=/usr/bin/sgeth --fast --cache=512 --nocompaction --datadir=/home/smilo/blockchain --sport --rpc --rpcapi=web3,db,net,eth
Restart=always
RestartSec=30
Type=simple
User=smilo
Group=smilo
[Install]
WantedBy=multi-user.target
and Ctrl + X to save it and then reload it with:
systemctl daemon-reload
systemctl enable smilo.service
Start it up and let’s have a look and see what magic happened
journalctl -u sgeth -n20
Now we have to wait a bit for it to synchronize with Smilo Mainnet, just let it run.
Are we done already? lets check if the sync process is completed:
geth attach ipc:/home/smilo/blockchain/geth.ipc
Get the complete status
eth.syncing
Run this script on the geth console to get a periodic report on the sync status:
setInterval(function(){var s = eth.syncing; console.log("%"+( s.currentBlock/s.highestBlock*100).toFixed(3)) }, 1000);
The sync will run on fast mode, we expect it to start fast and then slow down a bit towards the end.
From time to time you can check the block number
journalctl -u geth -n40
Once we are up to date, we have our Smilo node available for use on a VPS server. Easy, no ? :)
Links and resources
9. Testnet links (Block explorer, Faucet, Wallet, Remix)
10. Protocols for private transactions on the Smilo blockchain using zk-snarks
11. PostgreSQL for Smilo dApps
12. A Smilo key pair generator & transaction signer/sender using Intel SGX
13. Smilo Secure Wallet available at Google Play
15. launchpad.net/~smilo — Ubuntu packages for go-smilo blockchain
Be part of the Smilo hybrid blockchain movement!
Smilo’s development is not motivated by profit for either its developers or early adopters. In order to finance the project and guarantee its future, we invite everyone who sees potential to consider donating/investing to the project, and we hope that the vibrant cryptocurrency community will help Smilo to achieve its goal of making permissioned ledgers obsolete.
#NO-ICO #ICO-FREE #NOT-AN-ICO


