Step 1: Install Docker and Docker Compose

Docker and Docker Compose are required to run the Fairblock node in an isolated environment.

Installing Docker:

  1. Open a terminal and update your system:

    sudo apt-get update
    
  2. Install Docker using the following command:

    sudo apt-get install docker.io
    
  3. Start Docker:

    sudo systemctl start docker
    
  4. Enable Docker to start on boot:

    sudo systemctl enable docker
    

Installing Docker Compose:

  1. Install Docker Compose:

    sudo apt-get install docker-compose
    
  2. Verify that Docker Compose is installed:

    docker-compose --version
    

Step 2: Clone the Fairblock Testnet Repository

The Fairblock network provides a repository with the necessary configuration files to set up your node.

  1. Clone the repository from GitHub:

    git clone <https://github.com/fairblocknetwork/fairblock-testnet.git>
    
  2. Navigate to the testnet folder:

    cd fairblock-testnet
    

Step 3: Configuration

In this step, you’ll configure the node to connect to the Fairblock testnet.

  1. Open the .env file (provided in the testnet repo) to configure network settings:

    nano .env
    
  2. Modify the necessary fields such as:

    Save and exit by pressing CTRL+X, then Y, and Enter.