in ubuntu linux, how can I start an app in Kiosk mode form terminal? (For example Skype)?
- User
in ubuntu linux, how can I start an app in Kiosk mode form terminal? (For example Skype)?
- Assistant
in ubuntu linux, how can I start an app in Kiosk mode form terminal? (For example Skype)?
In Ubuntu Linux, starting an app in Kiosk mode from the terminal isn't directly related to the concept of "Kiosk mode" that's found natively in the software itself; rather, it is about restricting the user environment to only run that application, effectively simulating a kiosk mode. Kiosk mode typically means running an application in a way that restricts the user's access to other parts of the operating system.
While some applications may have their own kiosk mode flags or options, for applications that do not, you will need to create a custom kiosk-like environment. Here’s a general approach to setting up a simple kiosk mode using a dedicated user and a lightweight window manager like matchbox-window-manager or openbox.
Note: Skype does not have a native kiosk mode, so you'll need to be creative to achieve a similar effect.
Here are the steps you would generally follow:
matchbox:sudo apt update
sudo apt install matchbox-window-manager
sudo adduser kioskuser
matchbox-window-manager and that Skype is installed:nano /home/kioskuser/startkiosk.sh
Add the following lines to startkiosk.sh:
#!/bin/bash
matchbox-window-manager -use_titlebar no &
skypeforlinux
Make the script executable:
chmod +x /home/kioskuser/startkiosk.sh
.xinitrc file. Set up the .xinitrc file in the kiosk user's home directory to launch the script when starting X:echo '/home/kioskuser/startkiosk.sh' > /home/kioskuser/.xinitrc
chmod +x /home/kioskuser/.xinitrc
Enable auto-login (Optional). If you want to automatically log in as the kiosk user, you need to configure your display manager accordingly. This is dependent on which display manager you use (GDM, LightDM, etc.). You'll find configuration files in /etc/gdm3/ or /etc/lightdm/, for example.
Starting the kiosk mode. Log in as the kiosk user and start the X session:
sudo su -l kioskuser
startx
The above instructions will start a very minimalistic kiosk environment wherein the user is logged in and immediately presented with Skype running in fullscreen or windowed mode without decorations, depending on the window manager settings.
It’s essential to note that this is not a secure kiosk setup. For security, you would need to consider additional configurations such as:
Security Warning: Setting up a secure kiosk environment should be done with careful consideration of all potential security implications. If the kiosk is intended for public use or any non-trusted user environment, you will need a much more in-depth configuration to prevent misuse or breach.
Not yet included in a published release.