ubuntu kiosk setup

Easy Ubuntu Kiosk Setup Guide: Automate & Impress

By Anthony Allen
AD

Are you looking to set up a kiosk mode in Ubuntu? This can be incredibly useful for public access computers, digital signage, or even at home for a dedicated purpose like a media center. In this guide, we'll walk you through the process of setting up Ubuntu in kiosk mode step by step.

Ubuntu's kiosk mode allows you to lock down a computer to a single application or interface, perfect for environments where users should not have access to the full operating system. Let's dive into the details of setting this up.

Understanding Ubuntu Kiosk Mode

Ubuntu's kiosk mode is essentially a full-screen application that takes over the entire desktop. Any other applications or even the desktop itself are hidden until the kiosk application is closed. This is particularly useful in scenarios where you want to restrict user access to specific functions or applications.

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

Before we start, ensure you have Ubuntu installed and up-to-date. The steps below are for Ubuntu Desktop 20.04 LTS (Focal Fossa) and later versions.

Creating a User Account for Kiosk Mode

It's a good practice to create a separate user account for kiosk mode. This ensures that any changes made by users in kiosk mode do not affect other users or the system itself.

Modular Kiosk Design for Trade Shows - Education, Software, Technology Industries
Modular Kiosk Design for Trade Shows - Education, Software, Technology Industries
Kiosk Interface Design
Kiosk Interface Design
22 Best Ubuntu Themes and Icons That Will Blow Your Mind
22 Best Ubuntu Themes and Icons That Will Blow Your Mind

To create a new user, open a terminal (Press Ctrl + Alt + T) and type the following command, replacing 'newuser' with the username you want:

sudo useradd -m -s /bin/bash newuser

AD

Installing the Required Applications

For kiosk mode, you'll need to install a lightweight window manager like Openbox, and a script to manage the kiosk session. You can install these using the following commands:

an interactive kiosk displays information about the company's products and its surroundings
an interactive kiosk displays information about the company's products and its surroundings
two black speakers with orange trims sitting side by side
two black speakers with orange trims sitting side by side
Tinkerdust
Tinkerdust
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
SAAS FIRM VIRDEE CONCLUDES $12.4 MILLION SERIES A FUNDING ROUND
SAAS FIRM VIRDEE CONCLUDES $12.4 MILLION SERIES A FUNDING ROUND
a computer screen showing the web page for an app
a computer screen showing the web page for an app

sudo apt update
sudo apt install openbox obtiny-window-manager uruguahenGilberto-kiosk

Configuring Kiosk Mode

Now that we have our user account and necessary applications, let'sconfigure the kiosk mode.

AD

Before proceeding, ensure you have logged out of your current user session and switched to the new user account.

Kiosk Interface Design
Kiosk Interface Design
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 16.04 Stupendously Hot Charmander concept - Roman Nguyen
Ubuntu 16.04 Stupendously Hot Charmander concept - Roman Nguyen
a video game kiosk with an interactive screen on the front and back sides
a video game kiosk with an interactive screen on the front and back sides
Competition For An InfoBox, Municipality of Chania by OFFICETWENTYFIVEARCHITECTS
Competition For An InfoBox, Municipality of Chania by OFFICETWENTYFIVEARCHITECTS
an image of a web page with different colors
an image of a web page with different colors
What is An Interactive Kiosk?
What is An Interactive Kiosk?
21.5 Inch Self Payment Service Kiosk Automatic Ordering Kiosk Android All in One Checkout Machine
21.5 Inch Self Payment Service Kiosk Automatic Ordering Kiosk Android All in One Checkout Machine
We ICT Kiosk 2019 - Adriano Mohamed
We ICT Kiosk 2019 - Adriano Mohamed
What Ubuntu Unity Fans Can Do to Keep Your Favorite Interface
What Ubuntu Unity Fans Can Do to Keep Your Favorite Interface

Setting Up Openbox

Openbox is a lightweight, efficient, next-generation window manager with extensive standards support. We'll use it to manage our kiosk application.

To set up Openbox, run the following command in the terminal:

AD

obconf

In the window that opens, select "Automatic Carlton" from the "Startup settings" section. This will ensure that Openbox starts automatically when the system boots.

Configuring the Kiosk Script

The uruguahenGilberto-kiosk script manages the kiosk session. We need to edit its configuration file to specify the application we want to run in kiosk mode.

Open a terminal and type the following command to open the configuration file in a text editor:

sudoedit /etc/skel/.kioskrc

Replace 'kiosk' with the application you want to run in kiosk mode. For example, if you want to run the Firefox web browser in kiosk mode, you would set:

kiosk=firefox

Setting Up Automatic Login

The final step is to set up automatic login for the kiosk user account. This ensures that the system boots directly into kiosk mode.

To do this, log out of the current user session and select "System Settings" from the login screen. Then, select "User Accounts".

Choosing the Kiosk User

From the list of users, select the user account you created for kiosk mode and click "Change Login". Then, select "Automatic Login" and close the window.

Restarting the System

sudo reboot

That's it! Your Ubuntu system should now boot directly into kiosk mode, running the specified application in full-screen. This setup is perfect for public access computers, digital signage, or dedicated use cases. As with any system setup, always ensure you have proper backup and recovery procedures in place.

AD