Installing Smilo mainnet node on Ubuntu Linux

Smilo Foundation
Sep 30 · 3 min read

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

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


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 ? :)

Be part of the Smilo hybrid blockchain movement!

Join our Telegram, Twitter and follow us on other social media for the latest updates! Medium | LinkedIn | Facebook | Reddit

For more information about the Smilo Platform check out our;
Website | Video | Whitepaper

Our partners,

Smilo Foundation

Written by

The latest generation hybrid blockchain platform

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade