Installation Validator
Install Node Producer/Validator Atomone
Chain ID: atomone-testnet-1 | Latest Binary Version: vv1.0.0
Update and install packages for compiling
sudo apt update
sudo apt install curl git jq lz4 build-essential zsh -y
User Management
Running in user (Assume) : salinem We never used this username in our production !
Create User, Please Refer to https://github.com/roomit-xyz/docs.roomit.xyz/blob/master/security/user-and-group-management.md
Login as User salinem
or
and make sure we are in directory
Running in user : salinem
FHS of SGE
Create FHS for application
echo "Install FHS"
mkdir -p ${HOME}/tmp
mkdir -p ${HOME}/lib
mkdir -p ${HOME}/bin
mkdir -p ${HOME}/conf
mkdir -p ${HOME}/systemd
Install Golang
# Install Go 1.21.13
wget https://go.dev/dl/go1.21.13.linux-amd64.tar.gz
tar xf go1.21.13.linux-amd64.tar.gz
mv go ${HOME}/bin
Environment and Variable
If Using ZSH
# Set Go path to $PATH variable
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> $HOME/.zshrc
echo "export GOPATH="${HOME}/lib" >> $HOME/.zshrc
echo "export GOMAXPROCS=2" >> $HOME/.zshrc
echo "export CHAIN_ID=atomone-testnet-1" >> $HOME/.zshrc
echo "export WALLET_NAME=mywallet" >> $HOME/.zshrc
echo "export MONIKER=MYNODE" >> $HOME/.zshrc
source ~/.zshrc
If Using BASH
# Set Go path to $PATH variable
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> $HOME/.bashrc
echo "export GOPATH="${HOME}/lib" >> >> $HOME/.bahsrc
echo "export GOMAXPROCS=2" >> $HOME/.bashrc
echo "export CHAIN_ID=atomone-testnet-1" >> $HOME/.bashrc
echo "export WALLET_NAME=mywallet" >> $HOME/.bashrc
echo "export MONIKER=MYNODE" >> $HOME/.bashrc
source ~/.bashrc
Install Atomone
cd ${HOME}/source
# Clone SGE Protocol version v1.1.1
git clone https://github.com/atomone-hub/atomone atomone
cd ${HOME}/source/atomone
git fetch && git checkout v{'changed': True, 'stdout': 'v1.0.0', 'stderr': '', 'rc': 0, 'cmd': '/app/testnet/atomone/bin/atomoned version', 'start': '2025-02-04 12:24:10.960274', 'end': '2025-02-04 12:24:11.090541', 'delta': '0:00:00.130267', 'msg': '', 'stdout_lines': ['v1.0.0'], 'stderr_lines': [], 'failed': False}
make build
cp build/atomoned ${HOME}/bin/
Intialize Node
atomoned init --chain-id $CHAIN_ID "$MONIKER"
Replace genesis file with our genesis file
wget https://server-2.itrocket.net/testnet/atomone/genesis.json -O $HOME/.atomone/config/genesis.json
Create new account
atomoned keys add $WALLET_NAME
Validate Genesis
atomoned validate-genesis
Edit config, You can refer to Edit Configuration Node
Apply State Sync, refer to https://github.com/roomit-xyz/docs.roomit.xyz/blob/master/testnet/atomone/infrastructures/statesync.md