sudo apt update && sudo apt upgrade -y
sudo apt install curl git jq build-essential gcc unzip wget lz4 -y
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
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
git clone -b v0.3.1 <https://github.com/0glabs/0g-storage-node.git>
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
Open your app.toml file: