πŸ”Œ Installation - Celestia Lightnode (Mainnet)

πŸ’» Hardware Requirements

ComponentsMinimum Requirements
CPUSingle Core
RAM500 MB RAM (minimum)
STORAGE100 GB SSD

1️⃣ Installation packeges and dependencies

sudo apt update && sudo apt upgrade -y
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential git make ncdu -y

➑️ Go Installation

cd $HOME
VER="1.22.3"
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"
[ ! -f ~/.bash_profile ] && touch ~/.bash_profile
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> ~/.bash_profile
source $HOME/.bash_profile
[ ! -d ~/go/bin ] && mkdir -p ~/go/bin
go version

2️⃣ Install node

cd $HOME
rm -rf celestia-node
git clone https://github.com/celestiaorg/celestia-node.git
cd celestia-node/
git checkout tags/v0.15.0-rc0
make build
make install
make cel-key

Check celestia version.

celestia version
celestia light init

For wallet information;

./cel-key list --node.type light --keyring-backend test

➑️ Create a service

sudo tee <<EOF >/dev/null /etc/systemd/system/celd.service
[Unit]
Description=celestia-light
After=network-online.target
 
[Service]
User=$USER
ExecStart=$(which celestia) light start --core.ip rpc.celestia.pops.one --p2p.network celestia
Restart=on-failure
RestartSec=3
LimitNOFILE=4096
 
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable celd
sudo systemctl start celd

➑️ Check service

sudo systemctl status celd

➑️ Check logs

sudo journalctl -u celd -f

➑️ Other Commands

Generate wallet

./cel-key add <key-name> --keyring-backend test --node.type light \
  --p2p.network celestia

Recover wallet

./cel-key add <key-name> --recover --keyring-backend test \
  --node.type light --p2p.network celestia

You have the ability to export a private key from the local keyring in a format that is both encrypted and ASCII-armored.

./cel-key export <key-name> --keyring-backend test --node.type light \
  --p2p.network celestia