Before you begin, ensure you have:
Open a terminal and run the following commands:
# Update and install dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install -y git curl wget
# Clone the Omni Network repository
git clone <https://github.com/omni-network/omni-node.git>
# Navigate to the directory
cd omni-node
Set up environment variables:
Edit the .env
file to customize the node’s configuration.
cp .env.example .env
nano .env
Adjust the values as necessary:
NODE_NAME
: Give your node a unique name.CHAIN_ID
: The chain ID of the Omni Network.DATA_DIR
: Directory to store blockchain data.Save and exit: Press Ctrl + O
, then Enter
, and Ctrl + X
.
Run the following commands to start your node using Docker Compose:
# Build and start the container
docker-compose up --build -d
Check the logs to ensure the node is operating correctly: