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

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!

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.





The latest generation hybrid blockchain platform DAO Cooperative

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Smilo Cooperative

Smilo Cooperative

The latest generation hybrid blockchain platform DAO Cooperative

More from Medium

“Damn Vulnerable DeFi Wargame” Challenge #5 — The Rewarder Contract Analysis ❤️

Decentralized finance

DeFi Lending In A Nutshell

HYDN x Oracle Finance Partnership