1. Install Dependencies

You'll need a server running a Linux distribution (preferably Ubuntu or Debian). First, install the necessary dependencies for building and running the node software:

sudo apt-get update
sudo apt-get install build-essential clang pkg-config libssl-dev gcc-multilib protobuf-compiler

2. Install Rust

Fleek Network’s node software is written in Rust. You can install Rust using the following command:

curl --proto '=https' --tlsv1.2 -sSf <https://sh.rustup.rs> | sh

After installing, make sure Rust is properly set up:

source $HOME/.cargo/env

3. Clone the Fleek Network Repository

Next, you need to download the Fleek Network source code. Use the command below to clone the 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

Navigate to the project directory and build the node using Rust's package manager, Cargo:

cargo clean
cargo update
cargo +stable install --locked --path core/cli --features services

Once completed, the binary will be located at ~/.cargo/bin/lightning-node. For convenience, create a symbolic link:

sudo ln -s ~/.cargo/bin/lightning-node /usr/local/bin/lgtn

Verify the installation:

lgtn --version

5. Configure the Node

You need to configure your node by editing the configuration file. Create the default directory for the configuration: