Format for a hostname
{$two arbitrary chars represents you}-${cloud provider}-${2 letter country}-${3 letter airport short code}-${3 arbitrary numbers}
sudo hostnamectl set-hostname XXXXXXXXX
sudo ufw allow from 170.205.24.129 to any port 9100
sudo ufw allow 5011
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin jq
sudo usermod -aG docker ${USER}
newgrp docker
mkdir ~/node
Enter your newly created node
folder.
cd node
Create the following 3 files:
sudo touch config.json
sudo touch logging.config
sudo touch algod.token
Copy into these files the contents of config.json, logging.config, and algod.token in the voi_testnet/node
folder in this repo.
Make sure you change the GUID in the logging.config
file, you can create a new GUID with this tool.
Make sure you change the text in the algod.token
file, you can create a new hash with this tool. You can just type in random characters into the input.
You can use the following to edit a file
sudo nano FILENAME
Go back to your home directory
cd
Create the following 3 files:
sudo touch catchup.sh
sudo touch goal.sh
sudo touch docker-compose.yaml
Copy into these files the contents of docker-compose.yaml, goal.sh, and catchup.sh in the voi_testnet
folder in this repo.
You can use the following to edit a file
sudo nano FILENAME
chmod +x ~/catchup.sh
chmod +x ~/goal.sh
sudo mkdir /mnt/nodevoit
docker pull urtho/algod-voitest-rly
docker compose up -d
~/catchup.sh
~/goal.sh node status