Guide to running a Avail node in Binanries

Airdrop

Posted by Thanh Dat - 12/12/2023

CryptoViet Info

    MỤC LỤC

Requirements

To run the Avail node, you need to meet the following conditions:

ComponentMinimumRecommended
RAM4GB8GB
CPU (amd64/x86 architecture)2 core4 core
Storage (SSD)20-40 GB200-300 GB
OS Recommended Ubuntu 22.04  

Guide to purchasing a Contabo VPS

View the Contabo VPS purchase guide here. Choose a configuration that suits your needs.

Zora-02.JPG

Guide to running Avail node

Step 1: Using binanries on ubuntu 22.04

To set up the coding environment, please copy and execute the commands provided below:

sudo apt-get -y update
sudo apt-get -y install build-essential &&
sudo apt-get -y install --assume-yes git clang curl libssl-dev protobuf-compiler && 
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

Step 2: Build the latest version of the Avail project (v1.8.0.0)

mkdir -p $HOME/avail-node 
cd $HOME/avail-node
git clone https://github.com/availproject/avail.git && cd avail && mkdir -p output && mkdir -p $HOME/avail-node/data && git checkout v1.8.0.0 && cargo run --locked --release -- --chain goldberg -d ./output

Once the commands have been executed, please wait for the processing to complete. You can then press Ctrl + C to stop the execution.

Step 3: Create a system service for more stable startup

Before creating the service, it is important to read and understand all the notes provided below. Once you have done so, you can proceed with the command.

sudo touch /etc/systemd/system/availd.service
sudo nano /etc/systemd/system/availd.service

Next, please paste the following command into the file. Before pasting it into the service, make sure to change the [HOME_PATH] and "your namenode" placeholders as instructed below:

To see your [HOMEPATH], enter the command:

pwd

Example: [HOME_PATH]/avail-node/avail/target/release/data-avail => /root/avail-node/avail/target/release/data-avail

"your namenode" is replaced by your namenode.

Ports 30333, 9933, 9615 must be opened in the firewall. After editing, press Ctrl + O and then Enter, then press Ctrl + X to exit.


[Unit] 
Description=Avail Validator
After=network.target
StartLimitIntervalSec=0
[Service]
User=root
ExecStart=[HOME_PATH]/avail-node/avail/target/release/data-avail --base-path [HOME_PATH]/avail-node/data --chain goldberg --port 30333 --rpc-external --rpc-port 9944 --prometheus-port 9615 --prometheus-external --validator --name "your namenode"
Restart=always
RestartSec=120
[Install]
WantedBy=multi-user.target

Step 4: Enable and start service

systemctl enable availd.service && systemctl start availd.service

Step 5: Check service status

systemctl enable availd.service && systemctl start availd.service

Step 6: View logs while running with the following command

journalctl -f -u availd

Please check status: https://telemetry.avail.tools/

If you encounter any errors during the process, you can join the Telegram group for assistance from our team in fixing bugs.

DISCLAIMER: Thông tin trên trang web này chỉ được cung cấp cho mục đích thông tin và không đại diện cho lời khuyên đầu tư. Để đưa ra quyết định đầu tư, chúng tôi khuyên bạn nên tự nghiên cứu.

Có thể bạn sẽ quan tâm

Recent PostPopular Post
Categories
Follow Us
CryptoViet Info
CryptoViet Info
CryptoViet Info
CryptoViet Info
CryptoViet Info
CryptoViet Info
CryptoViet Info
CryptoViet Info
CryptoViet Info
©2017 CryptoViet Info. All Rights ReservedMedia Kit