Skip to content

ariznode/codeassist-vps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 

Repository files navigation

Running Codeassist Using VPS

Reruitmens

Minimum Specification

CPU : 4 core

RAM : 8GB

This guide working for VPS

Create ssh key on your local using powershell

ssh-keygen -t rsa -b 4096

Just press enter for all uestion

Run this command for show your ssh keys

cat ~/.ssh/id_rsa.pub

then you need to show your ssh key then copy it or save on notepad

Copy all of cencored

Add ssh to your VPS

Open your vps and run this command

nano ~/.ssh/authorized_keys

paste your local ssh key then CTRL + O then ENTER then CTRL + X

Access your VPS using powershell by this command

ssh -L 8000:localhost:8000 -L 8008:localhost:8008 -L 3001:localhost:3000 -L 8001:localhost:8001 vpsusername@vpsip

Change vpsusername and vpsip with your vps data eg: [email protected]

Then you'll be asking for vps password, and enter your vps password then press ENTER

Installation

Install Dependencies

apt update && apt upgrade -y
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

Docker

apt update -y && apt upgrade -y
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do apt-get remove $pkg; done

apt-get update
apt-get install ca-certificates curl gnupg
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
chmod a+r /etc/apt/keyrings/docker.gpg

echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  tee /etc/apt/sources.list.d/docker.list > /dev/null

apt update -y && apt upgrade -y

apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

# Test Docker
docker run hello-world

Python

apt install python3 python3-pip python3-venv python3-dev -y

UV

curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="/root/.local/bin:$PATH"

Verify UV instalation

uv --version

Clone Codeassist Repository

git clone https://github.com/gensyn-ai/codeassist.git
cd codeassist

Running

To run CodeAssist, simply execute the following command:

uv run run.py

If you see this, wait a minut then enter your hugging face token

HuggingFace Token

To start CodeAssist, you will need to have a HuggingFace token. Follow these instructions and generate a token with Write access.

Login

After you see http://localhost:3000 on terminal open http://localhost:3001 on your browser then login, after login complete mission

About

Running Codeassist Using VPS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published