Running a Celestia Node

Running a Celestia node is crucial for participating in the Celestia network. This guide covers various methods to set up and run a Celestia node, including binary executions.

Running Celestia with Binary

Prerequisites

  • celestia-appd Binary: Build or download the latest on-chain version of celestia-appd.
  • Permissions: Ensure executable permissions for your binary.

Steps

  1. Execute celestia-appd Binary: Run the command ./celestia-appd [command] [flags]. For starting the daemon, use ./celestia-appd start.
  2. Systemd Configuration: Configure celestia-appd to run as a systemd service for reliability.
    • Move the binary to /usr/bin with cp celestia-appd /usr/bin/.
    • Create and edit the systemd service file /etc/systemd/system/celestia-appd.service with appropriate configurations.
  3. Manage Service:
    • Reload systemd: sudo systemctl daemon-reload
    • Restart celestia-appd: sudo systemctl restart celestia-appd
    • Enable on boot: sudo systemctl enable celestia-appd
    • Check logs: journalctl -u celestia-appd -f

Configuring celestia-appd

  • Config Files: Located in $HOME/.celestia/config.
    • config.toml: General settings.
    • app.toml: Application-specific settings.
    • client.toml: Stargaze client settings.