Kiosk-Mode
2024-08-02 / 2024-08-02 | ||
RPI mit Chromium im Kiosk-Modus...
install
sudo apt install -y --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox chromium-browser
Konfiguration
sudo nano /etc/xdg/openbox/autostart
# Disable any form of screen saver / screen blanking / power management
xset s off
xset s noblank
xset -dpms
# Allow quitting the X server with CTRL-ATL-Backspace
setxkbmap -option terminate:ctrl_alt_bksp
# Start Chromium in kiosk mode
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/'Local State'
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/; s/"exit_type":"[^"]\+"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences
chromium-browser --disable-infobars --kiosk 'https://bb8.l11/'
Autostart
nano .bash_profile
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx -- -nocursor
Test
startx -- -nocursor
Cert importieren
# Hatte keinen Erfolg, muss noch geprüft werden ...
m~sshfs 192.168.7.23
sudo cp ~/HeisAG-CA.crt /usr/share/ca-certificates/
sudo dpkg-reconfigure ca-certificates
sudo update-ca-certificates
Linksammlung
https://die-antwort.eu/techblog/2017-12-setup-raspberry-pi-for-kiosk-mode/