Your AI assistant can now work in DeviceView, inside your role. See how it works

    See how AI access works
    DeviceView by DeviceNexus
    Log inStart free
    DeviceView by DeviceNexus

    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 --kiosk switch: 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.
    • --kiosk does 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-hint is gone from Chromium's source, and --disable-infobars now works only in headless mode and Chrome for Testing.
    • Managed policies go in /etc/chromium-browser/policies/managed for Ubuntu's snap, /etc/chromium/policies/managed for Debian, and /etc/opt/chrome/policies/managed for Google Chrome.
    • GDM automatic login is set in /etc/gdm3/custom.conf on Ubuntu and /etc/gdm3/daemon.conf on 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.

    ApproachWhat runsFitsTradeoff
    Desktop session plus --kioskGNOME signs in a kiosk user and starts ChromiumMost PCs and mini PCsThe desktop and its shortcuts still run underneath
    Single-app sessionGNOME Kiosk or Cage, showing only your appPublic screens and minimal installsMore scripting, fewer tools
    Ubuntu FrameCanonical's one-app display server, as snapsUbuntu Core and snap-based imagesSnaps. 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.

    FlagWhat it doesUse it?
    --kioskFull screen, no browser UI, F11 disabled, no startup info barsYes
    --no-first-runSkips first-run and What's New pagesYes
    --noerrdialogsTurns off error dialogsYes
    --start-fullscreenSame as pressing F11 at launch, so F11 exitsFor screens staff must leave
    --app=URLAn app window with no tabs or address barSignage in a window
    --incognitoKeeps nothing between restartsOnly if the page needs no saved sign-in
    --kiosk-printingConfirms the print preview automaticallyReceipt and ticket kiosks
    --password-store=basicSkips the keyring. Saved data is encrypted with a key built into Chromium, so anyone who can read the profile can read itIf a keyring password prompt appears
    --ozone-platform=wayland or x11Forces the display backendOnly to override auto-detection
    --check-for-update-intervalA testing switchNo
    --disable-infobarsWorks only in headless mode and Chrome for TestingNo
    --disable-session-crashed-bubble, --ozone-platform-hintNot in current ChromiumNo

    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.

    1. Install Chromium. On Ubuntu it is a snap. The chromium-browser apt package only installs that snap.

      sudo snap install chromium
      
    2. Create the kiosk user.

      sudo adduser kiosk
      
    3. Add enterprise policies. As root, create the folder with sudo mkdir -p /etc/chromium-browser/policies/managed, then create kiosk.json in 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 URLAllowlist too, or the kiosk shows a blocked page. Drop PrintingEnabled if the kiosk prints, and IncognitoModeAvailability if you use --incognito. Leave FullscreenAllowed unset, because false also turns off --kiosk. Since Chrome 147, * no longer covers chrome:// pages, so rely on the policies above rather than blocking internal pages.

    4. 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-delay of 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 to chrome://policy, and check that each policy shows OK.

    5. Create the URL file and a user service. Put the URL in ~/.config/kiosk.env:

      KIOSK_URL=https://example.com
      

      Then create ~/.config/systemd/user/kiosk.service (run mkdir -p ~/.config/systemd/user first):

      [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.target
      

      Enable it, but do not start it yet, or this session becomes the kiosk:

      systemctl --user daemon-reload
      systemctl --user enable kiosk.service
      

      Restart=always brings Chromium back 3 seconds after a crash or a close, StartLimitIntervalSec=0 stops systemd from giving up after repeated restarts, and PartOf stops the browser when the session ends. A file in ~/.config/autostart/ would also start Chromium, but nothing would restart it.

    6. Turn on automatic login. As root, edit /etc/gdm3/custom.conf:

      [daemon]
      AutomaticLoginEnable=true
      AutomaticLogin=kiosk
      
    7. 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 in ExecStart.
    • Put policies in /etc/chromium/policies/managed/.
    • Debian builds GDM to read /etc/gdm3/daemon.conf, not custom.conf. The [daemon] lines are the same.
    • Debian's chromium launcher 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=basic to ExecStart. 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 set DISPLAY, 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 UbuntuChromium on DebianGoogle Chrome
    Installsnap install chromiumapt 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
    CPUsx86_64, arm64, armhfx86_64, arm64, armhf, and morex86_64, arm64
    UpdatessnapdaptGoogle'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:

    SetupStop it with
    User service from this guidesystemctl --user stop kiosk.service
    GNOME Kiosksystemctl --user stop org.gnome.Kiosk.Script.service
    Cagesudo systemctl stop cage@tty1.service
    Ubuntu Framesudo 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.env and run systemctl --user restart kiosk.service. If the terminal opens as root or another account instead, as it does when DeviceView finds no desktop session, run systemctl --user --machine=kiosk@.host restart kiosk.service, with sudo if 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.service stopping, and run your fix script on the kiosk. The service trigger watches system services, not user services such as this guide's kiosk.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

    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.