AURA NETWORK 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 aurad, 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.19.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.19.linux-amd64.tar.gz
rm go1.19.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
cat <> ~/.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.19 linux/amd64
Install aurad
git clone https://github.com/aura-nw/aura.git
cd aura
git checkout v0.7.1
make install
aurad version
You will receive this response:
v0.7.1
Init aurad
# CHANGE$NODE_NAME
with your “node name”
aurad config chain-id xstaxy-1
aurad init "$NODE_NAME" --chain-id xstaxy-1
Pruning Setting
sed -i 's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.0026uaura"|g' $HOME/.aura/config/app.toml
sed -i 's|^pruning *=.*|pruning = "custom"|g' $HOME/.aura/config/app.toml
sed -i 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|g' $HOME/.aura/config/app.toml
sed -i 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|g' $HOME/.aura/config/app.toml
sed -i 's|^pruning-interval *=.*|pruning-interval = "10"|g' $HOME/.aura/config/app.toml
sed -i 's|^indexer *=.*|indexer = "null"|g' $HOME/.aura/config/config.toml
Download Genesis, Addrbook, Snapshot and extract it
rm $HOME/.aura/config/genesis.json
wget https://snapshot.safeblock.space/aura/genesis.json -P $HOME/.aura/config
wget https://snapshot.safeblock.space/aura/addrbook.json -P $HOME/.aura/config
wget https://snapshot.safeblock.space/aura/aura-snapshot_03-12-2023.tar.lz4
lz4 -c -d aura-snapshot_03-12-2023.tar.lz4 | tar -x -C $HOME/.aura
rm aura-snapshot_03-12-2023.tar.lz4
Create Aura Service
# CHANGE $USER
with your “username”
sudo tee /etc/systemd/system/aurad.service > /dev/null << EOF
[Unit]
Description=Aura Network
After=network-online.target
[Service]
User=$USER
ExecStart=/home/$USER/go/bin/aurad start
Restart=always
RestartSec=3
LimitNOFILE=10000
[Install]
WantedBy=multi-user.target
EOF
Start Aura Service
Enable aurad in background:
sudo systemctl enable aurad
Start aurad in background:
sudo systemctl start aurad
Check Aura Service
sudo journalctl -fu aurad -o cat
# Ctrl+C to exit
sudo journalctl -fu aurad -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 Aura Network