Advertisement
EvenoR

Gensyn Node

Apr 6th, 2025 (edited)
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.76 KB | None | 0 0
  1. # 1. Update System and Install Basic Dependencies
  2. sudo apt-get update && sudo apt-get upgrade -y
  3. sudo apt install screen curl iptables build-essential git wget lz4 jq make gcc nano automake autoconf tmux htop nvme-cli libgbm1 pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev -y
  4.  
  5. # 2. Install Docker and Docker Compose
  6. # 2.1 Install Docker (if not already installed):
  7. sudo apt update
  8. sudo apt install docker.io -y
  9. sudo systemctl enable --now docker
  10.  
  11. # 2.2 Install Docker Compose (if not already installed):
  12. sudo curl -L "https://github.com/docker/compose/releases/download/v2.20.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  13. sudo chmod +x /usr/local/bin/docker-compose
  14.  
  15. # 2.3 Add user to Docker group:
  16. sudo usermod -aG docker $USER
  17.  
  18. # 3. Install Python, Node.js, and Yarn
  19. # 3.1 Install Python and dependencies:
  20. sudo apt-get install python3 python3-pip python3-venv python3-dev -y
  21.  
  22. # 3.2 Install Node.js (version 22.x):
  23. sudo apt-get update
  24. curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
  25. sudo apt-get install -y nodejs
  26. node -v  # Check Node.js version
  27.  
  28. # 3.3 Install Yarn:
  29. sudo npm install -g yarn
  30. yarn -v  # Check Yarn version
  31. curl -o- -L https://yarnpkg.com/install.sh | bash
  32. export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
  33. source ~/.bashrc
  34. # 3.4 Update nextJS
  35. yarn add next@15.2.4
  36. npm install react
  37. npm install react-dom
  38.  
  39. # 4. Clone the Gensyn Repository
  40. cd
  41. git clone https://github.com/gensyn-ai/rl-swarm/
  42.  
  43.  
  44. # 5. Save changes into config
  45. source ~/.bashrc
  46.  
  47. # 6. Creat screen session for node
  48. screen -S gensyn
  49.  
  50. # 7. Create virtual environment and run node
  51. cd rl-swarm
  52. python3 -m venv .venv
  53. source .venv/bin/activate
  54. ./run_rl_swarm.sh
  55.  
  56.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement