Nubit
Nubit is a scalable, cost-efficient, data availability layer secured by Bitcoin for the Bitcoin community. Nubit enables the scaling of Bitcoin's data capacities, empowering applications like Ordinals, Layer 2s, and price oracles.
Installation
- Install dependencies
sudo apt update && sudo apt upgrade -y
apt install curl iptables build-essential git wget jq make gcc nano tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev -y
- Install go
ver="1.21.1"
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"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile
source ~/.bash_profile
go version
- Install binary
curl -sL1 https://nubit.sh | bash
wait until the node is running and then CTRL C to stop. - Create Service File
sudo tee /etc/systemd/system/nubit.service > /dev/null << EOF
[Unit]
Description=Nubit Light Node
After=network-online.target
[Service]
User=$USER
ExecStart=/bin/bash -c 'curl -sL https://nubit.sh | bash'
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
- Enable Service
sudo systemctl daemon-reload
sudo systemctl enable nubit
- Start Node
sudo systemctl start nubit.service && sudo journalctl -u nubit.service -f --no-hostname -o cat
- Save Phrase
cd nubit-node
sudo cat mnemonic.txt