How to set up Raspberry Pi kiosk mode
Raspberry Pi kiosk mode boots the Pi straight into one full-screen app, usually Chromium started with --kiosk. On current Raspberry Pi OS (called Raspbian until 2020), install the desktop edition, keep auto login on, and start Chromium from the labwc autostart file. Many Raspbian kiosk mode guides were written for the old X11 desktop, and their autostart files and screen commands do not work on today's Wayland desktop.
Key facts
- Raspberry Pi kiosk mode means the Pi boots straight into one full-screen app, usually Chromium with
--kiosk, with no desktop on screen. On the desktop route, labwc keeps shortcuts such as Alt+F4 and Ctrl+Alt+T within reach of anyone with a keyboard. - Raspberry Pi OS, called Raspbian until 2020, runs the labwc desktop on Wayland by default. Kiosk guides written for X11 and LXDE do not work on it as written.
- On the desktop, start the kiosk from
~/.config/labwc/autostart, as Raspberry Pi's own tutorial does. Raspberry Pi OS runs that file in addition to its system autostart. - Current images are based on Debian 13 Trixie, where the browser command is
chromium. The old name,chromium-browser, works only on Bookworm and earlier. --disable-infobars, still in many guides, does nothing in a normal Chromium window. Current Chromium honors it only in headless mode and in Chrome for Testing.- With
--kiosk, current Chromium skips its startup prompts, including the offer to restore pages after a power cut. - Raspberry Pi OS Lite has no desktop, but the Cage kiosk compositor can run Chromium full screen from the console.
- DeviceView lets you see and fix kiosks you cannot walk up to, on Raspberry Pi OS back to Buster, and is free on 5 devices.
What do you need for a Raspberry Pi kiosk?
- A Raspberry Pi 3 or newer with at least 1 GB of RAM, the minimum in Raspberry Pi's kiosk tutorial. The steps are the same on a Pi 3, Pi 4, and Pi 5.
- Raspberry Pi OS with desktop, 64-bit, written with Raspberry Pi Imager. Set the username, Wi-Fi, and SSH in Imager before you write the card, so you can still reach the Pi once the kiosk owns the screen.
- A screen. Any HDMI display works. A Raspberry Pi Touch Display 2 connects to the DSI port: the 5 and 7 inch models work with a Pi 3 or newer, and the 10 inch model needs a Pi 5.
| Raspberry Pi OS with desktop | Raspberry Pi OS Lite | |
|---|---|---|
| Starts the kiosk | The labwc autostart file | Cage, from the console |
| Auto login | On by default | Off by default |
| Rotation and on-screen keyboard | Control Centre | Set by hand |
| Choose it for | Most kiosks, and touchscreens | The smallest system, one screen |
Auto login means anyone with hands on the Pi is signed in as that user, and Raspberry Pi's docs advise against it where others have access. A kiosk needs it, so harden the rest the way Raspberry Pi's tutorial does: SSH keys instead of passwords, and a case that covers the USB ports. Keep the admin (sudo) password on as well. Installs from before Raspberry Pi OS 6.2 (April 2026) have it off, and on current Raspberry Pi OS you turn it on under 1 System Options > S10 Admin Password in sudo raspi-config.
How do you test Chromium kiosk mode on a Raspberry Pi?
- Install Chromium, or confirm it is there. Depending on the image and the choices made at first boot, it may not be installed yet. If it is, apt leaves it in place or updates it.
sudo apt update
sudo apt install chromium
- On the Pi's own desktop, open a terminal with Ctrl+Alt+T and start a test window:
chromium --kiosk --noerrdialogs --no-first-run --password-store=basic https://example.com
- Press Alt+F4 to close it. That is labwc's standard shortcut for closing a window.
| Flag | What it does |
|---|---|
--kiosk | Full screen, with no tabs, address bar, or developer tools. Skips startup prompts |
--noerrdialogs | Suppresses error dialogs |
--no-first-run | Skips the first-run screens |
--password-store=basic | Keeps Chromium away from the system keyring, which can otherwise ask for a password on screen |
--incognito | Optional. Nothing the page stores survives a restart, so skip it if the page needs a saved sign-in |
--app=URL | Opens the page in a window with no tabs or address bar, but not full screen |
--ozone-platform=wayland | Forces Wayland. Use it in a systemd service and under Cage |
On the desktop, Chromium picks Wayland by itself, because the session is marked as Wayland. Raspberry Pi's tutorial also uses --kiosk, --noerrdialogs, and --no-first-run. It adds --disable-infobars and --start-maximized, which add nothing to a --kiosk window, and --enable-features=OverlayScrollbar, a cosmetic scrollbar style. --password-store=basic is this guide's addition, because Raspberry Pi OS ships the GNOME keyring and Chromium turns to it on labwc. Its cost: Chromium then encrypts saved cookies and passwords with a key built into Chromium, not one tied to your login, so treat the SD card as readable by whoever holds it.
Flags do not lock a kiosk down. Chromium's enterprise policies lock the browser, for example by allowing only your site, and on Raspberry Pi OS they go in /etc/chromium/policies/managed/. The desktop's shortcuts stay live too: with a keyboard plugged in, Alt+F4 closes Chromium and Ctrl+Alt+T opens a terminal as the signed-in user, so keep the USB ports covered, or use the Cage route on Lite, which runs one app and nothing else. Chromium kiosk mode lists the policies a kiosk needs and the one to leave alone.
How do you start Raspberry Pi kiosk mode at boot?
- Make sure the Pi signs in by itself. Desktop auto login is on by default. If someone turned it off, run
sudo raspi-config, open 1 System Options > S6 Auto Login, answer the console question first, then answer Yes to the desktop question. - Make sure the desktop is labwc, Raspberry Pi OS's default.
pgrep -a labwcprints a line when it is running. If it prints nothing, open 6 Advanced Options > A7 Wayland insudo raspi-configand choose Labwc. - Create the autostart file:
mkdir -p ~/.config/labwc
nano ~/.config/labwc/autostart
- Add this line, save, and reboot with
sudo reboot:
chromium --kiosk --noerrdialogs --no-first-run --password-store=basic https://example.com &
Raspberry Pi OS starts labwc with its merge option, so this file runs in addition to the system autostart in /etc/xdg/labwc/autostart, and the panel still starts behind the kiosk window. Raspberry Pi's tutorial also cycles between two pages with a small wtype script that presses Ctrl+Tab; add that only if you need more than one page.
If one page on a Pi you can walk up to is the whole job, you can stop here. The rest covers what a kiosk needs after the first day: recovery, blanking, updates, and remote care.
How do you keep a Raspberry Pi kiosk running?
Restart Chromium when it exits
An autostart line starts Chromium once. If it crashes, the desktop shows until someone reboots the Pi. A systemd user service restarts it instead.
- Put the page address in
~/.config/kiosk.env:
KIOSK_URL=https://example.com
- Run
mkdir -p ~/.config/systemd/user, then create~/.config/systemd/user/kiosk.service:
[Unit]
Description=Chromium kiosk
[Service]
EnvironmentFile=%h/.config/kiosk.env
ExecStart=/usr/bin/chromium --kiosk --noerrdialogs --no-first-run --password-store=basic --ozone-platform=wayland ${KIOSK_URL}
Restart=always
RestartSec=5
- In
~/.config/labwc/autostart, replace thechromiumline with these two lines, then reboot:
systemctl --user import-environment WAYLAND_DISPLAY
systemctl --user start kiosk.service
Restart=always brings Chromium back 5 seconds after any exit, whether a crash or Alt+F4. Only a stop through systemd keeps it closed: systemctl --user stop kiosk.service lasts until the next boot. %h is systemd's shorthand for your home directory. To change the page, edit KIOSK_URL and run systemctl --user restart kiosk.service. systemd only sees Chromium itself exit. If the page crashes inside a running Chromium, Chromium shows an error page with a Reload button and waits for someone to press it; the nightly reboot below clears that case.
labwc passes its display name to systemd by itself, but Bookworm's labwc can do that while the autostart file is already running, so the first line removes the doubt. A service may also miss that the session is Wayland, which is why the unit sets --ozone-platform=wayland.
Stop the screen from blanking
Raspberry Pi OS blanks the desktop only if screen blanking was switched on. To be sure, run sudo raspi-config, open 2 Display Options > D2 Screen Blanking, and answer No. On labwc, that setting adds or removes one swayidle line in ~/.config/labwc/autostart and leaves your kiosk lines alone.
Let the page load when the network is late
You do not need a startup delay for Wi-Fi. When a page fails for a network reason, Chromium retries on its own, after 1 second and then at growing intervals up to every 30 minutes, and waits while the Pi has no connection. Certificate errors are not retried.
Reboot every night, if you want a fresh start
Create both files with sudo nano:
# /etc/systemd/system/kiosk-reboot.service
[Unit]
Description=Reboot the kiosk
[Service]
Type=oneshot
ExecStart=systemctl reboot
# /etc/systemd/system/kiosk-reboot.timer
[Unit]
Description=Reboot the kiosk every night
[Timer]
OnCalendar=*-*-* 04:00:00
[Install]
WantedBy=timers.target
Then turn the timer on and check when it fires next:
sudo systemctl enable --now kiosk-reboot.timer
systemctl list-timers kiosk-reboot.timer
Install updates on your schedule
Raspberry Pi recommends sudo apt update, then sudo apt full-upgrade. Reboot afterward so a new kernel or firmware takes effect. Run it when the screen can be down for a few minutes, on one Pi before the rest. A new major release, such as Bookworm to Trixie, means a fresh image, not an in-place upgrade.
Make the SD card read-only, if nothing needs to persist
Raspberry Pi's tutorial also turns on the overlay file system: in sudo raspi-config, 4 Performance Options > P2 Overlay File System. Writes then go to RAM and vanish at the next reboot, updates and your own edits included, so turn it off before you change anything. Skip it if the page must keep a sign-in. If DeviceView is on the Pi, install and enroll it before you turn the overlay on. Its enrollment then lives on the card and survives every reboot, but anything the agent writes later stays in RAM: an agent update started from the console is undone at the next reboot, so turn the overlay off before you update the agent too.
How do you set up a Raspberry Pi touchscreen kiosk?
Rotate the screen. Open the Raspberry Pi menu, then Preferences > Control Centre > Screens. Right-click the display (the official touch display is usually DSI-1), choose Orientation, pick Normal, Left, Inverted, or Right, then select Apply and OK. Touch Display 2 is a portrait panel, 720 by 1280 on the 5 and 7 inch models, so a landscape kiosk needs Left or Right. On the desktop, touch input follows the rotation; Raspberry Pi's touch overlay settings are only for systems without one.
Hide the pointer. Raspberry Pi OS has no system-wide switch for this on Wayland, but an app can hide the pointer in its own window. Raspberry Pi OS turns taps on the official touch displays into mouse events, so the pointer follows each tap. For a page you control, add this CSS:
* { cursor: none !important; }
Plan for typing. Raspberry Pi OS includes the Squeekboard on-screen keyboard and shows it when a text field is selected; set it in Control Centre > Display or under 2 Display Options > D6 Onscreen Keyboard in sudo raspi-config. labwc hides it while a full-screen window such as a --kiosk Chromium is on top. If people need to type, build a keyboard into the page, or run Chromium as a maximized app window, which keeps the taskbar and the keyboard on screen:
chromium --app=https://example.com --start-maximized --noerrdialogs --no-first-run --password-store=basic
Can you run a kiosk on Raspberry Pi OS Lite?
Yes, once something draws the screen. Raspberry Pi documents how to turn Lite into the desktop edition with APT, after which the steps above apply. The lighter route is Cage, a kiosk compositor that runs one app full screen, from Raspberry Pi's own package repository.
- Turn on console auto login: in
sudo raspi-config, open 1 System Options > S6 Auto Login and answer Yes to the console question. - Install Cage and Chromium:
sudo apt update
sudo apt install cage chromium
- Create
~/kiosk.shwith one line:
exec chromium --kiosk --noerrdialogs --no-first-run --password-store=basic --ozone-platform=wayland https://example.com
- Add these lines to the end of
~/.profile(or~/.bash_profile, if you have one), then reboot:
if [ "$(tty)" = "/dev/tty1" ]; then
sleep 3
exec cage -- sh "$HOME/kiosk.sh"
fi
The tty check keeps SSH logins out of the kiosk. Keep --ozone-platform=wayland: a console login is not marked as a Wayland session, and a Chromium that goes by the session type looks for an X server instead. When Chromium exits, Cage exits, and systemd restarts the login on tty1, which starts the kiosk again. The sleep 3 keeps a kiosk that fails at once from restarting the login 5 times in 10 seconds, after which systemd stops restarting it until the next boot. Cage has no screen-blanking setting of its own. Cage's wiki also offers a systemd unit that starts it with no login shell at all; Chromium kiosk mode walks through that route.
To rotate, install wlr-randr and add a line such as wlr-randr --output HDMI-A-1 --transform 90 to kiosk.sh, above the exec line; Cage accepts display changes from it. The rotate= option in cmdline.txt turns only the text console, and touch input may need the overlay options in Raspberry Pi's display docs.
How do you set up kiosk mode on Buster or Bullseye?
On Buster and Bullseye, Raspberry Pi OS ran its LXDE-based desktop on X11, and kiosk steps there differ:
- The command is
chromium-browser, and--ozone-platform=waylanddoes not apply. - The autostart file is
~/.config/lxsession/LXDE-pi/autostart. When it exists, lxsession reads it instead of the system file in/etc/xdg/lxsession/LXDE-pi/, so the panel and desktop no longer start. - A leading
@tells lxsession to restart the program if it crashes, up to 5 times. - Turn blanking off in
sudo raspi-configunder Display Options > Screen Blanking, and hide the pointer withunclutter(sudo apt install unclutter).
@chromium-browser --kiosk --noerrdialogs --no-first-run https://example.com
@unclutter -idle 1
Debian's long-term support ended for Buster in June 2024 and for Bullseye in August 2026, so plan to move these kiosks to a current image. X11 vs Wayland for remote desktop covers what changed underneath.
How do you exit kiosk mode on a Raspberry Pi?
| Setup | How to exit |
|---|---|
| A line in the labwc autostart file | Press Alt+F4 |
| The systemd user service | Run systemctl --user stop kiosk.service over SSH. After Alt+F4 alone, Chromium returns in 5 seconds |
| Cage on Lite | Over SSH only, since Cage has no exit shortcut: remove the Cage lines from ~/.profile, then run pkill -x cage |
| LXDE on Buster or Bullseye | Close Chromium. lxsession restarts it only after a crash |
To keep the kiosk from starting at the next boot, remove its lines from the autostart file or ~/.profile. With no keyboard and no SSH route, you need another way in.
Do you need Raspberry Pi digital signage software instead?
A kiosk is one page in one browser. For playlists and schedules across many screens, look at digital signage software for the Raspberry Pi, such as Anthias, piSignage, or info-beamer. Ready-made kiosk scripts exist too: Jeff Geerling's pi-kiosk runs Chromium as a systemd service, and PiOSK, whose README names it XiOSK, sets up a kiosk that rotates through web pages, managed from a web interface. Read any script before you run it as root. Either way, the Pi underneath still needs updates, and someone who can see its screen when it goes wrong.
How do you manage Raspberry Pi kiosks you cannot walk up to?
Everything above runs on the Pi. None of it tells you a lobby screen froze overnight, and SSH only helps when you can route to the Pi, which a kiosk on guest Wi-Fi or an LTE modem usually does not allow.
DeviceView is remote monitoring and management (RMM) with remote support built in. One agent on each Pi gives you:
- The screen. Live view and remote control of Raspberry Pi OS's labwc desktop, unattended, with no prompt on the Pi. X11 desktops on older releases work too.
- The Pi behind it. A terminal, files, scripts, processes, system services, and health telemetry every 5 minutes, with no live view open.
- No port to open. The agent connects out, so a Pi behind NAT or on LTE stays reachable. Sessions are peer-to-peer by default, with an encrypted TURN relay as the fallback.
- Fixes without a session. systemd already restarts Chromium. Runbooks take the next step: when the agent sees a process exit, a system service stop, or a CPU, memory, or disk threshold crossed, DeviceView runs your fix script on the Pi, and a reboot step or an email alert comes from DeviceView's server. These runbooks need the Pi online. The stopped-service trigger watches system services, so it does not see a user service such as
kiosk.service. - Old releases. Raspberry Pi OS back to Buster, 32-bit or 64-bit, on a Pi 2 or newer. On a Pi 4, 400, CM4, or Pi 5 running 32-bit Raspberry Pi OS, choose armv7 (32-bit) in the console before you copy the install command. The Pi 1, Pi Zero, and Pi Zero W are not supported.
- The price. Free on 5 devices. After that, $20 a month covers the first 20 devices, then $1.00 per device per month. SSO, SCIM, RBAC, and audit log in every tier, including the free Pilot.
Three limits. Access at the login screen is listed for GDM and SDDM, and Raspberry Pi OS uses LightDM, so keep auto login on, which a kiosk needs anyway. The coverage page lists live view for X11 and wlroots desktops such as labwc. Cage is built on wlroots, but DeviceView has not been tested on it, so test live view on a Lite kiosk before a rollout. And DeviceView does not schedule content. For one kiosk on your own network, SSH may be all you need; for a few Pis on Bookworm or later, Raspberry Pi Connect is Raspberry Pi's own option.
Setup and the Pi details are on Raspberry Pi remote access, and every condition is on the coverage page. Running Chromium kiosks on Ubuntu or Debian PCs as well? See Chromium kiosk mode. Start free to try it on your own kiosks.
Frequently asked questions
How do I set up Raspberry Pi 5 kiosk mode?
The same way as on a Pi 4 or Pi 3: Raspberry Pi OS with desktop, auto login, and Chromium started from the labwc autostart file or the systemd service above. A Pi 5 can drive two 4K displays at 60 Hz, and the port marked HDMI0 is the one Raspberry Pi OS calls HDMI-A-1. A 5 or 7 inch Touch Display 2 connects to a Pi 5 with the 22-way to 15-way cable in its box.
How do I start Chromium in kiosk mode on my Raspberry Pi?
Run chromium --kiosk followed by the page address in a terminal on the Pi's desktop. To start it at every boot, put the same command, ending in &, in ~/.config/labwc/autostart. On Buster and Bullseye, the command is chromium-browser.
How do I exit kiosk mode on a Raspberry Pi?
Press Alt+F4 on the labwc desktop. If a systemd service restarts Chromium, stop the service first with systemctl --user stop kiosk.service over SSH. On Lite with Cage, remove the Cage lines from ~/.profile and run pkill -x cage.
Do these steps work on Bookworm as well as Trixie?
Yes, on the labwc desktop. Both releases read ~/.config/labwc/autostart, and chromium works on both, while chromium-browser works only on Bookworm. A Bookworm Pi set up before the switch to labwc may still run Wayfire or X11: if pgrep -a labwc prints nothing, choose Labwc under 6 Advanced Options > A7 Wayland in sudo raspi-config.
How do I rotate a Raspberry Pi touchscreen kiosk?
On the desktop, use Control Centre > Screens > Orientation, and touch input follows. On Lite under Cage, add wlr-randr --output DSI-1 --transform 90 to kiosk.sh above the exec line, and if taps land in the wrong place, set the touch overlay options from Raspberry Pi's display docs. The rotate= option in cmdline.txt only turns the text console.
How do I update the page a kiosk shows remotely?
With the service in this guide, change KIOSK_URL in ~/.config/kiosk.env and run systemctl --user restart kiosk.service over SSH. If you cannot route to the Pi, DeviceView can upload the new file and reboot the Pi from its device page, with no inbound port. With the overlay file system on, the reboot throws the new file away, so turn the overlay off first.
Why does my old Raspbian kiosk mode setup no longer work?
It was most likely written for X11 and LXDE, where it edits an lxsession autostart file and relies on xset or unclutter, or for Wayfire, the other Wayland desktop Bookworm offered, where it edits Wayfire's own config file. Current Raspberry Pi OS runs labwc on Wayland, which reads ~/.config/labwc/autostart instead, and on Trixie the chromium-browser command is gone. Move the Chromium line to the labwc file and change the command to chromium.
Sources
- How to use a Raspberry Pi in kiosk mode, Raspberry Pi tutorial
- Configuration, Raspberry Pi documentation: auto login, screen blanking, display settings, on-screen keyboard, overlay file system, Wayland and X11
- Raspberry Pi OS, Raspberry Pi documentation: Trixie, updates, adding the desktop to Lite
- Touch Display 2, Raspberry Pi documentation
- labwc-config(5), labwc documentation: autostart, merged configuration, default shortcuts
- labwc(1), labwc documentation: the environment labwc passes to systemd
- desktop.c, labwc source: the top layer is hidden under a full-screen window
- panel.c, Squeekboard source in Debian: the layer the keyboard draws on
- chrome_switches.h, Chromium source: kiosk, app, incognito, and first-run switches
- infobar_manager.cc, Chromium source: when
--disable-infobarsapplies - infobar_utils.cc, Chromium source: startup prompts in kiosk mode
- display_server_utils.cc, Chromium source: how Chromium chooses Wayland or X11
- net_error_auto_reloader.cc, Chromium source: retrying pages after network errors
- freedesktop_secret_key_provider.cc, Chromium source: the keyring and
--password-store - systemd.service, systemd documentation
- systemd.timer, systemd documentation
- Configuration, Cage wiki
- cursor, MDN Web Docs
- LTS, Debian wiki: long-term support end dates
- DeviceView platform coverage
Raspberry Pi is a trademark of Raspberry Pi Ltd. Debian is a registered trademark of Software in the Public Interest, Inc. Ubuntu is a registered trademark of Canonical Ltd. GNOME is a trademark of the GNOME Foundation. Chrome is a trademark of Google LLC. Other names are trademarks of their respective owners. DeviceView is not affiliated with any of these companies or projects.