Light node

Server specifications

Specification
Requirement

CPU

2+ VCPU

RAM

4+ GB

Storage

40+ GB SSD

UBUNTU

20

Installing essentials components

Before diving into the installation of your node, it's essential to update your VPS. To do this, simply run the following command in your VPS terminal :

sudo apt-get update && sudo apt-get upgrade -y

Install the necessary libraries

sudo apt install make clang pkg-config curl protobuf-compiler libssl-dev build-essential -y

Install essential components for the light node

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env
rustup default stable
rustup update
rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly

Clone the Avail Github

git clone https://github.com/availproject/avail-light.git
cd avail-light

Launch the installation of the Avail Light Node folder

cargo build --release

Create a service

nano /etc/systemd/system/availd.service
[Unit] 
Description=Avail Light Client
After=network.target
StartLimitIntervalSec=0
[Service] 
User=root 
ExecStart= /root/avail-light/target/release/avail-light --network goldberg
Restart=always 
RestartSec=120
[Install] 
WantedBy=multi-user.target

Launching the light node

systemctl enable availd.service
systemctl start availd.service

Check the status of your light node

systemctl status availd.service

Check the light node logs

journalctl -f -u availd

Last updated