Run an Avail Validator Goldberg Full Node

Update and install packages for compiling

// 
sudo apt update
sudo apt install make clang pkg-config libssl-dev build-essential

Create directory

// Some codemkdir -p ${HOME}/avail-node
mkdir -p ${HOME}/avail-node/data
mkdir -p ${HOME}/avail-node/systemd

Download The Required Files

// 
cd avail-node
wget https://github.com/availproject/avail/releases/download/v1.8.0.0/amd64-ubuntu-2204-data-avail.tar.gz
tar -xvzf amd64-ubuntu-2204-data-avail.tar.gz
cp amd64-ubuntu-2204-data-avail data-avail

Create Systemd

export USERNAME=$(whoami)
cat > ${HOME}/avail-node/systemd/availd.service  <<EOF

[Unit]
Description=Avail Validator
After=network.target
StartLimitIntervalSec=0

[Service]
User=$USERNAME
Type=simple
Restart=always
RestartSec=120
ExecStart=${HOME}/avail-node/data-avail --base-path ${HOME}/avail-node/data --chain goldberg --port 30333 --validator --name "YOUR_NAME_VALIDATOR"

[Install]
WantedBy=multi-user.target

EOF
sudo ln -sf ${HOME}/avail-node/systemd/availd.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable availd.service

Start Service

sudo systemctl start availd.service

Check Service

sudo systemctl status availd.service
sudo journalctl -fu availd.service

Last updated