System Requirements


Step 2: Update VPS & Install Required Packages

sudo apt update && sudo apt upgrade -y
sudo apt install curl git jq build-essential gcc unzip wget lz4 -y

Step 3: Install Go

cd $HOME && \\
ver="1.22.4" && \\
wget "<https://golang.org/dl/go$ver.linux-amd64.tar.gz>" && \\
sudo rm -rf /usr/local/go && \\
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" && \\
rm "go$ver.linux-amd64.tar.gz" && \\
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile && \\
source ~/.bash_profile && \\
go version

Step 4: Install Rustup

To install Rustup, when prompted with options 1, 2, or 3, simply press Enter to select the default option and wait for the installation to complete.

curl --proto '=https' --tlsv1.2 -sSf <https://sh.rustup.rs> | sh

Clone the Repository

git clone -b v0.3.1 <https://github.com/0glabs/0g-storage-node.git>

Step 6: Build Storage Node

In this step, you need to wait for the installation to complete.\

cd $HOME/0g-storage-node
git submodule update --init
sudo apt install cargo
cargo build --release

Step 7: Create and Use Your Own RPC

Open your app.toml file: