Initial Phoenix analyzer

This commit is contained in:
Mikei386
2026-06-02 20:56:19 +02:00
commit e499bac928
62 changed files with 28893 additions and 0 deletions
@@ -0,0 +1,26 @@
[Unit]
Description=Analyzer Kiosk Volumio (Raspberry Pi OS)
After=network-online.target
After=analyzer-web-volumio.service
Wants=analyzer-web-volumio.service
[Service]
User=root
Group=root
Environment=HOME=/root
Environment=KIOSK_USER=volumio
Environment=SESSION_SCRIPT=/home/volumio/Phoenix/session_volumio.sh
WorkingDirectory=/home/volumio/Phoenix
TTYPath=/dev/tty1
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
StandardInput=tty
StandardOutput=tty
StandardError=tty
ExecStart=/bin/bash /home/volumio/Phoenix/kiosk-start.sh
Restart=always
RestartSec=2
[Install]
WantedBy=multi-user.target
+36
View File
@@ -0,0 +1,36 @@
[Unit]
Description=Analyzer Kiosk (Raspberry Pi OS)
After=network-online.target
After=analyzer-web.service
Wants=analyzer-web.service
[Service]
# Run as root to ensure we can control the VT and X server.
User=root
Group=root
Environment=HOME=/root
WorkingDirectory=/home/analyzer/Phoenix
# Allocate a dedicated virtual terminal for the X server. Without this,
# xinit will fail when launched from an SSH session because it cannot
# open /dev/tty0. tty1 is reserved for this service.
TTYPath=/dev/tty1
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
StandardInput=tty
StandardOutput=tty
StandardError=tty
# Start a minimal X server and run our kiosk session script. The web UI
# is served by analyzer-web.service; this unit only brings up X,
# Chromium and Phoenix. The `vt1` argument ensures the X server uses the
# dedicated virtual terminal configured above.
ExecStart=/bin/bash /home/analyzer/Phoenix/kiosk-start.sh
# Automatically restart the kiosk if it crashes or exits.
Restart=always
RestartSec=2
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,16 @@
[Unit]
Description=Analyzer Web Volumio (HTTP on :8088)
After=network-online.target
Wants=network-online.target
[Service]
User=volumio
Group=volumio
WorkingDirectory=/home/volumio/Phoenix/www
NoNewPrivileges=true
ExecStart=/usr/bin/python3 -m http.server 8088 --bind 0.0.0.0
Restart=always
RestartSec=2
[Install]
WantedBy=multi-user.target
+18
View File
@@ -0,0 +1,18 @@
[Unit]
Description=Analyzer Web (HTTP on :80)
After=network-online.target
Wants=network-online.target
[Service]
User=analyzer
Group=analyzer
WorkingDirectory=/home/analyzer/Phoenix/www
AmbientCapabilities=CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
NoNewPrivileges=true
ExecStart=/usr/bin/python3 -m http.server 80 --bind 0.0.0.0
Restart=always
RestartSec=2
[Install]
WantedBy=multi-user.target