Run the following command to install the required dependencies:
sudo apt install curl tar wget aria2 clang pkg-config libssl-dev jq build-essential git make ncdu -y
Download and install Go:
wget "https://golang.org/dl/go1.23.0.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go1.23.0.linux-amd64.tar.gz"
rm "go1.23.0.linux-amd64.tar.gz"
Add Go binaries to your PATH:
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
Check if Go is installed correctly:
go version
Clone the Celestia-Node repository:
cd $HOME
rm -rf celestia-node
screen -S CELESTIA
git clone https://github.com/celestiaorg/celestia-node.git
cd celestia-node/
Switch to the latest version (v0.20.4):
git fetch --tags
git checkout tags/v0.20.4
Build and install Celestia Node:
make build-jemalloc
make install
make cel-key
celestia version
Initialize the Celestia light node:
celestia light init --p2p.network celestia
Generate a key for the light node:
./cel-key add CHOOSE_A_NAME --keyring-backend test --node.type light --p2p.network celestia
Start the light node using the created key:
celestia light start --core.ip consensus.lunaroasis.net --keyring.keyname ENTER_THE_NAME_YOU_CHOSE_BEFORE
This completes the setup of a Celestia light node with version v0.20.4. Ensure your node is running correctly and syncing with the network.