Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.xinitrc for kiosk mode
#!/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:password@my.host/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
You can’t perform that action at this time.