For this project I simply want to have a raspberry pi start and launch a browser in kiosk mode. This pi would act as a status board letting passersby know the status of whatever is being displayed by the pi.
- Download and burn raspian to a micro sd.
- Log into the Pi with the default
pi
user and launchsudo rapsi-config
. - Set localization options if necessary.
- Change the default password.
- Configure the boot to
Desktop/CLI
and chooseConsole auto login
. - Enable SSH.
- Disable "overscan".
- Reboot the pi
- Update all pre-installed packages
sudo apt-get update
sudo apt-get upgrade
- Install xserver and a window manager
sudo apt-get install --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox
- Install a browser.
sudo apt-get install --no-install-recommends chromium-browser
- Configure openbox which was installed in step 10. This disables the screensaver and power management.
# Disable any form of screen saver / screen blanking / power management
xset s off
xset s noblank
xset -dpms
# Allow quitting the X server with CTRL-ATL-Backspace
setxkbmap -option terminate:ctrl_alt_bksp
# Start Chromium in kiosk mode
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/'Local State'
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/; s/"exit_type":"[^"]\+"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences
chromium-browser --disable-infobars --kiosk 'http://your-url-here'
- Finally, launch startx with
startx -- -nocursor
Courtesy https://die-antwort.eu/techblog/2017-12-setup-raspberry-pi-for-kiosk-mode/