Created
December 4, 2014 09:15
-
-
Save ncornette/17b47d2bf4d61021ef81 to your computer and use it in GitHub Desktop.
.xinitrc for kiosk mode
This file contains 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
#!/bin/sh | |
# invoke global X session script | |
#. /etc/X11/Xsession | |
# HOW-TO : | |
# 1. Disable any Display Manager (lightdm/gdm/gdm3) from executing on startup | |
# 2. Allow user to start X : | |
# a. Edit /etc/X11/Xwrapper.config | |
# b. Set value : "allowed_users=anybody" | |
# 3. insert "su kiosk -c xinit &" into /etc/rc.local | |
# | |
#Disable dpms to prevent screen from blanking | |
xset -dpms; xset s off | |
#Configure displays (man xrandr for more options) | |
xrandr --output DP1 --prefered | |
xrandr --output HDMI1 --prefered | |
#Start matchbox wm (man matchbox-window-manager for more options) | |
exec matchbox-window-manager -use_titlebar no -use_cursor no & | |
#Open browser | |
chromium-browser --ignore-certificate-errors --app="https://login:[email protected]/mypage.html" | |
# Launch xterm after browser has been closed | |
# xterm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment