Not advised to allow all or unknown IP address to RPC port
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
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.
Replace <ethereum_beacon_chain_rpc> with your own Ethereum beacon chain rpc endpoint.
Ctrl+X and Y to save changes
To check or modify gravity.service parameters simply run
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
# Test docker is working
sudo docker run hello-world
systemctl enable gravity.service #enable gravity service at system startup
sudo systemctl daemon-reload #refresh systemd configuration when changes made
sudo systemctl start gravity.service #start gravity
sudo systemctl stop gravity.service #stop gravity
journalctl -f -u gravity.service #follow logs of gravity service
The logs should look like below and indicate that your node syncs and is expected to reach chainhead in about a week
INFO [01-28|23:32:36.178] created block l2Block=36,676,753 l2BlockHash=f84024..8ee71c
INFO [01-28|23:32:37.179] created block l2Block=36,676,756 l2BlockHash=1e0d92..5f8afb
INFO [01-28|23:32:38.180] created block l2Block=36,676,760 l2BlockHash=e097e7..079758