sudo apt update
sudo apt install --no-install-recommends openbox
sudo install -b -m 755 /dev/stdin /opt/kiosk.sh << EOF
#!/bin/bash
xset -dpms
xset s off
openbox-session &
while true; do
rm -rf ~/.{config,cache}/google-chrome/
google-chrome --kiosk --no-first-run 'http://golfcanada.ca/members/post-score'
done
EOF
sudo install -b -m 644 /dev/stdin /etc/init/kiosk.conf << EOF
start on (filesystem and stopped udevtrigger)
stop on runlevel [06]
emits starting-x
respawn
exec sudo -u $USER startx /etc/X11/Xsession /opt/kiosk.sh --
EOF
sudo dpkg-reconfigure x11-common # select Anybody
echo manual | sudo tee /etc/init/lightdm.override # disable desktop
sudo reboot
sudo apt install --no-install-recommends openbox
sudo install -b -m 755 /dev/stdin /opt/kiosk.sh << EOF
#!/bin/bash
xset -dpms
xset s off
openbox-session &
while true; do
rm -rf ~/.{config,cache}/google-chrome/
google-chrome --kiosk --no-first-run 'http://golfcanada.ca/members/post-score'
done
EOF
sudo install -b -m 644 /dev/stdin /etc/init/kiosk.conf << EOF
start on (filesystem and stopped udevtrigger)
stop on runlevel [06]
emits starting-x
respawn
exec sudo -u $USER startx /etc/X11/Xsession /opt/kiosk.sh --
EOF
sudo dpkg-reconfigure x11-common # select Anybody
echo manual | sudo tee /etc/init/lightdm.override # disable desktop
sudo reboot