Skip to main content

Avail Light

Use Ubuntu 22.04

Setup Wallet

cd $HOME
mkdir avail-light
cd avail-light
nano identity.toml
  • Isi dengan Mnemonic wallet yang tadi dibuat dengan format seperti ini:
avail_secret_seed_phrase = "PHARSE 12 KATA MU"
  • Save menggunakan command CTRL+X, Y, ENTER

Install Dependencies

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

Download Binary Avail

wget -O avail-light.tar.gz https://github.com/availproject/avail-light/releases/download/v1.7.10/avail-light-linux-amd64.tar.gz
tar -xf avail-light.tar.gz; cp avail-light-linux-amd64 avail-light; chmod +x avail-light; rm avail-light.tar.gz

Buat Service

avail-light.service
sudo tee /etc/systemd/system/avail-light.service > /dev/null << EOF
[Unit]
Description=Avail Light Client
After=network.target
StartLimitIntervalSec=0
[Service]
User=$USER
ExecStart=$HOME/avail-light/avail-light --network goldberg --identity $HOME/avail-light/identity.toml
Restart=always
RestartSec=120
[Install]
WantedBy=multi-user.target
EOF

Enable + Mulai Service

sudo systemctl daemon-reload
sudo systemctl enable avail-light
sudo systemctl restart avail-light && sudo journalctl -u avail-light -f --no-hostname -o cat

SS

Command Lain - lain

Cek logs

sudo journalctl -u avail-light -f --no-hostname -o cat
danger

⚠️ Jika ingin delete node ⚠️

sudo systemctl stop avail-light
sudo systemctl disable avail-light
rm /etc/systemd/system/avail-light.service
cd $HOME
rm -r avail-light