1. Install Dependencies

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

2. Install Docker (if not installed)

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

3. Clone the Root Network Repository

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

4. Install Validator Node

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.

5. Configure the Validator Node

The configuration file .env contains various settings you can customize, such as the node name, validator address, and network parameters.

  1. Open the .env file in a text editor:
nano .env

  1. Set the following parameters: