💚GaiaNet

Installing a GaiaNet Node

Installing a GaiaNet node allows users to participate in a decentralized network, providing access to AI agents and other features. Here's a detailed guide on how to install a GaiaNet node, including all necessary commands and configurations.

System Requirements

Before starting the installation, ensure that your server meets the following minimum system requirements:

Requirement

Minimum

Recommended

Processor (CPU)

4 cores

8 cores

Memory (RAM)

8 GB

24 GB

Storage

200 GB SSD

200 GB SSD

Operating System

Ubuntu 20.04 or newer

Ubuntu 20.04 or newer

Installation Steps

Step 1: Prepare the Server

  1. Choose a server that meets the above requirements. PQ.Hosting or Contabo are recommended hosting providers.

  2. Connect to your server via SSH:

    ssh username@your_server_ip
  3. Update the system:

    sudo apt update && sudo apt upgrade -y

Step 2: Install Required Packages

Make sure you have all necessary packages installed:

sudo apt install curl git -y

Step 3: Download and Install the Node

  1. Download and run the installation script for the node:

    curl -sSfL 'https://github.com/GaiaNet-AI/gaianet-node/releases/latest/download/install.sh' | bash
  2. Execute the command printed in the terminal to set up the environment variables. It will look similar to:

    source $HOME/.gaianet/gaianet.env

Step 4: Initialize the Node

  1. Initialize the GaiaNet node with the configuration from $HOME/gaianet/config.json:

    gaianet init
  2. Check the configuration in the config.json file and make changes if necessary:

    nano $HOME/gaianet/config.json
  3. An example configuration might look like this:

    {
        "node_id": "your_node_id",
        "device_id": "your_device_id",
        "rpc_port": 8080,
        "network": "mainnet"
    }

Step 5: Start the Node

  1. Start the node:

    gaianet start
  2. After a successful start, the terminal will display the public URL for your node.

Step 6: Check Node Status

You can check the status of your node using the following command:

gaianet status

This will show information about the current state of your node and connected AI agents.

Step 7: Stop the Node

If you need to stop the node, run:

gaianet stop

Node Registration

  1. Visit the GaiaNet website and connect an EVM wallet (e.g., MetaMask).

  2. Bind social media accounts in your profile to verify your identity.

  3. Click the "Add Node" button on the right, enter the previously obtained Node ID and Device ID.

  4. After clicking "Join," your node will be successfully added.

  5. You can track the status of your node and earn points for active participation.

  6. Regularly interact with the bot to receive additional rewards.

  7. Complete tasks on Galxe to earn extra points and rewards.

Last updated