Repository navigation
Installation Linux
ottco-dev edited this page May 27, 2026
·
2 revisions
Tested on: Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, Debian 12, Fedora 39, Arch Linux
# Ubuntu / Debian
sudo apt update
sudo apt install -y nvidia-driver-535 nvidia-cuda-toolkit
# Fedora
sudo dnf install -y akmod-nvidia xorg-x11-drv-nvidia-cuda
# Arch
sudo pacman -S nvidia nvidia-utils cuda
# Verify (after reboot)
nvidia-smiExpected output shows GPU name, VRAM, and CUDA version.
# Ubuntu / Debian
sudo apt install -y \\
git curl wget build-essential \\
python3.12 python3.12-venv python3.12-dev \\
nodejs npm nginx \\
libgl1-mesa-glx libglib2.0-0
# Fedora
sudo dnf install -y git curl wget gcc gcc-c++ python3.12 python3.12-devel nodejs npm nginx mesa-libGL
# Arch
sudo pacman -S git curl wget base-devel python nodejs npm nginxcurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.bashrc
nvm install 20 && nvm use 20
node --version # v20.x.xcurl -LsSf https://astral.sh/uv/install.sh | sh
source ~/.bashrcgit clone https://github.com/ottco-dev/ctip-oss.git
cd ctip-ossuv venv --python 3.12
source .venv/bin/activate
# All extras (VLM, SAM2, training, dev tools)
uv pip install -e ".[all]"
# Lightweight (no VLM / SAM2 — for weak hardware)
uv pip install -e ".[dev]"
# Verify GPU access
python -c "import torch; print(torch.__version__, torch.cuda.is_available())"
# Expected: 2.x.x Truepip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121cd frontend && npm install && cd ..# Ubuntu / Debian
sudo apt install -y ca-certificates gnupg
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt update && sudo apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
# Add user to docker group (requires logout/login)
sudo usermod -aG docker $USER
newgrp docker
docker run hello-world # verifycp .env.example .envMinimum configuration:
DATA_ROOT="/home/youruser/ctip-oss/data"
MODELS_DIR="/home/youruser/ctip-oss/data/models"
OUTPUTS_DIR="/home/youruser/ctip-oss/data/outputs"
CUDA_DEVICE="cuda:0"
CUDA_VISIBLE_DEVICES="0"
VRAM_LIMIT_GB="8.0"
VRAM_INFERENCE_BUDGET_GB="2.0"
LABEL_STUDIO_URL="http://localhost:3005"
MLFLOW_TRACKING_URI="http://localhost:3004"
ENVIRONMENT="development"Alternatively use the Setup Wizard — it writes .env automatically.
chmod +x scripts/dev-start.sh
./scripts/dev-start.sh
# Check status
./scripts/dev-start.sh status| Service | URL |
|---|---|
| Main UI | http://localhost:3001 |
| API Docs | http://localhost:8000/docs |
| MLflow | http://localhost:3004 |
# Optional: start annotation stack
cd docker && docker compose --profile annotation up -dnvidia-smi | grep "CUDA Version"
python -c "import torch; print(torch.version.cuda)"
# Must be compatible: PyTorch CUDA ≤ driver CUDAss -tlnp | grep -E ':3001|:8000|:3000'
kill $(lsof -t -i:3001)sudo usermod -aG docker $USER
# Fully log out and back in, or:
newgrp dockersudo apt install -y libgl1-mesa-glx libglib2.0-0CTIP — Cannabis Trichome Intelligence Platform · RTX 4060 / 8 GB VRAM · Backend API · MLflow · Label Studio
Installation & Setup
Scientific Workflow
Reference