Before installing the Root Network validator node, you need to install some required dependencies, including git
, curl
, build-essential
, and Docker
.
# Update system packages
sudo apt update && sudo apt upgrade -y
# Install necessary dependencies
sudo apt install -y curl git build-essential jq docker.io
Root Network uses Docker to containerize and run the validator node, so Docker must be installed and properly configured.
# Install Docker
sudo apt install -y docker.io
# Enable Docker to start on boot
sudo systemctl enable docker
# Start Docker service
sudo systemctl start docker
# Verify Docker installation
docker --version
The next step is to clone the Root Network validator repository from GitHub. This repository contains the necessary scripts and configurations to run the validator.
# Clone the Root Network repository
git clone <https://github.com/therootnetwork/root-validator.git>
# Change into the repository directory
cd root-validator
Now, we will build and install the validator node. The repository contains scripts to help automate this process.
# Run the installation script
./install_validator.sh
This script will download the necessary Docker images, build the validator container, and prepare your node for deployment. It will also create a .env
file where you can customize your node settings.
The configuration file .env
contains various settings you can customize, such as the node name, validator address, and network parameters.
.env
file in a text editor:nano .env
NODE_NAME
: Choose a unique name for your node.VALIDATOR_ADDRESS
: Provide your validator address (this will be the public key associated with your validator).