REALIO NODE INSTALL
It is assumed that you have already upgraded your host and secured your ssh access and all ports.
We’re going to install the pre-requisites, then we’ll install and configure Go and finally we’ll install realio-networkd, configure it and run it from our snapshot.
Install pre-requisites
sudo apt update
sudo apt install git build-essential ufw curl jq lz4 --yes
Install Go
wget https://go.dev/dl/go1.20.2.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.20.2.linux-amd64.tar.gz
rm go1.20.2.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
cat << EOF>> ~/.profile
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source ~/.profile
go version
You will receive this response:
go version go1.20.2 linux/amd64
Install realio-networkd
git clone https://github.com/realiotech/realio-network
cd realio-network
git checkout v0.8.3
make install
realio-networkd version
You will receive this response:
0.8.3
Init Realio Network
# CHANGE$NODE_NAME
with “your node name”
realio-networkd config chain-id realionetwork_3301-1
realio-networkd init "$NODE_NAME" --chain-id realionetwork_3301-1
Download Genesis, Addrbook, Snapshot and extract it
rm $HOME/.realio-network/config/genesis.json
wget https://snapshot.safeblock.space/realio/genesis.json -P $HOME/.realio-network/config
wget https://snapshot.safeblock.space/realio/addrbook.json -P $HOME/.realio-network/config
wget https://snapshot.safeblock.space/realio/realio-snapshot_03-12-2023.tar.lz4
lz4 -c -d realio-snapshot_03-12-2023.tar.lz4 | tar -x -C $HOME/.realio-network
rm realio-snapshot_03-12-2023.tar.lz4
Create Realio Service
sudo tee /etc/systemd/system/realio-networkd.service > /dev/null << EOF
# PASTE and CHANGE $USER
with your "username"
[Unit]
Description=Realio
After=network-online.target
[Service]
User=$USER
ExecStart=/home/$USER/go/bin/realio-networkd start
Restart=always
RestartSec=3
LimitNOFILE=10000
[Install]
WantedBy=multi-user.target
EOF
Start Realio Service
Enable realio-networkd in background:
sudo systemctl enable realio-networkd
Start realio-networkd in background:
sudo systemctl start realio-networkd
Check Realio Service
sudo journalctl -fu realio-networkd -o cat
# Ctrl+C to exit
sudo journalctl -fu realio-networkd -o cat | grep index
# Ctrl+C to exit
curl -s http://0.0.0.0:26657/status | jq -r .result.sync_info.catching_up
If response is “true”, you not are synched, wait….
When response is “false”, your node are synched to Realio Network