September 9, 2024
Fleek Network [Installation Guide]
- System Requirements: Ensure your server meets the basic requirements. It's recommended to use a Linux-based system (preferably Ubuntu).
- Install Dependencies: Start by installing necessary packages:
sudo apt-get update sudo apt-get install build-essential clang pkg-config libssl-dev gcc-multilib protobuf-compiler
2. Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh source $HOME/.cargo/env rustup update
3. Clone the Fleek Network Repository
git clone -b testnet-alpha-1 https://github.com/fleek-network/lightning.git ~/fleek-network/lightning cd ~/fleek-network/lightning
4. Build the Node
- Compile the Node: Navigate to the project directory and build the node using Rust’s package manager:
cargo clean cargo update cargo +stable install --locked --path core/cli --features services
Link the Executable: To make the node command globally accessible, create a symbolic link:
sudo ln -s "$HOME/.cargo/bin/lightning-node" /usr/local/bin/lgtn
5. Configure and Run the Node
- Node Configuration: Before starting the node, you might need to configure it using the
lightning.tomlfile. The default configuration should suffice for most cases, but adjustments can be made based on your setup. - Start the Node: Run the node using the following command:
lgtn run
Opt-In to Network Participation: To participate in the network, you must opt-in:
lgtn opt in
6. Monitor and Maintain the Node
- Systemd Service: It's advisable to manage your node using
systemdto ensure it restarts automatically in case of failure:
[Unit] Description=Fleek Network Node After=network.target [Service] Type=simple User=your_username ExecStart=/usr/local/bin/lgtn run Restart=always RestartSec=3 [Install] WantedBy=multi-user.target
After saving the service file, enable and start the service:
sudo systemctl enable fleek-node sudo systemctl start fleek-node
7. Keep the Node Updated
- Regular Updates: Since Fleek Network is in active development, frequently pull the latest changes from the GitHub repository and rebuild the node to ensure you're running the latest version:
git pull origin testnet-alpha-1 cargo clean cargo update cargo +stable install --locked --path core/cli --features services