setup ubuntu kiosk mode

Setup Ubuntu Kiosk Mode: Complete Guide

By Rachel Clark
AD

Setting up a computer in kiosk mode, where a single application or webpage runs full-screen, can be incredibly useful for public spaces, information desks, or digital signage. Ubuntu, a popular Linux distribution, offers a straightforward way to achieve this. In this guide, we'll walk you through the process of setting up Ubuntu in kiosk mode, ensuring a seamless user experience for your specific use case.

Before we dive into the setup process, let's briefly understand what you'll need. You'll require an Ubuntu system (we'll use Ubuntu 20.04 LTS for this guide), a user account for the kiosk mode, and the specific application or webpage you want to run in full-screen.

Preparing Your Ubuntu System for Kiosk Mode

First, ensure your Ubuntu system is up-to-date by running the following commands in the terminal:

AD
Setting Up Ubuntu As a Kiosk Web Appliance
Setting Up Ubuntu As a Kiosk Web Appliance
5 Ubuntu Themes That Will Steal Your Breath Away
5 Ubuntu Themes That Will Steal Your Breath Away
Ubuntu / Linux Setup / Robotics
Ubuntu / Linux Setup / Robotics

sudo apt update
sudo apt upgrade

Creating a Kiosk User Account

Next, create a new user account that will be used in kiosk mode. This user should not have sudo (administrative) privileges to prevent unauthorized access. Use the following command to create a new user:

Deepin: el escritorio más bonito de Linux que puedes usar en Ubuntu gracias a UbuntuDDE
Deepin: el escritorio más bonito de Linux que puedes usar en Ubuntu gracias a UbuntuDDE
Ubuntu desktop setup ✨️
Ubuntu desktop setup ✨️
22 Best Ubuntu Themes and Icons That Will Blow Your Mind
22 Best Ubuntu Themes and Icons That Will Blow Your Mind

sudo adduser --shell /bin/bash --gecos "Kiosk User" kioskuser

During the process, you'll be prompted to enter and verify a password for the new user. After creating the user, you can switch to the new user account using the command su - kioskuser.

AD

Installing Essential Software

Depending on your use case, you might need to install specific software for the kiosk mode. For instance, if you're running a webpage in full-screen, you'll need a web browser like Firefox. You can install it using the following command:

Cozy Linux Setup
Cozy Linux Setup
Ubuntu 16.04 Stupendously Hot Charmander concept - Roman Nguyen
Ubuntu 16.04 Stupendously Hot Charmander concept - Roman Nguyen
Ubuntu es la distribución Linux más exitosa, pero hasta ellos tuvieron que cancelar estos ocho proyectos
Ubuntu es la distribución Linux más exitosa, pero hasta ellos tuvieron que cancelar estos ocho proyectos
two screens with different colors and designs on them
two screens with different colors and designs on them
a computer screen showing the web page for an app
a computer screen showing the web page for an app
How to Install Apps With Ubuntu Software Center
How to Install Apps With Ubuntu Software Center

sudo apt install firefox

Configuring LightDM for Automatic Login

LightDM is Ubuntu's display manager, responsible for handling user sessions. We'll configure it to automatically log in to the kiosk user account.

AD

Editing LightDM Configuration

Open the LightDM configuration file in a text editor with sudo privileges. For instance, use nano:

Installing Ubuntu with Two Hard Drives
Installing Ubuntu with Two Hard Drives
Is Ubuntu Special? 6 Things That Set Canonical's Linux Distro Apart
Is Ubuntu Special? 6 Things That Set Canonical's Linux Distro Apart
Ubuntu Touch OTA-2 Focal
Ubuntu Touch OTA-2 Focal
an image of a web page with different colors
an image of a web page with different colors
The Ultimate Linux Workflow for Focus & Productivity (Open Source Setup Guide)
The Ultimate Linux Workflow for Focus & Productivity (Open Source Setup Guide)
ubuntu linux
ubuntu linux
贼漂亮的 Ubuntu 主题 - V2EX
贼漂亮的 Ubuntu 主题 - V2EX
linux lubuntu rice — linux os desktop aesthetic ricing (evangelion)
linux lubuntu rice — linux os desktop aesthetic ricing (evangelion)
Ubuntu Rolling Out Rust-Based Memory-Safe Sudo
Ubuntu Rolling Out Rust-Based Memory-Safe Sudo
What Ubuntu Unity Fans Can Do to Keep Your Favorite Interface
What Ubuntu Unity Fans Can Do to Keep Your Favorite Interface

sudo nano /etc/lightdm/lightdm.conf

Adding Automatic Login Settings

Add the following lines at the end of the file, replacing 'kioskuser' with the username you created earlier:

AD

automatic-login-user=kioskuser
automatic-login-enabled=true

These lines will enable automatic login and set the user to your kiosk user account.

Setting Up the Kiosk Session

There are two main ways to set up a kiosk session in Ubuntu: using a custom xorg configuration file or using the Unity Tweak Tool for graphical settings. We'll use the custom xorg configuration method, which provides more control over the kiosk mode.

Creating a Custom Xorg Configuration File

Create a new xorg configuration file for your kiosk user. You can use the following command:

sudo cp /etc/lightdm/lightdm.conf.d/50-ubuntu.conf /etc/lightdm/conf.d/51-kiosk-user.conf

Editing the Xorg Configuration File

Open the newly created xorg configuration file in a text editor with sudo privileges:

sudo nano /etc/lightdm/conf.d/51-kiosk-user.conf

Add the following lines to the file, replacing '' with your kiosk user's username and '/usr/bin/firefox' with the path to the application you want to run in full-screen:

user-session=ubuntu
Greeter-show-switch-user=false
user-workspace=username
metadata·l10n·name=Kiosk
autologin-user=username
autologin-user-timeout=0
server-args=xorgConf=/dev/null -nolisten tcp vt7 -ac -dpi 96 -screen 0 1024x768 -s 0 - Kes -s -nolisten tcp vt7 -ac -dpi 96 -screen 0 1024x768

The last line runs the specified application ('/usr/bin/firefox' in this case) in full-screen using the following arguments:presaopacity)es matquevel

After configuring the xorg file, save and close it. Now, whenever the system boots, it will automatically log in to the kiosk user account and run the specified application in full-screen.

Testing and Refining Your Kiosk Setup

Reboot your system to test your kiosk setup. If everything works as expected, you can fine-tune the setup to optimize it for your specific use case. This might include adjusting display settings, configuring the application's behavior in full-screen, or setting up timers to reset the kiosk mode after a certain period.

That's it! Now your Ubuntu system is set up to run in kiosk mode flawlessly. Whether you're using it for a public display, an information desk, or a digital signage project, Ubuntu's kiosk mode offers a simple and effective way to ensure a seamless user experience.

AD