September 27, 2021
Avalanche (EN)
Table of contents
Requirements
Launching
Docker
. <(wget -qO- https://raw.githubusercontent.com/SecorD0/utils/main/docker_installer.sh)
docker pull secord/avalanche:latest
docker run -it --restart=always --name=avalanche_node -d secord/avalanche:latest
â €Add a command to view a node log in the system as a variable
. <(wget -qO- https://raw.githubusercontent.com/SecorD0/utils/main/insert_variable.sh) -n "avalanche_log" -v "docker logs avalanche_node -fn 100" -a
Automatically (one line install)
. <(wget -qO- https://raw.githubusercontent.com/SecorD0/Avalanche/main/installer.sh)
Manually
sudo apt update && sudo apt upgrade -y
sudo apt install jq pkg-config build-essential libssl-dev -y
cd; \ avalanche_version=`wget -qO- https://api.github.com/repos/ava-labs/avalanchego/releases/latest | jq -r ".tag_name"`; \ wget "https://github.com/ava-labs/avalanchego/releases/download/$avalanche_version/avalanchego-linux-amd64-$avalanche_version.tar.gz"
tar -xvf "avalanchego-linux-amd64-$avalanche_version.tar.gz"
mv $HOME`find / -name "avalanchego*" -type d -printf '/%f'` $HOME/avalanche
â €Make avalanchego
executable
chmod +x $HOME/avalanche/avalanchego
sudo tee <<EOF >/dev/null /etc/systemd/system/avalanched.service [Unit] Description=Avalanche Node After=network-online.target [Service] User=$USER ExecStart=$HOME/avalanche/avalanchego Restart=always RestartSec=3 LimitNOFILE=65535 [Install] WantedBy=multi-user.target EOF
sudo systemctl enable avalanched sudo systemctl daemon-reload sudo systemctl restart avalanched
â €Add a command to view a node log in the system as a variable
. <(wget -qO- https://raw.githubusercontent.com/SecorD0/utils/main/insert_variable.sh) -n "avalanche_log" -v "sudo journalctl -f -n 100 -u avalanched" -a
avalanche_log
Useful commands
â €To view the last 100 node log entries
avalanch_log docker logs avalanche_node -fn 100 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