Score:0

Ubuntu 20.04.5 - Booting up system on Firefox in Kiosk mode

vn flag

What:

Hello everyone, I'm trying to start up my Ubuntu 20.04.5 machine in kiosk mode. I want my system to start up Firefox in kiosk mode right after it boots up. I'm almost done but I have trouble with one thing and that's whenever my system boots up, I can see desktop for a few seconds and then my Firefox starts which is for me unacceptable, because I don't want anyone to access desktop even for 1 second. I've tried to find solution on the internet, but all those tutorials either don't work at all or they just help me half way. I'm also pretty new to Ubuntu and sometimes I get lost pretty easy so please if you will answer, try to type it for someone who has little to none experience.

What I've got:

  • I have computer with Ubuntu 20.04.5 with small touchscreen.
  • Currently I have keyboard connected to this PC, but this is just for debugging and later when machine will be used by customer, there will be touch screen only.
  • Whenever I boot up my computer, it starts Firefox in few seconds in Kiosk mode.
  • I've removed all gestures so customer can't leave kiosk mode and can't turn on on-screen keyboard

What I need:

  • I need somehow to not show up desktop whenever system boots up. For example something like forbid to start explorer.exe on Windows

What I've tried:

Thanks in advance to anyone who will give me some answers/help

Score:0
vn flag

------UPDATE WITH SMALL WORKAROUND------

While I was waiting for answer, I was still trying to solve my problem and I kinda did but in different way that I originally intended and I want to share this little but easy solution. This solution only works for systems with touch screen and with out usage of any keyboard (Even onscreen keyboard but I haven't tested it so maybe it works too).

I basicly instead of trying to start Firefox/any browser before starting GNOME, I just hid every aspect of GNOME. So let say we are at same point I was in when I wrote this question: Firefox opens up in kiosk mode after boot of system with desired site, onscreen keyboard is disabled, gestures are disabled, you have installed gnome-tweak-tools and chrome-gnome-shell extensions and you also have gnome-shell-integration extension for Firefox. Now you will need to follow these steps:

  1. In Show applications menu open up Extensions application
  2. Turn off Desktop icons and Ubuntu Dock extensions
  3. Install Gnome tweaks extension "Hide Top Bar" https://extensions.gnome.org/extension/545/hide-top-bar/
  4. Reboot system
  5. Open up terminal (ctrl + alt + T) and type: 'sudo apt install gnome-shell-extensions'
  6. Open up Extensions menu again and turn on "Hide Top Bar" extension and then click on configure button (Cog icon next to it)
  7. In first tab "Sensitivity" turn off every option
  8. In "Intellihide" also disable all options

You can enable left sidebar again via terminal with command: Enable: 'gnome-extension enable ubuntu-dock@ubuntu.com' Disable: 'gnome-extension disable ubuntu-dock@ubuntu.com'

Your desktop should be now totally empty

Last thing you should do is to download/create fully black image and use it as background image

Now if you will reboot system, you will just see black screen for a while and then browser with your desire site should open up. You will maybe think, that someone will try to do something when there is that black screen before start up of browser, but it should be safe. User can't click on anything since there is nothing to click on and thanks to touch screen, you can't right click and open any settings menu.

I hope it will help at least someone.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.