LINKS

**Website**
[<https://celestia.org/>](<https://celestia.org/>)

**Docs**
[<https://docs.celestia.org/>](<https://docs.celestia.org/>)

**Explorers**
[<https://celestia.explorers.guru/>](<https://celestia.explorers.guru/>)

**Github**
[<https://github.com/celestiaorg>](<https://github.com/celestiaorg>)

Install dependencies

# Update if needed
sudo apt update && sudo apt upgrade -y

# Insall packages
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu -y

# Install go
cd $HOME
ver="1.23.1"
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" >> $HOME/.bash_profile
source $HOME/.bash_profile

****go version

Build celestia-node

cd $HOME 
rm -rf celestia-node 
git clone <https://github.com/celestiaorg/celestia-node.git> 
cd celestia-node/ 
git checkout tags/v0.16.0
make build

sudo mv $HOME/celestia-node/build/celestia /usr/local/bin/

make cel-key

sudo mv $HOME/celestia-node/cel-key /usr/local/bin/

celestia version

Generate full storage wallet

CELESTIA_CHAIN=mocha-4
CELESTIA_PATH=$HOME

cel-key add FULL_WALLET --node.type full --keyring-backend test --keyring-dir $CELESTIA_PATH/.celestia-full-$CELESTIA_CHAIN/keys --p2p.network $CELESTIA_CHAIN

FUND ADDR

Set CORE RPC endpoints

# set vars
CORE_IP=http://95.217.225.107
CORE_IP_PORT=26657
CORE_GRPC_PORT=9090

Init and config bridge

# Set RPC listen address and port
FULL_RPC_ADDR="0.0.0.0"
FULL_RPC_PORT="27758"      # default is 26658

GATEWAY_ADDR="0.0.0.0"
GATEWAY_PORT="27759"        # default is 26659

# check vars
echo $CELESTIA_CHAIN,$CELESTIA_PATH,$CORE_IP,$CORE_IP_PORT,$CORE_GRPC_PORT,$FULL_RPC_ADDR,$FULL_RPC_PORT,$GATEWAY_ADDR,$GATEWAY_PORT | tr "," "\\n" | nl 
# output 9 lines

# init
celestia full init \\
  --p2p.network $CELESTIA_CHAIN \\
  --core.ip $CORE_IP \\
  --core.rpc.port $CORE_IP_PORT \\
  --core.grpc.port $CORE_GRPC_PORT \\
  --gateway \\
  --gateway.addr $GATEWAY_ADDR \\
  --gateway.port $GATEWAY_PORT \\
  --rpc.addr $FULL_RPC_ADDR \\
  --rpc.port $FULL_RPC_PORT \\
  --keyring.keyname FULL_WALLET \\
  --node.store $CELESTIA_PATH/.celestia-full-$CELESTIA_CHAIN

Create and run service

tee $HOME/celestia-full.service > /dev/null <<EOF
[Unit]
Description=celestia-full
After=network-online.target
[Service]
User=$USER
ExecStart=$(which celestia) full start --gateway --gateway.addr $GATEWAY_ADDR --gateway.port $GATEWAY_PORT --p2p.network $CELESTIA_CHAIN \\
  --node.store $CELESTIA_PATH/.celestia-full-$CELESTIA_CHAIN \\
  --node.config $CELESTIA_PATH/.celestia-full-$CELESTIA_CHAIN/config.toml --keyring.keyname FULL_WALLET
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF

sudo mv $HOME/celestia-full.service /etc/systemd/system/

sudo systemctl daemon-reload

sudo systemctl start celestia-full && journalctl -u celestia-full -o cat -f