#!/bin/bash # AI Hell container setup script # Run inside the LXC container on pve197 after GPU passthrough is configured. set -euo pipefail echo "=== AI Hell Container Setup ===" # System packages apt-get update apt-get install -y python3 python3-pip python3-venv git ffmpeg # Create app directory mkdir -p /opt/ai-hell cd /opt/ai-hell # Clone or copy project # (Adjust this based on whether you're cloning from Gitea or copying files) # git clone http://192.168.0.125:3000/Seth/ai-hell.git . # Virtual environment python3 -m venv venv source venv/bin/activate # Install dependencies pip install --upgrade pip pip install -r requirements.txt # Create runtime directories mkdir -p assets/img assets/audio samples echo "=== Setup complete ===" echo "Drop WAV files into /opt/ai-hell/samples/ for XTTS voice cloning sources." echo "Start with: systemctl start ai-hell"