# How to set up a Raspberry Pi Kiosk - Launch a Fullscreen Webpage on Boot!

**URL:** <https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578>\
**Category:** Guides\
**Created:** [2 August 2024 06:24 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578 "2024-08-02T06:24:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaryd](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jaryd/32/8778_2.png) [@Jaryd](https://forum.core-electronics.com.au/u/Jaryd)\
**Post date:** [2 August 2024 06:24 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578/1 "2024-08-02T06:24:48Z")

</div>

Hey peeps, we just launched a new guide looking at how to set up the Pi 5 in kiosk mode. A great little tool for accessing things like your Home Assistant or Adafruit IO dashboard, personal calendars, or any cool webpages you might be hosting locally: [**“How to set up a Raspberry Pi Kiosk - Launch a Fullscreen Webpage on Boot!”**](http://core-electronics.com.au/tutorials/raspberry-pi-kiosk-mode-setup.html)  
  
 ![](https://core-electronics.com.au/media/faq/300-preview.jpg)  
  
 In this guide, we will be transforming your Raspberry Pi into a bespoke device to interface humans with the web. This guide will walk you through setting up a Pi as a dedicated kiosk device, meaning it will seamlessly and automatically launch a full…  
  
[**Read more**](http://core-electronics.com.au/tutorials/raspberry-pi-kiosk-mode-setup.html)

---

<div class="post-metadata">

**Author:** ![Tismo279665](https://avatars.discourse-cdn.com/v4/letter/t/bc8723/32.png) [@Tismo279665](https://forum.core-electronics.com.au/u/Tismo279665)\
**Post date:** [14 September 2024 23:16 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578/2 "2024-09-14T23:16:21Z")

</div>

I followed [raspberry-pi-kiosk-mode-setup](http://core-electronics.com.au/tutorials/raspberry-pi-kiosk-mode-setup.html) and I am having an issue with my raspberry pi 4 stopping the kiosk.  
I would leave the kiosk running and after few hours , I would come a find only the desktop showing. How can I troubleshoot this please?

---

<div class="post-metadata">

**Author:** ![Jack](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jack/32/9287_2.png) [@Jack](https://forum.core-electronics.com.au/u/Jack)\
**Post date:** [16 September 2024 05:23 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578/3 "2024-09-16T05:23:46Z")

</div>

Hi Tismso,

Welcome to the forum! My guess is the Pi is the Pi is crashing, or experiencing a power issue. Can you send a picture of your setup so we can see what else you have?

---

<div class="post-metadata">

**Author:** ![Tismo279665](https://avatars.discourse-cdn.com/v4/letter/t/bc8723/32.png) [@Tismo279665](https://forum.core-electronics.com.au/u/Tismo279665)\
**Post date:** [16 September 2024 12:15 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578/4 "2024-09-16T12:15:36Z")

</div>

I just figured out that the auto start script under wayfire.ini is opening new windows instead of tabs. no wonder chromium was crashing. How do I get it to open tabs instead?

---

<div class="post-metadata">

**Author:** ![Blayden](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/blayden/32/7535_2.png) [@Blayden](https://forum.core-electronics.com.au/u/Blayden)\
**Post date:** [17 September 2024 04:54 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578/5 "2024-09-17T04:54:50Z")

</div>

Hey Tismo,

Thats probably what is happening there. Can you share the contents of **run\_kiosk.sh** with us, as that will likely need to be edited to stop the issue you are experiencing?

Cheers,  
Blayden

---

<div class="post-metadata">

**Author:** ![Johan281155](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@Johan281155](https://forum.core-electronics.com.au/u/Johan281155)\
**Post date:** [8 October 2024 12:24 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578/6 "2024-10-08T12:24:33Z")

</div>

Thanks a lot for a great guide! Would it be possible to launch two different sites if there’s two screens connected?

---

<div class="post-metadata">

**Author:** ![Samuel](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/samuel/32/11763_2.png) [@Samuel](https://forum.core-electronics.com.au/u/Samuel)\
**Post date:** [8 October 2024 23:49 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578/7 "2024-10-08T23:49:40Z")

</div>

Hey @Johan281155, welcome to the forums!

This should be possible by specifying a display to setup in kiosk mode inside of the **run\_kiosk.sh** file. You can do this by adding the `DISPLAY=:n` variable to specify a display to output onto.

Modifying the setup instructions in the guide would have **run\_kiosk.sh** looking something like this.

```auto
sleep 4
DISPLAY=:0 /bin/chromium-browser --kiosk --ozone-platform=wayland --start-maximized --noerrdialogs --disable-infobars --enable-features=OverlayScrollbar https://time.is/ &
DISPLAY=:1 /bin/chromium-browser --kiosk --ozone-platform=wayland --start-maximized --noerrdialogs --disable-infobars --enable-features=OverlayScrollbar https://imbenwolf.github.io/sanger.dk/ &

```

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Johan281155](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@Johan281155](https://forum.core-electronics.com.au/u/Johan281155)\
**Post date:** [10 October 2024 09:01 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578/8 "2024-10-10T09:01:05Z")

</div>

Thank you kindly for the reply!  
Sadly I couldn’t get it to work, they both start on the first display.  
Though also having the error that both don’t always start, sometimes only one of them will. If I then close that with ALT+F4 then the second one would start. Seems random if it’ll start both or just one.

---

<div class="post-metadata">

**Author:** ![Zach](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/zach/32/10899_2.png) [@Zach](https://forum.core-electronics.com.au/u/Zach)\
**Post date:** [10 October 2024 23:17 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578/9 "2024-10-10T23:17:23Z")

</div>

Hey @Johan281155,

Have you tried placing a sleep in between the two display functions? It seems unnecessary given that the display function specifies which display to use, but it could be worth a shot. I’m thinking something short like sleep(1) could help with synchronisation issues, if that is the cause.

---

<div class="post-metadata">

**Author:** ![Johan281155](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@Johan281155](https://forum.core-electronics.com.au/u/Johan281155)\
**Post date:** [11 October 2024 10:22 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578/10 "2024-10-11T10:22:59Z")

</div>

Hello, yes tried it but no luck. Seems Wayland is having trouble with multimonitor setups. Been reading about other people having trouble with it as well.  
For example I couldn’t simple move windows between the monitors with key commands.

Switched back to X11 and got it working there with --windows-position=xxxxx  
Will stick with this for now and revisit Wayland in the future 🙂

Thank you all for the help!

---

<div class="post-metadata">

**Author:** ![Jaryd](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jaryd/32/8778_2.png) [@Jaryd](https://forum.core-electronics.com.au/u/Jaryd)\
**Post date:** [14 October 2024 05:45 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578/11 "2024-10-14T05:45:14Z")

</div>

The Wayland transition has been a little rough and support is getting there but slowly. Great you found a fix!

---

<div class="post-metadata">

**Author:** ![Pijan283122](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@Pijan283122](https://forum.core-electronics.com.au/u/Pijan283122)\
**Post date:** [10 November 2024 18:37 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578/12 "2024-11-10T18:37:42Z")

</div>

Hello, thanks for this video on youtube!!

I’m looking for a way to auto-close firefox when it’s idle for say 20 seconds (so nobody has clicked anything for 20 seconds) Is that possible in linux?

Thank you!

---

<div class="post-metadata">

**Author:** ![Aaron](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/aaron/32/9861_2.png) [@Aaron](https://forum.core-electronics.com.au/u/Aaron)\
**Post date:** [11 November 2024 05:10 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578/13 "2024-11-11T05:10:08Z")

</div>

Hi @Pijan283122, Welcome to the Forums!!!

It looks like it may be possible to use a utility such as `xprintidle` to make a script to check how long a user has been idle and terminate an application once it reaches the time limit.

---

<div class="post-metadata">

**Author:** ![Pijan283122](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@Pijan283122](https://forum.core-electronics.com.au/u/Pijan283122)\
**Post date:** [14 November 2024 10:49 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578/14 "2024-11-14T10:49:30Z")

</div>

Hello, thanks a lot for your response! I will try to do some research how to use this…may I come back to you if I can’t find a way?

Thank you!

---

<div class="post-metadata">

**Author:** ![Pijan283122](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@Pijan283122](https://forum.core-electronics.com.au/u/Pijan283122)\
**Post date:** [14 November 2024 20:33 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578/15 "2024-11-14T20:33:42Z")

</div>

Ok so, I tried to use this script for a start:

> **[Automatically Shutting Down Unused Terminals in Red Hat Enterprise Linux 9](https://medium.com/@dwivedipiyush9754/automatically-shutting-down-unused-terminals-in-red-hat-enterprise-linux-9-b9d1bc48f05b)**
>
> Introduction:

The only thing I changed was the class-name to “chromium”.

However when I execute the script it throws out an endless number of the following error:

“xprop: error: Invalid window id format: 0x0.”

I’m a total noob when it comes to coding…can you help me here?

My system is RPI 3 B+ running dietpi.

Thank’s a lot!

---

<div class="post-metadata">

**Author:** ![Aaron](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/aaron/32/9861_2.png) [@Aaron](https://forum.core-electronics.com.au/u/Aaron)\
**Post date:** [15 November 2024 01:33 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578/16 "2024-11-15T01:33:30Z")

</div>

Hi @Pijan283122,

The class name for Chromium might change depending on how it’s packaged or installed  
You might need to check the actual string by running `xprop` manually on a Chromium window. The class should either be `chromium` or `Chromium-browser`.

---

<div class="post-metadata">

**Author:** ![Pijan283122](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@Pijan283122](https://forum.core-electronics.com.au/u/Pijan283122)\
**Post date:** [15 November 2024 19:52 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578/17 "2024-11-15T19:52:10Z")

</div>

Thank’s for your response! I tried both class names but unfortunately it keeps outputting that error…I checked class-name and it’s “chromium”.

---

<div class="post-metadata">

**Author:** ![Jack](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jack/32/9287_2.png) [@Jack](https://forum.core-electronics.com.au/u/Jack)\
**Post date:** [18 November 2024 00:51 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578/18 "2024-11-18T00:51:03Z")

</div>

Can you share the script your running? It may be easier to have that as a point of reference here.

---

<div class="post-metadata">

**Author:** ![Andy283734](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@Andy283734](https://forum.core-electronics.com.au/u/Andy283734)\
**Post date:** [20 November 2024 12:13 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578/19 "2024-11-20T12:13:27Z")

</div>

Hi,

I am following your instructions to display a web page in kiosk mode after boot on a rpi 4.  
I have done a fresh install and an update of the 64bit desktop version.  
The problem I am having is it just boots into the desktop and does open chromium in kiosk mode.  
If I run the run\_kiosk.sh manually, it works as expected.  
An odd thing is that doing the sudo nano .config/wayfire.ini opens a blank file.  
I did manage to find the wayfire.ini in a hidden .config folder in my user folder and added the commands to that, but it still doesn’t work.

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![Aaron](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/aaron/32/9861_2.png) [@Aaron](https://forum.core-electronics.com.au/u/Aaron)\
**Post date:** [21 November 2024 01:03 UTC](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578/20 "2024-11-21T01:03:03Z")

</div>

Hi @Andy283734, Welcome to the forums!!!

Some users have experienced [similar problems](https://forums.raspberrypi.com/viewtopic.php?t=359623)

I recommend making sure you are on the latest release of Pi OS Bookworm.  
I’d also suggest trying the alternative commands to see if they work any better when accessing the `wayfire.ini` file.

[Next page](https://forum.core-electronics.com.au/t/how-to-set-up-a-raspberry-pi-kiosk-launch-a-fullscreen-webpage-on-boot/20578.md?page=2)
