Chromium kiosk mode on Ubuntu and Debian: how to set it up
Chromium kiosk mode is one switch: chromium --kiosk https://example.com opens a page full screen with no tabs, no address bar, and no way out of full screen. On its own that is a full-screen browser, not a locked kiosk. A Linux kiosk on Ubuntu or Debian also needs a user that signs in automatically, a service that restarts the browser, enterprise policies, and no screen blanking. This guide covers each step on X11 and Wayland, plus Chrome and Firefox kiosk mode.
Key facts
- Chromium kiosk mode is the
--kioskswitch: one page, full screen, no browser controls. F11 cannot leave full screen, and Chromium skips its startup info bars and crash-restore prompt. Google Chrome behaves the same. --kioskdoes not lock down the PC. Ctrl+W still closes the browser, and the desktop keeps its shortcuts. Policies, a dedicated user, and the right session do the locking down.- Chromium 140 and later pick Wayland or X11 on their own.
--ozone-platform-hintis gone from Chromium's source, and--disable-infobarsnow works only in headless mode and Chrome for Testing. - Managed policies go in
/etc/chromium-browser/policies/managedfor Ubuntu's snap,/etc/chromium/policies/managedfor Debian, and/etc/opt/chrome/policies/managedfor Google Chrome. - GDM automatic login is set in
/etc/gdm3/custom.confon Ubuntu and/etc/gdm3/daemon.confon Debian. - GNOME Kiosk, Cage, and Canonical's Ubuntu Frame run the browser with no desktop around it.
- Firefox kiosk mode is
firefox --kiosk, locked down with/etc/firefox/policies/policies.json.
What is Linux kiosk mode, and which way should you build it?
A Linux kiosk is a PC or mini PC that starts straight into one app, usually a browser on one page, and recovers by itself after a crash or a power cut. There are three common ways to build one.
| Approach | What runs | Fits | Tradeoff |
|---|---|---|---|
Desktop session plus --kiosk | GNOME signs in a kiosk user and starts Chromium | Most PCs and mini PCs | The desktop and its shortcuts still run underneath |
| Single-app session | GNOME Kiosk or Cage, showing only your app | Public screens and minimal installs | More scripting, fewer tools |
| Ubuntu Frame | Canonical's one-app display server, as snaps | Ubuntu Core and snap-based images | Snaps. The Chromium snap's kiosk service runs Chromium as root with its sandbox off |
Use a desktop session unless the public can reach a keyboard. If they can, use a single-app session. To start Chromium in kiosk mode on a Raspberry Pi, use the same --kiosk flag, but follow the Raspberry Pi kiosk mode guide: Raspberry Pi OS runs its own labwc desktop rather than GNOME, so the sign-in and autostart steps differ.
Which Chromium kiosk mode flags do you need?
Current Chromium needs few flags. This table was checked against Chromium's own switch definitions.
| Flag | What it does | Use it? |
|---|---|---|
--kiosk | Full screen, no browser UI, F11 disabled, no startup info bars | Yes |
--no-first-run | Skips first-run and What's New pages | Yes |
--noerrdialogs | Turns off error dialogs | Yes |
--start-fullscreen | Same as pressing F11 at launch, so F11 exits | For screens staff must leave |
--app=URL | An app window with no tabs or address bar | Signage in a window |
--incognito | Keeps nothing between restarts | Only if the page needs no saved sign-in |
--kiosk-printing | Confirms the print preview automatically | Receipt and ticket kiosks |
--password-store=basic | Skips the keyring. Saved data is encrypted with a key built into Chromium, so anyone who can read the profile can read it | If a keyring password prompt appears |
--ozone-platform=wayland or x11 | Forces the display backend | Only to override auto-detection |
--check-for-update-interval | A testing switch | No |
--disable-infobars | Works only in headless mode and Chrome for Testing | No |
--disable-session-crashed-bubble, --ozone-platform-hint | Not in current Chromium | No |
Chromium builds have no update notifications, and Google Chrome hides its out-of-date warning once policies manage it, so --check-for-update-interval buys nothing. Ubuntu's Chromium snap already passes --password-store=basic unless its password-manager-service interface is connected. A good starting command:
chromium --kiosk --no-first-run --noerrdialogs https://example.com
How do you set up Ubuntu kiosk mode step by step?
These steps build the desktop-session kiosk on Ubuntu 24.04 with GNOME, and they work the same on Ubuntu 22.04 and 26.04. Replace https://example.com with your page.
-
Install Chromium. On Ubuntu it is a snap. The
chromium-browserapt package only installs that snap.sudo snap install chromium -
Create the kiosk user.
sudo adduser kiosk -
Add enterprise policies. As root, create the folder with
sudo mkdir -p /etc/chromium-browser/policies/managed, then createkiosk.jsonin it, and keep that folder writable only by root:{ "DeveloperToolsAvailability": 2, "IncognitoModeAvailability": 1, "BrowserSignin": 0, "PasswordManagerEnabled": false, "TranslateEnabled": false, "AllowFileSelectionDialogs": false, "DownloadRestrictions": 3, "PrintingEnabled": false, "TaskManagerEndProcessEnabled": false, "URLBlocklist": ["*"], "URLAllowlist": ["https://example.com"] }That turns off developer tools, Incognito, browser sign-in, saved passwords, translation, file pickers, downloads, printing, and ending processes in the task manager, and it opens only pages on your site. If your page sends visitors to another site, such as a sign-in provider, add that address to
URLAllowlisttoo, or the kiosk shows a blocked page. DropPrintingEnabledif the kiosk prints, andIncognitoModeAvailabilityif you use--incognito. LeaveFullscreenAllowedunset, because false also turns off--kiosk. Since Chrome 147,*no longer coverschrome://pages, so rely on the policies above rather than blocking internal pages. -
Sign in as kiosk once. Finish any first-login screens. To run the kiosk on X11 on Ubuntu 24.04 or earlier, choose the Xorg session on the login screen first, and GDM remembers it. Then open a terminal and turn off blanking, the lock screen, and automatic suspend:
gsettings set org.gnome.desktop.session idle-delay 0 gsettings set org.gnome.desktop.screensaver lock-enabled false gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'An
idle-delayof 0 keeps the session from going idle, so the screen never blanks. The third line stops GNOME's upstream default of suspending an idle PC on AC power after 15 minutes. While signed in, open Chromium, go tochrome://policy, and check that each policy shows OK. -
Create the URL file and a user service. Put the URL in
~/.config/kiosk.env:KIOSK_URL=https://example.comThen create
~/.config/systemd/user/kiosk.service(runmkdir -p ~/.config/systemd/userfirst):[Unit] Description=Chromium kiosk PartOf=graphical-session.target After=graphical-session.target StartLimitIntervalSec=0 [Service] EnvironmentFile=%h/.config/kiosk.env ExecStart=/snap/bin/chromium --kiosk --no-first-run --noerrdialogs ${KIOSK_URL} Restart=always RestartSec=3 [Install] WantedBy=graphical-session.targetEnable it, but do not start it yet, or this session becomes the kiosk:
systemctl --user daemon-reload systemctl --user enable kiosk.serviceRestart=alwaysbrings Chromium back 3 seconds after a crash or a close,StartLimitIntervalSec=0stops systemd from giving up after repeated restarts, andPartOfstops the browser when the session ends. A file in~/.config/autostart/would also start Chromium, but nothing would restart it. -
Turn on automatic login. As root, edit
/etc/gdm3/custom.conf:[daemon] AutomaticLoginEnable=true AutomaticLogin=kiosk -
Reboot. Run
sudo reboot. The PC should sign in as kiosk and open your page full screen.
What is different on Debian and Linux Mint?
Debian uses the same steps with five changes:
- Install with
sudo apt install chromium. The command is/usr/bin/chromium, so use that path inExecStart. - Put policies in
/etc/chromium/policies/managed/. - Debian builds GDM to read
/etc/gdm3/daemon.conf, notcustom.conf. The[daemon]lines are the same. - Debian's
chromiumlauncher also reads flag files from/etc/chromium.d/, which apply to every launch for every user. - If a login keyring password prompt appears after automatic login, add
--password-store=basictoExecStart. Ubuntu's snap already does this.
Linux Mint's Cinnamon edition uses LightDM and Cinnamon instead of GDM and GNOME. Turn on automatic login in Mint's Login Window tool. The screensaver delay and lock live under org.cinnamon.desktop.session and org.cinnamon.desktop.screensaver, and screen-off and suspend under org.cinnamon.settings-daemon.plugins.power (sleep-display-ac and sleep-inactive-ac-timeout). You can also set them in System Settings, under Screensaver and Power Management. Mint 22's Cinnamon does not start systemd's graphical-session.target, so the user service from step 5 never starts there. Start the browser from an autostart entry instead. Save this as ~/.local/bin/kiosk-loop (run mkdir -p ~/.local/bin ~/.config/autostart first) and make it executable:
#!/bin/sh
while true; do
chromium --kiosk --no-first-run --noerrdialogs https://example.com
sleep 3
done
Then create ~/.config/autostart/kiosk.desktop:
[Desktop Entry]
Type=Application
Name=Kiosk
Exec=/home/kiosk/.local/bin/kiosk-loop
The Chromium flags and Chrome's policy folder carry over.
How do you run Chromium in GNOME Kiosk, Cage, or Ubuntu Frame?
GNOME Kiosk is a Mutter-based compositor that opens apps full screen with no panels or docks. Install gnome-kiosk-script-session (in the universe repository on Ubuntu 24.04 and 26.04, and in Debian 13), then create ~/.local/bin/gnome-kiosk-script for the kiosk user (run mkdir -p ~/.local/bin first) and make it executable:
#!/bin/sh
/snap/bin/chromium --kiosk --no-first-run https://example.com
sleep 1.0
exec "$0" "$@"
The last two lines follow GNOME Kiosk's own template, so the script runs again when the browser exits. On Debian 13, use /usr/bin/chromium in the script. Sign in once with Kiosk Script Session chosen on the login screen, and GDM keeps it for automatic login.
Cage is a wlroots compositor that shows one maximized app, packaged in Debian 12 and later and in Ubuntu 22.04 and later. Take the cage@.service unit and PAM file from Cage's wiki, set User=kiosk, keep Restart=always, and use this line:
ExecStart=/usr/bin/cage -- /usr/bin/chromium --kiosk --no-first-run --ozone-platform=wayland https://example.com
For other browsers, use the command from the Chrome and Chromium table below. Then run sudo systemctl enable cage@tty1.service and sudo systemctl set-default graphical.target. The unit takes the display manager's place, so use it on a system without one.
Ubuntu Frame is Canonical's display server for one full-screen app, and the Chromium snap has a kiosk service for it:
sudo snap install ubuntu-frame chromium
sudo snap set ubuntu-frame daemon=true
sudo snap connect chromium:wayland
sudo snap set chromium url=https://example.com
sudo snap set chromium daemon=true
Frame's daemon=true line is needed everywhere except Ubuntu Core, where Frame starts by itself. Canonical's own tutorial pairs Frame with the community wpe-webkit-mir-kiosk browser instead.
Does Chromium kiosk mode work on X11 and Wayland?
Yes. --kiosk behaves the same on both. Since Chromium 140 the browser picks the backend itself. Current builds use whichever display they can reach, and when they can reach both, they follow the session type. --ozone-platform-hint=auto is no longer needed. To force a backend, add --ozone-platform=wayland or --ozone-platform=x11.
- Ubuntu 24.04 (GNOME 46) and Debian 12 and 13 offer GNOME on Wayland and on Xorg.
- Ubuntu 26.04 ships GNOME 50, which dropped X11 sessions, so the desktop route there is Wayland only.
- Under Cage, keep
--ozone-platform=wayland. Cage can start Xwayland and setDISPLAY, and Chromium then picks X11 unless the session type is Wayland.
For remote support the backend matters. On X11 any program connected to the display can read the screen. On Wayland the compositor decides who may capture it, so remote desktop tools often need a prompt or extra setup. X11 vs Wayland for remote desktop has the details.
Should a kiosk run Google Chrome or Chromium?
| Chromium on Ubuntu | Chromium on Debian | Google Chrome | |
|---|---|---|---|
| Install | snap install chromium | apt install chromium | .deb from google.com/chrome |
| Command | /snap/bin/chromium | /usr/bin/chromium | /usr/bin/google-chrome-stable |
| Managed policies | /etc/chromium-browser/policies/managed | /etc/chromium/policies/managed | /etc/opt/chrome/policies/managed |
| CPUs | x86_64, arm64, armhf | x86_64, arm64, armhf, and more | x86_64, arm64 |
| Updates | snapd | apt | Google's apt repository, added at install |
Chrome kiosk mode uses the same --kiosk flag. Pick Chrome for DRM-protected video: it bundles the Widevine module, which Debian does not distribute. Pick Chromium for updates from your distribution and no Google terms to accept. The snap reads /var/snap/chromium/current/policies instead if that folder exists, and in any build, chrome://policy shows whether your file was read.
How do you use Firefox kiosk mode?
Firefox kiosk mode is the same idea: firefox --kiosk https://example.com opens one full-screen window, and --kiosk-monitor picks the monitor. Lock it down with /etc/firefox/policies/policies.json, a path Ubuntu's Firefox snap also reads. The Flatpak build uses a different one.
{
"policies": {
"DisableDeveloperTools": true,
"PrivateBrowsingModeAvailability": 1,
"PrintingEnabled": false,
"WebsiteFilter": {
"Block": ["<all_urls>"],
"Exceptions": ["https://example.com/*"]
},
"Preferences": {
"browser.sessionstore.resume_from_crash": {"Value": false, "Status": "locked"}
}
}
}
Restart Firefox and check about:policies. The Preferences entry stops Firefox from opening its Restore Session page after a crash or a power cut, which kiosk mode does not do for you. The user service from step 5 works with Firefox in ExecStart.
How do you exit kiosk mode or stop the kiosk?
- Ctrl+W closes the tab, and closing the last tab closes Chromium. Ctrl+Shift+W closes the window. In full screen the page sees these keys first, so a page can block them.
- Alt+F4 is left to the window manager on Linux. GNOME binds it to close the window. Cage has no such shortcut.
- F11 does nothing in
--kiosk. It does exit--start-fullscreen.
If a service restarts the browser, closing it only brings it back. Stop the service instead:
| Setup | Stop it with |
|---|---|
| User service from this guide | systemctl --user stop kiosk.service |
| GNOME Kiosk | systemctl --user stop org.gnome.Kiosk.Script.service |
| Cage | sudo systemctl stop cage@tty1.service |
| Ubuntu Frame | sudo snap set chromium daemon=false |
Run the systemctl --user lines as the kiosk user. From an admin account, add sudo and --machine=kiosk@.host, as in sudo systemctl --user --machine=kiosk@.host stop kiosk.service.
On the device, Ctrl+Alt+F3 switches GNOME to a text console where an admin can sign in. GNOME Kiosk 50 and later, as on Ubuntu 26.04, turn that shortcut off by default, and stopping its script service there ends the session. Cage blocks console switching unless it was started with -s. To retire the kiosk, set AutomaticLoginEnable=false and disable the service.
How do you keep a kiosk running and change its URL remotely?
Something should always restart the browser. Here that is Restart=always in the user service. Cage's unit uses the same setting, and Cage exits when its app does, so the unit restarts both. The GNOME Kiosk script reruns itself.
To change the URL, edit one file and restart one service. systemd rereads kiosk.env on every start.
# as the kiosk user
nano ~/.config/kiosk.env
systemctl --user restart kiosk.service
# from an admin account
sudo -u kiosk nano /home/kiosk/.config/kiosk.env
sudo systemctl --user --machine=kiosk@.host restart kiosk.service
On Ubuntu Frame, run sudo snap set chromium url=https://example.com/new, then sudo snap restart chromium. For one kiosk, SSH is enough. For a fleet on other people's networks, you need a tool that reaches each device without opening ports.
How do you manage Linux kiosks remotely?
Kiosks sit behind other people's routers and fail with nobody watching. DeviceView is remote monitoring and management (RMM) with remote support built in, and its Linux agent fits this setup:
- Unattended live view and remote control on X11 and Wayland. There is no prompt on X11, GNOME, KDE, or wlroots desktops; other Wayland desktops may ask once. A kiosk stuck at the GDM or SDDM login screen is still reachable.
- Virtual displays. On X11 and GNOME you can add a virtual display, or start the session on one so the physical screen is never captured.
- No inbound ports. The agent connects out, so a kiosk behind NAT or on LTE needs no open port.
- A terminal and scripts. On a desktop session the terminal opens as the signed-in user, here the kiosk account, so you can edit
kiosk.envand runsystemctl --user restart kiosk.service. If the terminal opens as root or another account instead, as it does when DeviceView finds no desktop session, runsystemctl --user --machine=kiosk@.host restart kiosk.service, withsudoif you are not root. Scripts for an offline kiosk wait, an hour by default, and run when it reconnects. - Fixes on the device. A runbook can watch for the browser process exiting, or for a system service such as
cage@tty1.servicestopping, and run your fix script on the kiosk. The service trigger watches system services, not user services such as this guide'skiosk.service, so for that setup watch the browser process instead. On a desktop session the runbook sees that the process exited, not why. - Ubuntu 18.04 and later and Debian 10 and later, on x86_64 and arm64. GNOME on Wayland needs GNOME 40 or later (Ubuntu 22.04 and later); with an older GNOME, use an Xorg session. See Linux remote desktop and Ubuntu remote desktop.
Two limits. DeviceView does not build Linux kiosks: you set them up as above, and DeviceView is how you reach and fix them. And the coverage page names X11, GNOME, KDE, and wlroots desktops. Cage is built on wlroots and GNOME Kiosk on Mutter, but DeviceView has not been tested on either, or on Ubuntu Frame, so test live view on your image before a rollout.
DeviceView is free on 5 devices, with no card. After that, $20 a month covers the first 20 devices, then $1.00 per device per month. Start free.
Frequently asked questions
Is there a kiosk mode for Linux?
Yes, though not as one setting. Browsers have their own kiosk modes, such as chromium --kiosk and firefox --kiosk, and GNOME Kiosk, Cage, and Ubuntu Frame run one app full screen. Add automatic login and a service that restarts the app, as in the steps above.
What is a kiosk app?
A kiosk app runs alone and full screen on a device dedicated to one job, such as a check-in screen or a menu board, with the rest of the system out of reach. On Linux it is usually a browser in kiosk mode showing one web page.
How do I exit kiosk mode in Chrome or Chromium?
Press Ctrl+W or Ctrl+Shift+W, or Alt+F4 on GNOME or Windows. F11 does not work in --kiosk. If the browser comes straight back, a service is restarting it, so stop that service, for example with systemctl --user stop kiosk.service.
How do I use Chrome kiosk mode on Linux?
Install Google Chrome's .deb for x86_64 or arm64 and run google-chrome-stable --kiosk https://example.com. Managed policies go in /etc/opt/chrome/policies/managed. Chrome asks you to accept Google's terms at first launch, so open it once as the kiosk user before enabling the service.
How do I set up Ubuntu 24.04 kiosk mode?
Follow the steps above. Chromium is a snap that reads /etc/chromium-browser/policies/managed, and automatic login goes in /etc/gdm3/custom.conf. GNOME 46 offers Wayland and Xorg sessions, and gnome-kiosk-script-session and cage are in the universe repository.
Does Firefox have a kiosk mode?
Yes. firefox --kiosk https://example.com opens one full-screen window with no browser controls. Lock it down with /etc/firefox/policies/policies.json and confirm the policies in about:policies.
Can I set up Linux Mint kiosk mode?
Yes, with the same Chromium flags. Turn on automatic login in Mint's Login Window tool, which configures LightDM, and find the lock, idle, and power settings under org.cinnamon instead of org.gnome. Mint 22's Cinnamon does not start graphical-session.target, so start the browser from an autostart entry that reruns it, as shown above, rather than the user service.
Can Chromium kiosk mode show several tabs or URLs?
Pass several URLs and Chromium opens each in its own tab, but kiosk mode shows no tab bar, so switching takes Ctrl+Tab on a keyboard. For a rotating display, point the kiosk at one page that cycles through the others.
Does kiosk mode lock down the PC on its own?
No. --kiosk changes how the browser window behaves. The desktop, its shortcuts, and Chromium's keyboard commands still work. Add a dedicated user, the policies above, and a single-app session if the public can reach a keyboard.
Sources
- chrome_switches.h, Chromium source, switch definitions
- display_server_utils.cc, Chromium source, Wayland and X11 selection
- Enable OverrideDefaultOzonePlatformHintToAuto, Chromium code review, the Chromium 140 change
- fullscreen_controller.cc, Chromium source, FullscreenAllowed and kiosk mode
- infobar_manager.cc, Chromium source, when
--disable-infobarsapplies - Policy definitions, Chromium source
- Linux Quick Start, Chromium documentation for administrators
- Chrome Browser quick start (Linux), Google Chrome Enterprise Help
- Download and install Google Chrome, Google Chrome Help
- Chromium snap source, Launchpad, policy path and kiosk service
- Configure automatic login, GNOME System Administration Guide
- gdm3 README.Debian, Debian
- systemd.service, systemd manual
- GNOME Kiosk, GNOME GitLab
- Starting Cage on boot with systemd, Cage wiki
- Run Ubuntu Frame on your device, Ubuntu Frame documentation
- Configuring policies, Firefox Admin Docs
- gnome-session NEWS, GNOME, X11 sessions dropped in GNOME 50
- DeviceView platform coverage
Google Chrome is a trademark of Google LLC. Ubuntu is a registered trademark of Canonical Ltd. Debian is a registered trademark of Software in the Public Interest, Inc. Firefox is a trademark of the Mozilla Foundation. GNOME is a trademark of the GNOME Foundation. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries. Raspberry Pi is a trademark of Raspberry Pi Ltd. Other names are trademarks of their respective owners. DeviceView is not affiliated with any of these companies or projects.