vi /opt/kiosk.sh
#!/bin/bash xset -dpms xset s off xset s noblank openbox-session & start-pulseaudio-x11 # while true; do # startx /etc/kiosk.conf # openbox-session & # start-pulseaudio-x11 while true; do # x11vnc -q -bg -reopen -forever chromium --kiosk --no-first-run --disable-translate --no-default-browser-check --no-proxy-server --noerrdialogs --disable-background-mode 'https://somewhere.cz' done
sudo apt-get install xserver-xorg-legacy Edit /etc/X11/Xwrapper.config allowed_users=anybody needs_root_rights=yes
V /etc/xdg/openbox/rc.xml zakomentovat všechny ShowMenu ( https://raspberrypi.stackexchange.com/questions/58314/disable-right-click-in-openbox-lxmanfm )
Službu založit podle https://askubuntu.com/questions/811422/migrate-upstart-to-systemd-on-ubuntu-lubuntu-to-autostart-chrome
[Unit] Description=Start of Google Chrome on startup PartOf=graphical-session.target [Service] Type=simple ExecStart=startx /etc/X11/Xsession /opt/kiosk.sh User=david Group=david