Created
August 28, 2014 07:07
-
-
Save blkperl/528bccc0598351066b28 to your computer and use it in GitHub Desktop.
kiosk experimentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /opt/kiosk.sh | |
#!/bin/bash | |
xset -dpms | |
xset s off | |
openbox-session & | |
while true; do | |
#rm -rf ~/.{config,cache}/chromium/ | |
#/usr/bin/chromium-browser --kiosk --no-first-run 'http://braindump.cat.pdx.edu' | |
sudo Xorg -terminate -query elysium.cat.pdx.edu :1 | |
done | |
# /etc/init/kiosk.conf | |
start on (filesystem and stopped udevtrigger) | |
stop on runlevel [06] | |
console output | |
emits starting-x | |
respawn | |
exec sudo -u kiosk startx /etc/X11/Xsession /opt/kiosk.sh -- | |
moss:~# puppet resource user kiosk | |
user { 'kiosk': | |
ensure => 'present', | |
home => '/opt/kiosk', | |
managehome => true, | |
} | |
# set to Anybody | |
dpkg-reconfigure x11-common | |
# sudoers file | |
kiosk ALL=(ALL) NOPASSWD: /usr/bin/Xorg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment