Installation
Update your server to get the latest version
sudo apt update && sudo apt upgrade -y
Install dependencies
sudo apt install git curl wget tar lz4 unzip jq build-essential pkg-config clang bsdmainutils make ncdu -y
Install Go and Cosmovisor
Install Go
Go is a programming language allowing each node of the Cosmos ecosystem to operate.
cd $HOME
version="1.20.4"
wget "https://golang.org/dl/go$version.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$version.linux-amd64.tar.gz"
rm "go$version.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
Check GO version, it must return : go version go1.20.4 linux/amd6
go version
Install Cosmovisor
go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor@latest
Install Node
Install the current version of node binary.
cd $HOME
git clone https://github.com/realiotech/realio-network.git && cd realio-network
git checkout v0.9.2
make install
Configure Node
Initialize Node
Please replace 'YOUR_MONIKER' with your own moniker.
realio-networkd init YOUR_MONIKER --chain-id realionetwork_3301-1
Download Genesis
curl https://raw.githubusercontent.com/realiotech/mainnet/master/realionetwork_3301-1/genesis.json > ~/.realio-networkd/config/genesis.json
Configure Seed
Using a seed node to bootstrap is usually the best practice. Alternatively, you can use addrbook or persistent_peers.
sed -i 's/seeds = ""/seeds = "09ba537d6563018b97c502979c3478df4decf426@realio-seed.genznodes.dev:21656,6b236897e8c5f5de93f65c7299dff990ee5fcb45@realio.seed.bccnodes.com"/' ~/.realio-networkd/config/config.toml
Download Snapshot
We provide instructions for installing with our snapshot. Alternatively you can use State-sync.
Install lz4 if needed
sudo apt update
sudo apt install snapd -y
sudo snap install lz4
Download the snapshot
curl -L https://snap.blockval.io/realio/realionetwork_3301-1_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.realio-networkd
Launch Node
Configure Cosmovisor Folder
Create Cosmovisor folders and load the node binary.
# Create Cosmovisor Folders
mkdir -p ~/.realio-networkd/cosmovisor/genesis/bin
mkdir -p ~/.realio-networkd/cosmovisor/upgrades
# Load Node Binary into Cosmovisor Folder
cp ~/go/bin/realio-networkd ~/.realio-networkd/cosmovisor/genesis/bin
Create Service File
Create a realio.service file in the /etc/systemd/system folder with the following code snippet. Make sure to replace USER with your Linux user name. You need sudo previlege to do this step.
[Unit]
Description="realio node"
After=network-online.target
[Service]
User=USER
ExecStart=/home/USER/go/bin/cosmovisor run start --home /home/USER/.realio-networkd
Restart=always
RestartSec=3
LimitNOFILE=4096
Environment="DAEMON_NAME=realio-networkd"
Environment="DAEMON_HOME=/home/USER/.realio-networkd"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
Environment="UNSAFE_SKIP_BACKUP=true"
[Install]
WantedBy=multi-user.target
Start Node Service
# Enable service
sudo systemctl enable realio.service
# Start service
sudo service realio start
# Check logs
sudo journalctl -fu realio