Open-Sourcing the Multi-User LAN AI Stack on GitHub
The complete idempotent Bash & systemd orchestrator, privilege-isolation audits, and activity-aware suspend scripts are now publicly available.
Repository Live: derinworks/penr-oz-lan-ai-stack 📦
All deployment, verification, and operational scripts behind our local multi-user AI stack are now open-sourced on GitHub for Ubuntu + NVIDIA home lab setups.
What’s Included in the Repository
- Idempotent Stack Orchestrator (
deploy-lan-ai-stack.sh): Provisions isolatednologinaccounts (ollama,hermes-svc,openwebui-svc), per-user Hermes profiles with air-gapped--network=noneDocker sandboxes, Nginx TLS termination, UFW firewall rules, and dynamic 16GB VRAM concurrency budgeting. - Security & Readiness Verification (
verify.sh,test-svc-isolation.sh,e2e-test.sh): Audits non-sudo boundaries, cross-directory secret isolation, TLS private-key permissions, and authenticated/v1/chat/completionsendpoints. - Safe Upgrade & Diagnostic Helpers (
open-webui-backup.sh,open-webui-upgrade.sh): Enforces SQLite WAL-flushed database backups prior to virtual-environment upgrades, alongside Nginx and Open WebUI troubleshooting scripts. - Activity-Aware Idle Watchdog (
idle-check.py& GNOME helpers): Coordinates Ollama’s 30-minute VRAM keep-alive window with GPU utilization, core-scaled CPU load, SSH, andloginctlIdleHintchecks before suspending.
# Quick Start — Clone and run on Ubuntu 22.04 / 24.04
git clone https://github.com/derinworks/penr-oz-lan-ai-stack.git
cd penr-oz-lan-ai-stack && chmod +x *.sh
./deploy-lan-ai-stack.sh