Official Documentation Recommended Hardware:

Installation 🛠️

# install Rust and Cargo
apt install curl -y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# press 1
sudo apt install cargo -y
source ~/.cargo/env 
rustup update stable
# install Go (if needed)
cd $HOME
! [ -x "$(command -v go)" ] && {
VER="1.19.3"
wget "https://golang.org/dl/go$VER.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$VER.linux-amd64.tar.gz"
rm "go$VER.linux-amd64.tar.gz"
[ ! -f ~/.bash_profile ] && touch ~/.bash_profile
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> ~/.bash_profile
source $HOME/.bash_profile
}
[ ! -d ~/go/bin ] && mkdir -p ~/go/bin

Run a Light Node

To start your light node, simply run the following command:

    curl -sL1 https://nubit.sh | bash

Starting a Node in Background
    Please open a terminal & type the following command to start node service in the background:

        nohup bash <(curl -s https://nubit.sh) > $HOME/nubit-light.log 2>&1 &

    Then check the latest log by the following command to see whether some error occurs. You can also check the log later at any time.

        tail -n 20 $HOME/nubit-light.log
    You can also check whether the node has been started successfully, after a minute, by typing in:

        lsof -i :2121 | grep LISTEN
    and you would see outputs similar to this if the node has been started successfully:

        nubit   1731890 root  410u  IPv6 69875760      0t0  TCP *:scientia-ssdb (LISTEN)
        nubit   1731890 root  412u  IPv4 69875759      0t0  TCP *:scientia-ssdb (LISTEN)
    If nothing shows, the node starting up fails.

Delete

Stopping a Background-running Node
    Please open a new terminal first. Type in the following command to see whether there is a node running currently:

        lsof -i :2121 | grep LISTEN
    and you would see outputs similar to this if there is a node running currently:

        nubit   1731890 root  410u  IPv6 69875760      0t0  TCP *:scientia-ssdb (LISTEN)
        nubit   1731890 root  412u  IPv4 69875759      0t0  TCP *:scientia-ssdb (LISTEN)
    If nothing shows, there is no node running now. You can skip the steps below.

    Ok, there is a node currently running on your env and you want to stop it. Type in the following command to stop the node:

        kill $(lsof -t -i:2121)
    To check whether the node is stopped properly, type in:

        lsof -i :2121 | grep LISTEN
    If nothing shows up, the node is stopped, otherwise not.