Repository navigation
First Run Setup
roto31 edited this page Nov 24, 2026
·
1 revision
StreamTV first-run runs through StreamTV.app onboarding (Welcome → DependencySetup → Port → Install location → Sample channels → YouTube/Archive sign-in → MCP offer → SetupDone). LaunchAgent-only installs use WebUI /setup.
flowchart TD
Welcome --> DependencySetup
DependencySetup --> Port
Port --> InstallLocation
InstallLocation --> Samples
Samples --> YouTubeAuth
YouTubeAuth --> ArchiveAuth
ArchiveAuth --> Jobs
Jobs --> MCP
MCP --> SetupDone
SetupDone --> MainShell
- Prompted: install location (Standard App Support vs Advanced repo), optional sample channels, port, YouTube/Archive sign-in, MCP Yes/hosts, Retry codec installation when Plex is present but AAC packs are missing
-
Background: config seed, FFmpeg/ffprobe, yt-dlp floor/upgrade, Plex AAC codecs verify/install, LaunchAgents (
com.streamtv, yt-dlp upgrade, TunarrRAM heal if mounted), DB ready, auth status lines
Universal production bootstrap (no lab-specific settings): Production-Bootstrap.
flowchart TD
Jobs["Background jobs"] --> YT["ensure_yt_dlp_current"]
Jobs --> Agents["Install LaunchAgents"]
Jobs --> PlexDetect{"Plex Media Server detected?"}
PlexDetect -->|no| Ready["Ready for SetupDone"]
PlexDetect -->|yes| AAC{"libaac_decoder.dylib present?"}
AAC -->|yes| Ready
AAC -->|no| Block["SetupDone blocked"]
Block --> Retry["Retry codec installation"]
Retry --> AAC
Ready --> Complete["POST /api/setup/complete → 200"]
Block --> Fail409["POST /api/setup/complete → 409"]
yt-dlp installs into the active venv via requirements.txt. First-run jobs call ensure_yt_dlp_current(). Operator check:
./venv/bin/python scripts/check_core_dependency_freshness.pySee Core-Dependency-Freshness.
When Plex Media Server is detected, SetupDone is blocked until libaac_decoder.dylib exists under Plex’s Application Support Codecs/ folder. See Plex-Playback-Error-Host.
Canonical guide: FIRST_RUN_SETUP.md · Wiki: SetupDone-and-Factory-Reset · Source-Auth-YouTube-Archive.