πŸ’»Baremetal

Authors: Godwin

System Requirements

CPU
OS
RAM
DISK

2 -4 Cores (Fastest per core speed)

Debian 12/Ubuntu 22.04

8 - 16 GB

286GB (SSD)

circle-info

The gravity node has a size of 268GB on January 28, 2025

Offchain Labs ⛓️

Pre-Requisites

sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove -y

sudo apt install -y git make wget gcc pkg-config libusb-1.0-0-dev libudev-dev jq gcc g++ curl libssl-dev screen apache2-utils build-essential pkg-config

Setting up Firewall

Set explicit default UFW rules

sudo ufw default deny incoming
sudo ufw default allow outgoing

Allow SSH

sudo ufw allow 22/tcp
sudo ufw allow 8546
sudo ufw allow 8547
circle-exclamation

Enable Firewall

Install Docker

Add Docker Official GPG Key

Add the repository to ppt source

Install Docker

Install go

Download the Go programming language distribution archive, extracts it to the "/usr/local" directory, and then removes the downloaded archive, effectively installing Go version 1.23.5 on the system.

Add /usr/local/go/bin to the PATH environment variable.

You can do this by adding the following line to your $HOME/.profile or /etc/profile (for a system-wide installation):

Build Nitro with Docker

Copy Nitro binary from docker to /root/nitro/build/bin

Create service to run Nitro Node

Create a local directory and replace <some_local_dir> with your path

Create service

circle-info
  1. Run your own Ethereum mainnet node or use a node provider with unlimited rate limit for eth_getLogs and replace <ethereum_mainnet_rpc> with your rpc endpoint.

  2. Replace <ethereum_beacon_chain_rpc> with your own Ethereum beacon chain rpc endpoint.

Ctrl+X and Y to save changes

circle-info

To check or modify gravity.service parameters simply run

sudo nano /etc/systemd/system/gravity.service

Ctrl+X and Y to save changes

circle-check

References

Last updated