Skip to content

How It Actually Works

The technical story behind "it just works everywhere"

Start Here: Why This Design?

Before diving into the technical details, read Design Philosophy to understand why this system uses JBOD over ZFS pools, native gaming over VM passthrough, and btrfs per drive. It explains the trade-offs and who this system is built for.

Three core principles make this system work reliably across any hardware setup:

What You Get

24 integrated services that work together automatically:

  • Media Management: Sonarr, Radarr, Lidarr, Prowlarr (finds and organizes everything)
  • Media Server: Plex with hardware acceleration (streams anywhere)
  • Clients: Plexamp (audio), Plex HTPC (TV/console), native Plex apps on Smart TVs
  • Downloads: SABnzbd + Transmission + Aria2 (gets your content fast)
  • Quality: Bazarr subtitles, Tdarr transcoding (GPU-accelerated), TRaSH optimization
  • Access: Secure Cloudflare tunnel (no ports, no VPN needed)
Complete Service List (24 containers)

Media Automation (5 Services)

  • Sonarr (8989) - TV show automation
  • Radarr (7878) - Movie automation
  • Lidarr (8686) - Music automation
  • Bazarr (6767) - Subtitle automation for 40+ languages
  • Prowlarr (9696) - Universal indexer management
  • Recyclarr - Automatic quality optimization

Media Services (3 Services)

  • Plex (32400) - Media server with hardware transcoding
  • Overseerr (5055) - Request management interface
  • Tdarr (8265) - Automated transcoding with AMD VCN 4.0 GPU

Download & Processing (3 Services)

  • SABnzbd (8080) - High-speed Usenet downloader
  • Transmission (9091) - BitTorrent client
  • Aria2 (6800) - RPC-based downloader

Libraries (8 Services)

  • Komga (8081) - Comics/PDF reader
  • Komf (8085) - Metadata enrichment for Komga
  • Kavita (5000) - Manga/ebook reader
  • Mylar3 (8090) - Comic/graphic novel automation
  • Whisparr (6969) - Adult content automation
  • Suwayomi (4567) - Manga sources (Tachidesk)
  • Audiobookshelf (13378) - Audiobooks/podcasts
  • Stash (9998) - Media organizer

Network & Sharing (2 Services)

  • Samba (445) - Windows file sharing
  • Cloudflare Tunnel - Secure remote access

Monitoring & Management (3 Services)

  • Netdata (19999) - Real-time system monitoring
  • Portainer (9000) - Docker container management
  • Uptime Kuma (3001) - Service health monitoring

Container Runtime

IMPORTANT: This stack runs on Docker (with sudo), NOT Podman.

bash
# Verify Docker is running
sudo docker ps

# Socket location
/var/run/docker.sock

# Do NOT use podman - it creates separate container instances and causes conflicts

Core Architecture Principles

Principle #1: Works With Your Hardware

Auto-detects and optimizes for whatever you have

The system finds your GPU and configures hardware acceleration automatically:

  • Current Setup: AMD Radeon 780M (VCN 4.0) with VA-API in Tdarr
  • NVIDIA RTX: 60+ FPS 4K transcoding (vs 2-5 FPS CPU-only)
  • Any GPU: AMD, Intel, even Raspberry Pi get optimized configs
  • No GPU: Works fine, just uses CPU (still faster than most setups)
Performance Gains & Technical Details

Real Performance Results (AMD Radeon 780M):

  • 4K HEVC Transcoding: 2-5 FPS (CPU) -> 60+ FPS (GPU) = 1200% improvement
  • Power Consumption: 200W (CPU) -> 50W (GPU) = 75% reduction
  • Concurrent Streams: 2 streams -> 8+ streams = 4x capacity
  • Quality: Standard -> HDR10+ with tone mapping

GPU Passthrough Configuration:

yaml
# docker-compose.yml (Tdarr)
devices:
  - /dev/dri:/dev/dri

VA-API Codec Support (VCN 4.0):

CodecDecodeEncode
H.264/AVCYesYes
HEVC/H.265YesYes
VP9YesNo
AV1YesNo

Supported Hardware:

  • AMD Radeon 780M (current): RDNA 3, VCN 4.0, VA-API/AMF acceleration
  • NVIDIA RTX: NVENC/NVDEC acceleration
  • Intel: QuickSync acceleration
  • Raspberry Pi: VideoCore optimization
  • Performance Profiles: Dedicated (100%), High (75%), Balanced (50%), Light (25%), Dev (10%)

Principle #2: Works With Your Storage

Use any drives, anywhere, anytime

Detects all your storage and lets you pick what to use:

  • Any filesystem: ZFS, exFAT, cloud drives, whatever
  • Portable drives: Take exFAT drives camping, plug them back in later
  • Cloud storage: Dropbox, OneDrive, Google Drive all work
  • Hot-swap: Add/remove drives without breaking anything
Storage Discovery & Management Details

What Gets Detected:

  • Local drives: ZFS, Btrfs, ext4, exFAT, NTFS
  • Cloud mounts: Dropbox, OneDrive, Google Drive, rclone mounts
  • Network storage: NFS, SMB/CIFS shares
  • JBOD arrays: Multiple drives working independently

How Hot-Swap Works:

  1. Plug in drive -> System detects it automatically
  2. Add to pool -> usenet storage add /media/your-drive
  3. Services update -> All apps can immediately use the new storage
  4. No restart needed -> Everything keeps running

Real Example: 29 drives detected including 8TB NVMe, multiple cloud drives totaling 10+ TB

Canonical paths we use today (Bazzite host)

PurposePath (host)Consumed by
Comics library/var/mnt/fast8tb/Cloud/OneDrive/Books/ComicsKomga, (optional) Kometa, Kavita
Ebooks (planned layout)/var/mnt/fast8tb/Cloud/OneDrive/Books/EbooksKavita
Audiobooks/var/mnt/fast8tb/Cloud/OneDrive/Books/AudiobooksAudiobookshelf
Kometa config/var/mnt/fast8tb/Cloud/OneDrive/KometaConfigKometa
Audiobookshelf config/var/mnt/fast8tb/Cloud/OneDrive/AudiobookshelfConfigAudiobookshelf
OneDrive comics source (GVFS)/run/user/1000/gvfs/onedrive:host=gmail.com,user=J3lanzone/Bundles_b896e2bb7ca3447691823a44c4ad6ad7/Books/Comics/rsync-comics (source)

Keep configs on the OneDrive-backed disk so backups/versioning are automatic.

Principle #3: Secure & Simple Access

Access everything from anywhere, safely

No complicated networking or VPN setup needed:

  • One domain: Everything at *.beppesarrstack.net with automatic SSL
  • Zero open ports: Cloudflare tunnel handles all access securely
  • Works anywhere: Home, work, mobile, friend's house
  • No configuration: DNS and certificates handled automatically
Security & Network Technical Details

How Security Works:

  • Cloudflare Tunnel: Outbound-only connections, no ports exposed
  • Automatic SSL/TLS: Certificates managed automatically
  • Domain: beppesarrstack.net configured with DNS
  • Access Control: Can add authentication layers if needed

Network Architecture:

  • Zero Trust: No direct internet exposure
  • High Availability: Cloudflare's global network
  • Fast Access: CDN acceleration for static content
  • Mobile Optimized: Works perfectly on phones/tablets

How to Use It

Simple commands that do complex things

The whole system is controlled through one command: usenet

Main Commands

bash
# Get everything running
usenet deploy                      # Interactive setup (recommended first time)
usenet deploy --auto               # Auto-detect everything and go

# Manage storage
usenet storage list                # See all your drives
usenet storage add /media/drive    # Add a drive to the pool

# Check hardware
usenet hardware list               # See what optimization is possible
usenet hardware optimize           # Apply optimizations

# Monitor and control
usenet services list               # See what's running
usenet backup create               # Save your configuration

# Direct Docker commands (requires sudo)
sudo docker ps                     # List running containers
sudo docker logs tdarr             # View Tdarr logs
sudo docker exec -it tdarr vainfo  # Check VA-API inside Tdarr
Complete CLI Reference

Storage Management:

bash
usenet storage list                 # List ALL mounted drives (ZFS, cloud, JBOD)
usenet storage add /mnt/drive1      # Add specific drive to pool
usenet storage sync                 # Apply changes and restart services

Hardware Optimization:

bash
usenet hardware list               # Show GPU capabilities and optimization opportunities
usenet hardware optimize --auto    # Generate hardware-tuned configurations
usenet hardware install-drivers    # Auto-install GPU drivers (NVIDIA/AMD/Intel/RPi)

Service Management:

bash
usenet services list               # Show all service health
usenet services logs sonarr        # View specific logs
usenet services restart radarr     # Restart service

Backup & Recovery:

bash
usenet backup create               # Create compressed configuration backup
usenet backup restore backup.tar   # Restore from backup with verification

Built-in Safety:

  • Safe defaults prevent breaking things
  • Helpful error messages with suggestions
  • Comprehensive validation before making changes
  • Professional help system: usenet help or usenet <command> --help

Performance Results

Real numbers from actual hardware

This isn't theoretical - here's what actually happens when you run it:

Hardware Acceleration Results (AMD Radeon 780M / VCN 4.0)

  • 4K Video: 2-5 FPS (before) -> 60+ FPS (after) = 1200% faster
  • Power Usage: 200W (CPU) -> 50W (GPU) = 75% less electricity
  • Multiple Streams: 2 streams -> 8+ streams = 4x more capacity
  • Video Quality: Automatic HDR tone mapping, better compression

Real System Example

  • 29 drives detected (including 8TB NVMe, cloud drives)
  • 24 containers running with 100% uptime via Docker
  • TRaSH Guide optimization automatically applied
  • GPU transcoding via VA-API in Tdarr
  • Zero manual networking - everything just works
Interactive Components & Live Demos

Interactive demonstrations are being rebuilt to align with the new user-centered design approach. Coming soon:

  • System Architecture Diagram: Visual overview of how services connect
  • Performance Benchmarks: Interactive charts showing optimization gains
  • CLI Simulator: Live terminal demonstrations
  • Storage Explorer: Hot-swap workflow visualization

Under the Hood

For developers who want to understand the technical implementation

Engineering Standards & Code Quality

Following Professional Standards

"Programs must be written for people to read, and only incidentally for machines to execute."

Code Quality:

  • 80-character lines for terminal compatibility
  • Function contracts documenting purpose, arguments, and returns
  • Comprehensive error handling with helpful guidance
  • Clear naming that explains intent
  • Zero magic strings - environment-based configuration

Architecture Principles:

  • Single responsibility - each component has one clear job
  • Proper abstractions - configuration, storage, hardware management
  • Professional CLI design - follows industry standards (Git, Docker, Terraform)
  • Comprehensive testing - unit and integration coverage
Technical Showcase & Portfolio Value

Demonstrates Technical Depth:

  • Vue 3, D3.js, advanced visualizations
  • Docker orchestration with 24 services
  • Multi-platform hardware optimization
  • Professional CLI design patterns

Shows Product Sense:

  • User-centered design over technical complexity
  • Community integration and resource sharing
  • Workflow optimization for real-world usage
  • Clear documentation and helpful interactions

Community Leadership:

  • Comprehensive resource sharing
  • Expert guidance and support systems
  • Knowledge sharing with validated links
  • Professional presentation standards

Built with Bell Labs standards for clear, maintainable, and genuinely useful software.Last updated: 27Dec25 - Docker runtime verified, 24 containers, AMD VCN 4.0 GPU working

Built with ❤️ following Bell Labs standards. Dedicated to Stan Eisenstat.