Raspberry Pi – Upgrade bulleys to trixie

Raspberry Pi - Kiosk
March 26, 2026

Configure kiosk mode

clear chrome cache

rm -rf ~/.cache/chromium ~/.config/chromium

New one https://reelyactive.github.io/diy/pi-kiosk/

https://github.com/debloper/piosk

Change hostname if not already done

sudo hostnamectl set-hostname ??? sudo reboot

Install the following

sudo apt install xdotool unclutter

Create a kiosk file

sudo nano /home/pi/kiosk.sh

Paste the following in for chromium

#!/bin/bash xset s noblank xset s off xset -dpms unclutter -idle 0.5 -root & sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' /home/pi/.config/chromium/Default/Preferences sed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' /home/pi/.config/chromium/Default/Preferences #/usr/bin/chromium-browser --noerrdialogs --disable-infobars --kiosk https://www.raspberrypi.com/ https://time.is/London & #/usr/bin/chromium-browser --no-sandbox --window-size=1024,768 --kiosk --window-position=0,0 https://hdrcameras.onling.com:5001/webman/3rdparty/SurveillanceStation/?launchApp=SYNO.SS.App.VideoViewerVue.Instance&SynoToken=W9ZwQIG7NiF1Q & #/usr/bin/chromium-browser --window-size=1080,720 --kiosk --window-position=0,0 https://www.hammerdownrange.com/lobby/index.php & /usr/bin/chromium-browser --window-size=1080,720 --kiosk --window-position=0,0 https://www.hammerdownrange.com/lineup/lineup.php & while true; do xdotool keydown ctrl+Tab; xdotool keyup ctrl+Tab; sleep 10 done

Paste the following in for firefox

# Disable screen blanking and power management (works on both X11 and Wayland via xwayland compatibility) xset s noblank xset s off xset -dpms # Hide mouse cursor (unclutter works best on X11; if you're on pure Wayland, see notes below) unclutter -idle 0.5 -root & # Optional: Clean any crash flags (Firefox is more forgiving, but harmless to keep) sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.mozilla/firefox/*.default*/prefs.js 2>/dev/null || true # Launch Firefox in kiosk mode # -kiosk → Fullscreen kiosk (hides UI, prevents exiting easily) /usr/bin/firefox --kiosk --private-window https://synology.onling.com/webman/3rdparty/SurveillanceStation/login.cgi?SynoToken=nQhMc44EQyoEpeg & # Optional: Cycle tabs / refresh every 10 seconds (your original behavior) # If you only have one URL, you can comment this out or change it to a refresh instead while true; do # Send Ctrl+Tab to cycle tabs (if you open multiple tabs) xdotool keydown ctrl+Tab; xdotool keyup ctrl+Tab; sleep 10 done

Make it executable

sudo chmod 777 /home/pi/kiosk.sh 

Make a service file to auto startup

sudo nano /lib/systemd/system/kiosk.service

Paste the following in

[Unit] Description=Firefox Kiosk Mode After=graphical.target Wants=graphical.target [Service] Type=simple Environment=DISPLAY=:0 ExecStart=/home/pi/kiosk.sh Restart=always RestartSec=5 User=pi WorkingDirectory=/home/pi [Install] WantedBy=graphical.target

Make it so it auto starts and start it

sudo systemctl enable kiosk.service sudo systemctl start kiosk.service