Tutorial Lengkap: Menjalankan Nexus CLI Node di GitHub Codespaces

Tutorial tercepat untuk menjalankan Nexus Node di GitHub Codespaces dan mulai earning NEX Points!
Tutorial Nexus CLI Node di GitHub Codespaces

🚀 Tutorial Nexus CLI Node di GitHub Codespaces

🎯 Nexus Network CLI

Tutorial tercepat untuk menjalankan Nexus Node di GitHub Codespaces dan mulai earning NEX Points!

🔗 Link Penting - Klik untuk Buka:

1Setup Repository dan Codespace

1.1 Fork Repository Nexus CLI

  1. Buka: 🔗 github.com/nexus-xyz/nexus-cli
  2. Klik "Fork" untuk membuat copy di akun Anda
  3. Atau buat repository kosong dan clone manual (lihat langkah 1.2)

1.2 Alternatif: Buat Repository Kosong

  1. Buka: 🔗 GitHub.com dan buat repository baru
  2. Nama: nexus-node-runner
  3. Centang "Add a README file"
  4. Klik "Create repository"

1.3 Buat Codespace

  1. Di repository Anda, klik tombol hijau "<> Code"
  2. Pilih tab "Codespaces"
  3. Klik "Create codespace on main"
  4. Tunggu sampai Codespace siap

2Install Nexus CLI

2.1 Install dengan Script Resmi ⚡

Di terminal Codespace, jalankan installer resmi:

curl https://cli.nexus.xyz/ | sh

2.2 Restart Terminal

Setelah instalasi selesai, refresh environment:

source /home/codespace/.bashrc

Atau restart terminal dengan Ctrl+C lalu buka terminal baru

📥 Download otomatis dari: 🔗 cli.nexus.xyz

3Dapatkan Node ID

3.1 Cara Tercepat - Buat Akun di Web 🚀

  1. Buka: 🚀 app.nexus.xyz
  2. Sign up dan login
  3. Cari menu "Add Node" atau "Nodes"
  4. Copy Node ID yang diberikan

3.2 Alternatif - Registrasi via CLI

# Registrasi user dengan wallet address nexus-network register-user --wallet-address <your-wallet-address> # Buat node baru nexus-network register-node # Start node nexus-network start

Catatan: Ganti <your-wallet-address> dengan alamat wallet Anda

4Setup & Konfigurasi

4.1 Initial Setup - Pertama Kali

  1. Jalankan CLI untuk pertama kali
  2. Accept Terms of Use
  3. Pilih mode proving (lihat langkah 4.2)

4.2 Pilih Proving Mode

🏆 Link to Nexus Account (Recommended)

  • ✅ Contributions akan earn NEX Points
  • ✅ Track progress di leaderboard
  • ✅ Manage semua nodes dalam satu tempat
  • ✅ Buat akun di app.nexus.xyz

⚠️ Anonymous Proving

  • ❌ NEX Points TIDAK akan dicatat
  • ✅ Start proving langsung tanpa registrasi
  • ✅ Berguna untuk testing atau belajar

5Jalankan Node

5.1 Dengan Node ID yang Sudah Ada

nexus-network start --node-id <your-node-id>

Ganti <your-node-id> dengan Node ID dari dashboard app.nexus.xyz

5.2 Dengan Registrasi CLI (Full Setup)

# Registrasi lengkap dan start nexus-network register-user --wallet-address <your-wallet-address> nexus-network register-node nexus-network start

5.3 Logout/Clear Credentials

Jika perlu clear credentials:

nexus-network logout

Credentials disimpan di ~/.nexus/credentials.json

6Keep Codespace Aktif

6.1 Script Simple Keep-Alive

Buat file keep-running.sh:

echo '#!/bin/bash while true; do echo "Node running: $(date)" sleep 300 done' > keep-running.sh chmod +x keep-running.sh

6.2 Jalankan di Background

# Jalankan node di background nohup nexus-network start --node-id <your-node-id> > nexus.log 2>&1 & # Jalankan keep-alive ./keep-running.sh &

7Monitor Node

Check Status

# Lihat log tail -f nexus.log # Lihat proses yang running ps aux | grep nexus-network

💡 Tips Singkat

Restart Node:

pkill nexus-network nexus-network start --node-id <your-node-id> &

Auto-restart Script:

echo 'while true; do nexus-network start --node-id <your-node-id>; sleep 5; done' > auto-restart.sh chmod +x auto-restart.sh ./auto-restart.sh &

Cek Earnings:

Login ke: 💰 app.nexus.xyz

Cek dashboard untuk melihat NEX Points

🚨 Troubleshooting Cepat

  • Command not found: source /home/codespace/.bashrc atau restart terminal
  • Node offline: Restart dengan nexus-network start --node-id <your-node-id>
  • Codespace sleep: Jalankan keep-alive script
  • Clear credentials: nexus-network logout
  • Backwards compatibility: Jika punya CLI versi lama, jalankan install script ulang
⚠️ Penting: Jika sebelumnya pakai CLI versi lama, harus install ulang karena tidak backwards compatible. Proofs dari CLI lama tidak dapat rewards di Testnet III.

🔧 Resources & Documentation

🎯 Quick Start Summary

1. Install Nexus CLI:

curl https://cli.nexus.xyz/ | sh && source /home/codespace/.bashrc

2. Get Node ID:

app.nexus.xyz

3. Start Node:

nexus-network start --node-id <your-node-id>

4. Run in Background:

nohup nexus-network start --node-id <your-node-id> > nexus.log 2>&1 &

🎉 That's it!

Node Nexus Anda sudah running di GitHub Codespaces!

🏆 Untuk NEX Points, pastikan menggunakan Node ID dari akun: ✨ app.nexus.xyz


📝 Tutorial dibuat untuk kemudahan setup Nexus Node. Selalu cek dokumentasi resmi untuk update terbaru.

🔄 Last Updated: September 2025

Posting Komentar

Arsip