Update and install packages for compiling
//
sudo apt update
sudo apt install make clang pkg-config libssl-dev build-essential
// Some codemkdir -p ${HOME}/avail-node
mkdir -p ${HOME}/avail-node/data
mkdir -p ${HOME}/avail-node/systemd
Download The Required Files
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
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
sudo systemctl start availd.service
sudo systemctl status availd.service
sudo journalctl -fu availd.service