Setup RPi Zero W as a kiosk
- write
Raspbian Lite
image to a SD card - enable ssh
touch /boot/ssh
- 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"
}
- 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”.
- Install openbox and x-server
sudo apt-get install -y --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox
- install chromium browser
sudo apt-get install -y --no-install-recommends chromium-browser
- 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'
- start x automatically
~/.bash_profile
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx -- -nocursor
I've been trying to get this to work.
startx
would give me permission errors, which I fixed the following way:Then create
/etc/X11/Xwrapper.config
and add the following text:Chromium no longer supports the raspberry pi 0, so you can use firefox instead. I decided to use firefox ESR in hopes that it would use less memory. Simply change the chromium call to this:
This launches X, but after 18 minutes the screen is still black, so something must still be wrong. Any further input is appreciated.
EDIT 2024-07-06: It turns out that the most recent version of firefox doesn't want to run either. I tried looking into Midori but I don't think it has a kiosk mode. I'll probably be switching to an old pi 2 as well.