Advertisement
EvenoR

Nexus node

Feb 20th, 2025
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. ---------1--------
  2.  
  3. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  4.  
  5. --------2--------
  6.  
  7. rustup target add riscv32i-unknown-none-elf
  8.  
  9. ----------3----------
  10.  
  11. PROTOC_VERSION=21.12
  12. ARCH=linux-x86_64
  13. PROTOC_ZIP=protoc-$PROTOC_VERSION-$ARCH.zip
  14.  
  15. # Download and extract
  16. curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOC_VERSION/$PROTOC_ZIP
  17. sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
  18. sudo unzip -o $PROTOC_ZIP -d /usr/local include/*
  19. rm -f $PROTOC_ZIP
  20.  
  21. ------4-------
  22.  
  23. echo 'export PATH="$PATH:/usr/local/bin"' >> ~/.bashrc
  24. source ~/.bashrc
  25.  
  26. ------5-------
  27.  
  28. sudo fallocate -l 8G /swapfile
  29. sudo chmod 600 /swapfile
  30. sudo mkswap /swapfile
  31. sudo swapon /swapfile
  32. echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
  33. swapon --show
  34. free -h
  35. cat /proc/swaps
  36.  
  37. -------6-------
  38.  
  39. screen -S nexus
  40.  
  41. ------7-------
  42. curl https://cli.nexus.xyz/ | sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement