feat: Überarbeitung des Kiosk-Installationsskripts zur Vereinfachung der Installation ohne venv/nginx und Verbesserung der Benutzerinteraktion durch klare Fehlermeldungen und Anweisungen. Entfernen nicht benötigter Dateien und Anpassung der Service-Konfiguration für bessere Wartbarkeit.

This commit is contained in:
2025-05-27 08:54:04 +02:00
parent aa40816ba0
commit 77a29a7989
16 changed files with 144 additions and 1675 deletions

View File

@@ -1,37 +1,16 @@
[Unit]
Description=MYP Kiosk Mode (Chrome Vollbild)
Documentation=https://github.com/myp-project/kiosk
Description=MYP Kiosk Chromium Service
After=graphical-session.target myp-backend.service
Wants=graphical-session.target
Requires=myp-backend.service
PartOf=graphical-session.target
[Service]
Type=simple
User=myp
Group=myp
User=user
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/myp/.Xauthority
WorkingDirectory=/home/myp
ExecStartPre=/bin/sleep 10
ExecStartPre=/usr/bin/xset -dpms
ExecStartPre=/usr/bin/xset s off
ExecStartPre=/usr/bin/xset s noblank
ExecStart=/opt/myp/scripts/kiosk-start.sh
ExecStop=/usr/bin/pkill -f "google-chrome.*kiosk"
ExecStart=/usr/bin/chromium-browser --kiosk --no-sandbox --disable-infobars --disable-session-crashed-bubble --disable-restore-session-state http://192.168.0.105
Restart=always
RestartSec=5
TimeoutStartSec=30
TimeoutStopSec=10
StandardOutput=journal
StandardError=journal
SyslogIdentifier=myp-kiosk
# Sicherheitseinstellungen
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=false
ProtectSystem=true
[Install]
WantedBy=graphical-session.target