1. Environment Preparation

Update and install necessary packages:

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

Install Go:

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

2. Install Celestia

Clone the Celestia repository:

cd $HOME
git clone <https://github.com/celestiaorg/celestia-app.git>
cd celestia-app
git checkout v0.11.0
make install

Verify the installation:

celestia-appd version

3. Initialize the Node

Initialize the node with the name <node_name>:

celestia-appd init <node_name> --chain-id mamaki

Add validator keys:

celestia-appd keys add <wallet_name>

4. Download Genesis File and Configuration

Download the genesis file:

wget -O $HOME/.celestia-app/config/genesis.json "<https://raw.githubusercontent.com/celestiaorg/networks/master/mamaki/genesis.json>"

Update seeds and peers in config.toml:

SEEDS="3a445bfdac6203170ef8e62caa5cb4a181346d7e@celestia-seed.blockpane.com:26656"
PEERS="12d2b93c45d55be8f626bca8fc7dd1f7fae0dee1@celestia-peer.blockpane.com:26656"
sed -i.bak -e "s/^seeds *=.*/seeds = \\\\"$SEEDS\\\\"/" $HOME/.celestia-app/config/config.toml
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \\\\"$PEERS\\\\"/" $HOME/.celestia-app/config/config.toml