- Add firmware-linux-nonfree to ISO (fixes missing Realtek NIC firmware) - Pre-create nbxplorer/Main and btcpay/Main data directories - Fix fedimint data dir permissions (chmod 775 for non-root container) - GRUB GFX fallback: gfxpayload=keep + console fallback for incompatible hardware - Kill stale Chromium before kiosk restart (prevents duplicate processes) - Suppress Rust warnings: #[allow(dead_code)] on run_boot_reconciliation, #[allow(unused_assignments)] on history_dirty - Version bump to 1.3.3 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
65 lines
1.8 KiB
Bash
65 lines
1.8 KiB
Bash
#!/bin/bash
|
|
# Start X server in the background
|
|
/usr/bin/Xorg :0 -nocursor vt1 -nolisten tcp -keeptty &
|
|
XPID=$!
|
|
sleep 2
|
|
|
|
# Check if X started
|
|
if ! kill -0 $XPID 2>/dev/null; then
|
|
echo 'ERROR: Xorg failed to start'
|
|
exit 1
|
|
fi
|
|
|
|
export DISPLAY=:0
|
|
export HOME=/home/archipelago
|
|
|
|
# Allow archipelago user to connect
|
|
xhost +SI:localuser:archipelago 2>/dev/null
|
|
|
|
# Disable screen blanking
|
|
xset s off 2>/dev/null
|
|
xset -dpms 2>/dev/null
|
|
xset s noblank 2>/dev/null
|
|
|
|
# Hide cursor
|
|
unclutter -idle 3 -root &
|
|
|
|
# Kill any stale Chromium instances before starting
|
|
pkill -u archipelago -f 'chromium.*kiosk' 2>/dev/null
|
|
sleep 1
|
|
|
|
# Run Chromium as archipelago user in a restart loop
|
|
while true; do
|
|
sudo -u archipelago env DISPLAY=:0 HOME=/home/archipelago chromium --kiosk \
|
|
--app=http://localhost/kiosk \
|
|
--noerrdialogs \
|
|
--disable-infobars \
|
|
--disable-translate \
|
|
--no-first-run \
|
|
--check-for-update-interval=31536000 \
|
|
--disable-features=TranslateUI,MetricsReporting,AutofillServerCommunication,PasswordManagerEnabled \
|
|
--disable-session-crashed-bubble \
|
|
--disable-save-password-bubble \
|
|
--disable-suggestions-service \
|
|
--disable-component-update \
|
|
--disable-gpu \
|
|
--disable-gpu-compositing \
|
|
--disable-gpu-rasterization \
|
|
--disable-software-rasterizer \
|
|
--num-raster-threads=1 \
|
|
--renderer-process-limit=1 \
|
|
--disable-background-networking \
|
|
--disable-background-timer-throttling \
|
|
--disable-backgrounding-occluded-windows \
|
|
--disable-breakpad \
|
|
--disable-metrics \
|
|
--disable-metrics-reporting \
|
|
--disable-domain-reliability \
|
|
--js-flags="--max-old-space-size=128" \
|
|
--user-data-dir=/var/lib/archipelago/chromium-kiosk
|
|
sleep 3
|
|
done
|
|
|
|
# Cleanup
|
|
kill $XPID 2>/dev/null
|