Normal Raspbian startup sequence
/usr/bin/raspi-config is a shell script to change some of the following options. docs
/etc/inittabsets the default runlevel and runs/etc/init.d/rcto execute startup scripts./etc/rc3.d/S03lightdmlaunches lightdm for runlevel 3./etc/lightdm/lightdm.confcontains configuration options for lightdm, including autologin-user/etc/X11/Xsessionsources all files in/etc/X11/Xsession.d/etc/X11/Xsession.d/50x11-common_determine-startupwill set STARTUP to either~/.xsessionor~/.Xsessionif it exists. If not executable, it will prepend${SHELL:-sh}. The default is STARTUP=/usr/bin/x-session-managerwhich is linked to/etc/alternatives/x-session-managerwhich is linked to/usr/bin/startlxde-pi- lxde is the "Lightweight X11 Desktop Environment"
/usr/bin/startlxde-pifinishes by starting an lxsession called LXDE-pi:exec /usr/bin/lxsession -s LXDE-pi -e LXDE
- Add a kiosk user:
sudo adduser kiosk - Make
/boot/kiosk-sessionwhich may be edited outside of linux if necessary. Data in this file may include options from xinitrc below. - Link
ln -s /boot/kiosk-session /home/kiosk/.xsessionto run that script rather than lxde when kiosk logs in. - Edit
/etc/lightdm/lightdm.confto setautologin-user=kioskandautologin-user-timeout=5to start kiosk after 5 seconds.
HOWTO: Boot your Raspberry Pi into a fullscreen browser kiosk