Installation
Automatic Installation
source <(curl -s https://raw.githubusercontent.com/NodersUA/Scripts/main/fleek)
Manual Installation
Update, upgrade and install requirements:
sudo apt-get update && \
sudo apt-get upgrade -y && \
sudo curl https://sh.rustup.rs -sSf | sh -s -- -y && \
source "$HOME/.cargo/env" && \
cargo install sccache && \
sudo apt-get install build-essential cmake clang pkg-config libssl-dev protobuf-compiler -y
Clone repository and build:
cd $HOME && git clone https://github.com/fleek-network/ursa && \
cd ursa && \
make install
Create a service:
sudo tee /etc/systemd/system/fleekd.service > /dev/null <<EOF
[Unit]
Description=Fleek Node
After=network.target
[Service]
User=$USER
Type=simple
ExecStart=$(which ursa)
Restart=on-failure
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
Restart the service:
sudo systemctl daemon-reload && \
sudo systemctl enable fleekd && \
sudo systemctl restart fleekd && \
sudo journalctl -u fleekd -f -o cat
Set an identity:
MONIKER="nickname"
Replace default identity:
systemctl stop fleekd && \
sed -i.bak -e "s/^identity *=.*/identity = \"${MONIKER}\"/" $HOME/.ursa/config.toml && \
rm $HOME/.ursa/keystore/*; \
sudo systemctl restart fleekd && \
sudo journalctl -u fleekd -f -o cat
Backup:
echo -e "$HOME/.ursa/keystore/"
Last updated
Was this helpful?