To install the Guardian Node on Linux, you need to download the theta and thetacli binaries, a network snapshot, and the configuration file. It is recommended to run the node within a screen or tmux session on a Linux server to ensure it continues running after you log off.
Note on OS parameters: When downloading binaries via the provided URLs, use os=linux for Linux, os=macos for macOS (supports 10.15.x Catalina only), or os=windows for Windows.
# Start a screen session to keep the node running
screen -S theta_mainnet
# Create directory structure
mkdir ~/theta_mainnet
cd ~/theta_mainnet
mkdir bin
mkdir -p guardian_mainnet/node
# Download binaries, snapshot, and config
curl -k --output bin/theta `curl -k 'https://mainnet-data.thetatoken.org/binary?os=linux&name=theta'`
curl -k --output bin/thetacli `curl -k 'https://mainnet-data.thetatoken.org/binary?os=linux&name=thetacli'`
wget -O guardian_mainnet/node/snapshot `curl -k https://mainnet-data.thetatoken.org/snapshot`
curl -k --output guardian_mainnet/node/config.yaml `curl -k 'https://mainnet-data.thetatoken.org/config?is_guardian=true'`
# Set executable permissions
chmod +x bin/theta
chmod +x bin/thetacli
# Enter the bin directory
cd bin/