Skip to content

Instantly share code, notes, and snippets.

@fjctp
Last active February 13, 2024 01:18
Show Gist options
  • Save fjctp/210f4e870f913416b8d0e17fd36153c2 to your computer and use it in GitHub Desktop.
Save fjctp/210f4e870f913416b8d0e17fd36153c2 to your computer and use it in GitHub Desktop.
RPi Zero W kiosk

Summary

Setup RPi Zero W as a kiosk

Step

  1. write Raspbian Lite image to a SD card
  2. enable ssh
touch /boot/ssh
  1. setup WiFi
/boot/wpa_supplicant.conf

country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="MySSID"
    psk="SSIDPASSWORD"
}
  1. inert the SD card to RPi zero w and boot-up 5.Autologin in Console
sudo raspi-config
  • Select “Desktop / CLI” and then “Console Autologin”.
  1. Install openbox and x-server
sudo apt-get install -y --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox
  1. install chromium browser
sudo apt-get install -y --no-install-recommends chromium-browser
  1. Start chromium automatically when X started
/etc/xdg/openbox/autostart 

# 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
chromium-browser --noerrdialogs --disable-infobars --kiosk 'http://www.google.com'
  1. start x automatically
~/.bash_profile

[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx -- -nocursor

Reference

@Finnsgranny
Copy link

Question, I am trying to set up a kiosk and it comes right up but one of the options is to watch a video, once this video is done I cannot get out of it back to the main menu because it opens either in a seperate tab or seperate window. How can it get it to either let me X out of the second window, x out of the tab, or arrow back to main menu. Have you any clue. I am using Linux mint with chromium or firefox kiosk mode.

@fjctp
Copy link
Author

fjctp commented Apr 28, 2020

I didn't try it, but take a look at the 1st reference. The author used xdotool to emulate key press to switch between tabs in the browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment