Chromium kiosk without a desktop for the Raspberry Pi 3, a Flask web interface on port 8080 (kiosk, system and network management), a restricted root helper, network changes with automatic rollback, a healthcheck timer, install/update/uninstall scripts and a pi-gen image build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
372 B
Bash
Executable File
10 lines
372 B
Bash
Executable File
#!/bin/sh
|
|
# Starts the kiosk X server on vt7 for user "kiosk" (via Xorg.wrap).
|
|
# A fresh MIT cookie per start; Chromium reads it via XAUTHORITY.
|
|
set -eu
|
|
AUTH="${RUNTIME_DIRECTORY:-/run/voxip-kiosk-x}/Xauthority"
|
|
umask 077
|
|
: > "$AUTH"
|
|
xauth -q -f "$AUTH" add :0 . "$(mcookie)"
|
|
exec /usr/bin/Xorg :0 vt7 -keeptty -novtswitch -nolisten tcp -nocursor -s 0 -dpms -auth "$AUTH"
|