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
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
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
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
You need to configure your node by editing the configuration file. Create the default directory for the configuration: