Skip to content

🛠️ Project: Operation Refit - Risa (The Pleasure Planet)

Status: 🏗️ Planned
Target: risa-recreation (HP EliteDesk 800 G4 Mini)
Objective: Decommission current gaming role, wipe clean, and repurpose as the high-performance "Front of House" Media & Network Gateway.


🌌 The Mission

We are transforming risa-recreation from a generic Ubuntu box into a specialized Appliance optimized for low-latency User Experience (UX).

The New Identity

  • Hostname: risa-shore-leave (Or keep risa-recreation if preferred, but "Shore Leave" implies high availability leisure).
    • Decision: Let's stick with risa-shore-leave to signify the fresh start.
  • Role: Federation Gateway & Media Core.
  • Prime Directive: "Immediate Response." (User clicks -> Risa delivers).

📅 Execution Plan

Phase 1: The Purge (Cleaning)

We need a clean slate. 1. Audit: Verify no critical data exists on the 256GB NVMe (It's currently just an OS drive). 2. Wipe/Reinstall: Install Debian 12 (Bookworm) or Ubuntu Server 24.04 LTS (Minimal). * Why Minimal? We want zero bloat. No Snap packages, no GUI overhead.

Phase 2: Power & Performance Tuning

Before installing apps, we tune the engine (i5-8500T). 1. Bios Config: Enable "Wake on LAN", "Restore on AC Power Loss". 2. OS Tuning (powertop): * Configure powertop --auto-tune to run on boot. * Enable Intel P-State scaling driver (powersave governor by default, jumping to performance on demand). 3. Intel GPU Drivers: * Install intel-media-driver and intel-gpu-tools. * Verify QuickSync access (/dev/dri/renderD128).

Phase 3: The Gateway Foundation (Migration from Proxmox)

These critical services will be moved from memory-alpha (VM 104) to risa-mediacore to reduce VM load and improve latency.

  1. Docker & Compose: Standard installation.
  2. Pi-hole:
    • Source: memory-alpha (VM 104).
    • Action: Export Teleporter backup, shutdown VM container, import to Risa.
    • Goal: Faster DNS response via i5 CPU.
  3. Nginx Proxy Manager:
    • Source: memory-alpha (VM 104).
    • Action: Migrate config/certs.
    • Goal: Handles SSL termination for plex.the-lal.net locally.

Phase 4: The Holodeck (Media Stack)

These media services move from holodeck-subspace (VM 106) to leverage the iGPU.

  1. Storage Mount: Mount /mnt/vault/media via NFS.
  2. Plex / Jellyfin:
    • Source: starfleet-compute / holodeck-subspace.
    • Config: Map /dev/dri for Hardware Transcoding.
  3. Audiobookshelf:
    • Source: holodeck-subspace (VM 106).
    • Action: Migrate following the storage refit.
    • Goal: Shutdown holodeck-subspace entirely.
  4. Immich:
    • Source: starfleet-compute.
    • Goal: Use QuickSync for video transcoding and AVX for ML.

🛠️ Step-by-Step Instructions (For Agent)

Step 1: Renaming & Prep

# On the current machine (192.168.1.21)
sudo hostnamectl set-hostname risa-shore-leave
# Update /etc/hosts

Step 2: Software Removal (If not reinstalling OS)

If we are avoiding a full OS reinstall (to save time), we must purge existing bloat.

# Remove unused packages
sudo apt purge --autoremove -y x11-common gnome-core snapd
# Disable unused services
sudo systemctl disable --now cups avahi-daemon

Step 3: Power Tuning

sudo apt install -y powertop intel-gpu-tools
# Create systemd service for auto-tune

✅ Success Criteria

  1. Hostname is risa-shore-leave.
  2. Idle Power: < 10W (Measured if possible, or estimated via powertop).
  3. Transcode Test: intel_gpu_top shows activity during Plex playback.
  4. Responsiveness: Pi-hole DNS queries < 5ms.