-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
read -p "25575042: " NODE_ID
sudo apt update
sudo apt upgrade -y
sudo apt install -y build-essential pkg-config libssl-dev git-all protobuf-compiler curl screen
if ! command -v cargo &> /dev/null; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. "$HOME/.cargo/env"
else
. "$HOME/.cargo/env"
fi
rm -rf nexus-cli
git clone https://github.com/nexus-xyz/nexus-cli.git
cd nexus-cli/clients/cli
cargo build --release
sudo cp target/release/nexus-network /usr/local/bin/
cd ~
screen -dmS nexus-node nexus-network start --node-id "$NODE_ID"
echo "✅ Selesai!"
echo "👉 Gunakan perintah berikut untuk melihat log:"
echo " screen -r nexus-node"
echo "👉 Tekan Ctrl+A lalu D untuk keluar dari screen tanpa menghentikan proses"
Metadata
Metadata
Assignees
Labels
No labels