How district47/tak-installer works
TAK Server Installer is an Electron desktop wizard for guiding users from hardware or VPS planning through Ubuntu setup, SSH installation of OpenTakServer, post-install configuration, and a printable report. The renderer routes wizard screens and shares state; the Install screen connects an xterm terminal to the SSH shell through the preload IPC bridge. The README documents HTTPS, DuckDNS, health/firewall/network checks, and enrollment; their internal calls are not fully shown in the excerpts, so those links are documented rather than inferred from imports.
Main entry points: App.tsx Screen router · Configure.tsx Post-install checklist · Install.tsx Interactive installer · store.ts Wizard state
Components 26
Planning wizard
- Screen router
src/renderer/src/App.tsx - Wizard state
src/renderer/src/store.ts - Hosting choice
src/renderer/src/screens/Hosting.tsx - Device planning
src/renderer/src/screens/PhysicalDevice.tsx - Hardware recommendation
src/renderer/src/screens/PhysicalRecommend.tsx - VPS sizing
src/renderer/src/screens/VpsUsers.tsx - VPS recommendation
src/renderer/src/screens/VpsRecommend.tsx - Bare-metal Ubuntu guide
src/renderer/src/screens/PhysicalOS.tsx - VPS Ubuntu guide
src/renderer/src/screens/VpsOS.tsx - Server overview
src/renderer/src/screens/Overview.tsx - Recommendations and commands
src/renderer/src/data/config.ts
SSH installation
- SSH credentials
src/renderer/src/screens/Connect.tsx - Interactive installer
src/renderer/src/screens/Install.tsx
Server configuration
- Post-install checklist
src/renderer/src/screens/Configure.tsx - HTTPS setup
src/renderer/src/data/https.ts - DuckDNS updater
src/renderer/src/data/duckdns.ts - Health and network checks
src/renderer/src/data/postinstall.ts - Install report screen
src/renderer/src/screens/Report.tsx - Report generation
src/renderer/src/data/report.ts
Desktop runtime
- Preload SSH bridge
src/preload/index.ts - SSH shell and commands
src/main/ssh.ts - Electron main process
src/main/index.ts
Other components
- Installer user
- OpenTakServer installer
- Target server
- System browser
Connections 33
- Installer user → Screen router: uses wizard
README.md - Screen router → Wizard state: reads screen
src/renderer/src/App.tsx - Screen router → Hosting choice: routes to
src/renderer/src/App.tsx - Screen router → Device planning: routes to
src/renderer/src/App.tsx - Screen router → Hardware recommendation: routes to
src/renderer/src/App.tsx - Screen router → Bare-metal Ubuntu guide: routes to
src/renderer/src/App.tsx - Screen router → VPS sizing: routes to
src/renderer/src/App.tsx - Screen router → VPS recommendation: routes to
src/renderer/src/App.tsx - Screen router → VPS Ubuntu guide: routes to
src/renderer/src/App.tsx - Screen router → Server overview: routes to
src/renderer/src/App.tsx - Screen router → SSH credentials: routes to
src/renderer/src/App.tsx - Screen router → Interactive installer: routes to
src/renderer/src/App.tsx - Screen router → Post-install checklist: routes to
src/renderer/src/App.tsx - Screen router → Install report screen: routes to
src/renderer/src/App.tsx - Hosting choice → Wizard state: sets choice
src/renderer/src/screens/Hosting.tsx - Hardware recommendation → Recommendations and commands: uses links
- VPS recommendation → Recommendations and commands: uses tiers
src/renderer/src/screens/VpsRecommend.tsx - Bare-metal Ubuntu guide → SSH credentials: continues setup
src/renderer/src/screens/PhysicalOS.tsx - SSH credentials → Wizard state: stores credentials
src/renderer/src/screens/Connect.tsx - SSH credentials → Interactive installer: opens install
src/renderer/src/screens/Connect.tsx - Interactive installer → Wizard state: reads session state
src/renderer/src/screens/Install.tsx - Interactive installer → Preload SSH bridge: uses shell bridge
README.md - Preload SSH bridge → SSH shell and commands: invokes IPC
README.md - Electron main process → SSH shell and commands: registers SSH
src/main/index.ts - SSH shell and commands → Target server: opens SSH session
README.md - Interactive installer → OpenTakServer installer: runs installer command
- Post-install checklist → HTTPS setup: offers HTTPS setup
src/renderer/src/screens/Configure.tsx - Post-install checklist → DuckDNS updater: offers DNS setup
src/renderer/src/screens/Configure.tsx - Post-install checklist → Health and network checks: offers checks
src/renderer/src/screens/Configure.tsx - Post-install checklist → Install report screen: ends with report
README.md - Install report screen → Report generation: builds report
src/renderer/src/screens/Report.tsx - Install report screen → Wizard state: reads install state
src/renderer/src/screens/Report.tsx - Bare-metal Ubuntu guide → System browser: opens download link