Завершённые
September 3, 2021
Deploy onto Akash : Setting up an Avalanche Node
⠀In this article we are providing installation Guide of the Avalanch Validator Node within the Linux and offering 2 different ways. The 1st way is "Automatically (one line install)" - run this script and it performs all the necessary actions to start the Validator Node; 2nd method is a manual one - all commands must be executed manually.
Table of contents
Requirements
Launching
Automatically (one line install)
. <(wget -qO- https://raw.githubusercontent.com/SecorD0/Avalanche/main/multi_tool.sh)
Manually
sudo apt update && sudo apt upgrade -y
sudo apt install jq pkg-config build-essential libssl-dev -y
cd export avalanchego_version="v0.0.0" wget "https://github.com/ava-labs/avalanchego/releases/download/$avalanchego_version/avalanchego-linux-amd64-$avalanchego_version.tar.gz"
v0.0.0
- the node release you want (find it on releases page)
tar -xvf "avalanchego-linux-amd64-$avalanchego_version.tar.gz"
chmod +x $HOME$(find / -name "avalanchego*" -type d -printf '/%f')/avalanchego
sudo tee <<EOF >/dev/null /etc/systemd/system/avalanchd.service [Unit] Description=Avalanch Node After=network-online.target [Service] User=$USER ExecStart=$HOME$(find / -name "avalanchego*" -type d -printf '/%f')/avalanchego Restart=always RestartSec=3 LimitNOFILE=65535 [Install] WantedBy=multi-user.target EOF
sudo systemctl enable avalanchd sudo systemctl daemon-reload sudo systemctl restart avalanchd
⠀Add a command to view a node log in the system as a variable
. <(wget -qO- https://raw.githubusercontent.com/SecorD0/utils/main/miscellaneous/insert_variable.sh) -n avalanch_log -v "sudo journalctl -f -n 100 -u avalanchd" -a
avalanch_log
Useful commands
⠀To view the last 100 node log entries
avalanch_log sudo journalctl -f -n 100 -u avalanchd
sudo systemctl restart avalanchd
Useful URLs
Official project site | Official Telegram group | Discord | Twitter
Thanks
Let’s Node Team — writing an article and creating an auto installation script