# Celestia Light Node - Mocha **Published by:** [GLCstaked](https://paragraph.com/@glcstaked/) **Published on:** 2022-12-20 **URL:** https://paragraph.com/@glcstaked/celestia-light-node-mocha ## Content Setup Celestia Light Client (Mocha Testnet) on a Ubuntu Linux 20.04 (LTS) x64 device. Light Client: conducts data availability sampling on the Data Availability network. A setup script, for easy install is available here:GitHub - GLCNI/celestia-node-scripts: deployment scripts for celestia nodesdeployment scripts for celestia nodes. Contribute to GLCNI/celestia-node-scripts development by creating an account on GitHub.https://github.comHardware Requirements : CPU: Single Core/ 2GB RAM/ Disk: 5 GB SSD/ 56Kbps Download/upload This is incredibly lightweight requirements that you can even run on a Mobile phone, if you want to try this see https://mirror.xyz/0xf3bF9DDbA413825E5DdF92D15b09C2AbD8d190dd/4UHV59sD23M2yeuLk17ukvJUzmgNo1pcnqQEcKsIkvMInstall Pre-requisite SoftwareUpdate the systemsudo apt update && sudo apt upgrade -y Install packages required for a Light nodesudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential git make ncdu -y Log in as root user A lot of steps will require and only work under root usersudo -i you can exit root with exitInstall GoGo is a programming language in which Celestia celestia-app and celestia-node are written in.cd /tmp && wget https://go.dev/dl/go1.19.1.linux-amd64.tar.gz tar -C /usr/local/ -xzf go1.19.1.linux-amd64.tar.gz Add to PATHcd /usr/local/ && echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bashrc && echo "export GOROOT=/usr/local/go" >> ~/.bashrc && echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> /home//.bashrc && echo "export GOROOT=/usr/local/go" >> /home//.bashrc && source ~/.bashrc && source /home/*/.bashrc confirm installation withgo version you should have an output like thisInstall Celestia-nodeCelestia Node is the software stack for Data availability nodes, Install the binary by running the following commands:cd $HOME rm -rf celestia-node git clone https://github.com/celestiaorg/celestia-node.git cd celestia-node/ git checkout tags/v0.6.0 make install make cel-key confirm installation withyou should have an output like thisInitialize Light Nodecelestia light init you should have an output like thisConnect to gRPC endpointStart the light node with a connection to a validator node's gRPC endpoint (which is usually exposed on port 9090): This can be any validator node including your own. Example Endpoint: https://rpc-mocha.pops.one:9090 Available Endpoints: https://docs.celestia.org/nodes/light-node/mocha-testnet#rpc-endpoints Example to place in system service file--core.ip https://rpc-mocha.pops.one:9090 Set up SystemD service for nodesetup to run as a background process with SystemD. This enables the node to run continuously in the background unless stopped.tee <<EOF >/dev/null /etc/systemd/system/celestia-lightd.service [Unit] Description=celestia-lightd Light Node After=network-online.target [Service] User=$USER ExecStart=/usr/local/bin/celestia light start --core.ip <RPCENDPOINT> Restart=on-failure RestartSec=3 LimitNOFILE=4096 [Install] WantedBy=multi-user.target EOF Enable and Start Servicesystemctl enable celestia-lightd systemctl daemon-reload systemctl start celestia-lightd View Logsjournalctl -u celestia-lightd.service -f Check service statussystemctl status celestia-lightd WalletOnce you start the Light Node, a wallet key will be generated for you. You will need to fund that address with testnet tokens to pay for PayForData transactions. You can find the address by running the following command in the celestia-node directory:cd celestia-node ./cel-key list --node.type light --keyring-backend test The Address that’s displayed is what you fund in order to start pay for data transactions. ## Publication Information - [GLCstaked](https://paragraph.com/@glcstaked/): Publication homepage - [All Posts](https://paragraph.com/@glcstaked/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@glcstaked): Subscribe to updates