Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 1. Update System and Install Basic Dependencies
- sudo apt-get update && sudo apt-get upgrade -y
- 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
- # 2. Install Docker and Docker Compose
- # 2.1 Install Docker (if not already installed):
- sudo apt update
- sudo apt install docker.io -y
- sudo systemctl enable --now docker
- # 2.2 Install Docker Compose (if not already installed):
- 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
- sudo chmod +x /usr/local/bin/docker-compose
- # 2.3 Add user to Docker group:
- sudo usermod -aG docker $USER
- # 3. Install Python, Node.js, and Yarn
- # 3.1 Install Python and dependencies:
- sudo apt-get install python3 python3-pip python3-venv python3-dev -y
- # 3.2 Install Node.js (version 22.x):
- sudo apt-get update
- curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
- sudo apt-get install -y nodejs
- node -v # Check Node.js version
- # 3.3 Install Yarn:
- sudo npm install -g yarn
- yarn -v # Check Yarn version
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
- source ~/.bashrc
- # 3.4 Update nextJS
- yarn add next@15.2.4
- npm install react
- npm install react-dom
- # 4. Clone the Gensyn Repository
- cd
- git clone https://github.com/gensyn-ai/rl-swarm/
- # 5. Save changes into config
- source ~/.bashrc
- # 6. Creat screen session for node
- screen -S gensyn
- # 7. Create virtual environment and run node
- cd rl-swarm
- python3 -m venv .venv
- source .venv/bin/activate
- ./run_rl_swarm.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement