Installation
# Update the repositories
apt update && apt upgrade -y# Install developer packages
apt install curl iptables build-essential git wget jq make gcc nano tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev -y# Install Go (one command)
ver="1.20.1" && \
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz" && \
sudo rm -rf /usr/local/go && \
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" && \
rm "go$ver.linux-amd64.tar.gz" && \
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile && \
source $HOME/.bash_profile && \
go version
# go version go1.20.1 linux/amd64# Set the variables
# Come up with the name of your node and replace it instead <your_moniker>
MONIKER_SAO=<your_moniker>
echo 'export MONIKER_SAO='$MONIKER_SAO >> $HOME/.bash_profile
echo "export CHAIN_ID_SAO=sao-testnet0" >> $HOME/.bash_profile
echo "export PORT_SAO=38" >> $HOME/.bash_profile
source $HOME/.bash_profile
# check whether the last command was executedLast updated