Skip to content

ToanBm/nexus-prover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

Deploying Nexus Contract

Auto Setup

1. Clone the repository

git clone https://github.com/ToanBm/nexus-prover.git && cd nexus-prover

2. Run the setup script

chmod +x contract.sh && ./contract.sh

Done!

Nexus-Prover-Test

  • Create an account at: app.nexus.xyz
  • Follow the account linking instructions
  • Your contributions will earn NEX Points
  • Track your progress on the leaderboard
  • Manage all your nodes in one place

Step 1: Remove Old Nexus Node

docker ps | grep nexus
docker ps -a | grep nexus
systemctl status nexus
sudo systemctl stop nexus
sudo rm -f /etc/systemd/system/nexus.service
sudo systemctl daemon-reload
sudo systemctl reset-failed
rm -rf ~/.nexus

Step 2: Update System Packages

sudo apt update && sudo apt upgrade -y
sudo apt install build-essential pkg-config libssl-dev git-all -y

Step 3: Install Nexus CLI

  • Install Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • Add the riscv32i target:
rustup target add riscv32i-unknown-none-elf
  • Install Script
curl https://cli.nexus.xyz/ | sh

*** Tới đây hỏi tiếp!!!!!

Step 4: Change the Prover ID

  • Ctrl + C to stop CLI
  • Edit prover-ID
nano ~/.nexus/node-id

Step 5: Run Nexus in a Screen Session

screen -S nexus 
curl https://cli.nexus.xyz/ | sh
  • Press Ctrl + A, then D exit
  • To check your node
screen -r nexus 

Fix RAM (Out of Memory Killer)

sudo dd if=/dev/zero of=/swapfile bs=1M count=10240 status=progress && \
sudo chmod 600 /swapfile && \
sudo mkswap /swapfile && \
sudo swapon /swapfile && \
grep -q '/swapfile' /etc/fstab || echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab && \
sudo sysctl vm.swappiness=10 && \
echo 'vm.swappiness=10' | sudo tee -a /etc/sysctl.conf

Fix experimental_allow_proto3_optional was not set

curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v25.1/protoc-25.1-linux-x86_64.zip && \\
    unzip -o protoc-25.1-linux-x86_64.zip -d /usr/local bin/protoc && \\
    unzip -o protoc-25.1-linux-x86_64.zip -d /usr/local 'include/*' && \\
    rm -f protoc-25.1-linux-x86_64.zip

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages