# Raspberry Debian 11: How automatically open http://localhost:1880/ui after node-red service start?

**URL:** <https://discourse.nodered.org/t/raspberry-debian-11-how-automatically-open-http-localhost-1880-ui-after-node-red-service-start/95494>\
**Category:** Dashboard\
**Tags:** dashboard\
**Created:** [18 February 2025 18:34 UTC](https://discourse.nodered.org/t/raspberry-debian-11-how-automatically-open-http-localhost-1880-ui-after-node-red-service-start/95494 "2025-02-18T18:34:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lumanga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lumanga/32/58334_2.png) [@lumanga](https://discourse.nodered.org/u/lumanga)\
**Post date:** [18 February 2025 18:34 UTC](https://discourse.nodered.org/t/raspberry-debian-11-how-automatically-open-http-localhost-1880-ui-after-node-red-service-start/95494/1 "2025-02-18T18:34:27Z")

</div>

Dear All,  
I have a raspberry pi3 with Raspbian 11 "bullseye", kernel 6.1 and the "old X11 server" with LXDE.  
I have Node-Red v4 installed and enabled via "_sudo systemctl enable nodered.service_"  
I want that after Node-red is starded and fully working, **the web brower automatically open and show the Dashboard** : "_chromium-browser --kiosk [http://localhost:1880/ui](http://localhost:1880/ui)_"

Which is the best and better way to do this?

1. modify the "/lib/systemd/system/nodered.service" adding:

```auto
ExecStartPost=/bin/bash -c "sleep 15 && DISPLAY=:0 chromium-browser --kiosk http://localhost:1880/ui &"

```

AFTER the line:  
`ExecStart=/usr/bin/env node-red-pi $NODE_OPTIONS $NODE_RED_OPTIONS`

1. make a new systemd services: EXAMPLE:  
`sudo nano /etc/systemd/system/chromium-dashboard.serviceOther way?`

adding:

```auto
Description=Dashboard Chromium Kiosk Mode.
After=nodered.service
Requires=nodered.service
Display=:0

[Service]
User=pi
Group=pi
Environment=DISPLAY=:0
ExecStartPre=/bin/sleep 30 # ritardo avvio...
ExecStart=/usr/bin/chromium-browser --noerrdialogs --disable-infobars --kiosk http://localhost:1880/ui
Restart=on-failure
RestartSec=5

[Install]
WantedBy=graphical.target`

Thanks in advance
```

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 February 2025 18:54 UTC](https://discourse.nodered.org/t/raspberry-debian-11-how-automatically-open-http-localhost-1880-ui-after-node-red-service-start/95494/2 "2025-02-18T18:54:24Z")

</div>

Do those ideas work?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [18 February 2025 19:29 UTC](https://discourse.nodered.org/t/raspberry-debian-11-how-automatically-open-http-localhost-1880-ui-after-node-red-service-start/95494/3 "2025-02-18T19:29:08Z")

</div>

The best way would likely be to use the power of systemd. Create a new service script that starts the kiosk browser but that makes it dependent on both the Node-RED service and, presumably, the startup of the desktop on which it relies.

---

<div class="post-metadata">

**Author:** ![lumanga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lumanga/32/58334_2.png) [@lumanga](https://discourse.nodered.org/u/lumanga)\
**Post date:** [20 February 2025 16:25 UTC](https://discourse.nodered.org/t/raspberry-debian-11-how-automatically-open-http-localhost-1880-ui-after-node-red-service-start/95494/4 "2025-02-20T16:25:57Z")

</div>

Dear All,  
Im using this SystemD services:

```auto
[Unit]
Description=Chromium Node-red startUp
After=nodered.service
Requires=nodered.service 

[Service]
User=pi
Group=pi
Environment=DISPLAY=:0
ExecStartPre=/bin/sleep 30
ExecStart=chromium-browser --noerrdialogs --disable-infobars --start-fullscreen --incognito http://localhost:1880/ui
Restart=on-failure
RestartSec=5

[Install]
WantedBy=graphical.target

```

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [20 February 2025 17:21 UTC](https://discourse.nodered.org/t/raspberry-debian-11-how-automatically-open-http-localhost-1880-ui-after-node-red-service-start/95494/5 "2025-02-20T17:21:34Z")

</div>

Does it work?

---

<div class="post-metadata">

**Author:** ![lumanga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lumanga/32/58334_2.png) [@lumanga](https://discourse.nodered.org/u/lumanga)\
**Post date:** [21 February 2025 13:48 UTC](https://discourse.nodered.org/t/raspberry-debian-11-how-automatically-open-http-localhost-1880-ui-after-node-red-service-start/95494/6 "2025-02-21T13:48:50Z")

</div>

YES, very well.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [21 February 2025 14:00 UTC](https://discourse.nodered.org/t/raspberry-debian-11-how-automatically-open-http-localhost-1880-ui-after-node-red-service-start/95494/7 "2025-02-21T14:00:55Z")

</div>

Good, so if the problem is solved please click the Solved checkbox at the bottom of the post that provides the solution so that others will know there is no need post further help on this.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [7 March 2025 14:01 UTC](https://discourse.nodered.org/t/raspberry-debian-11-how-automatically-open-http-localhost-1880-ui-after-node-red-service-start/95494/8 "2025-03-07T14:01:10Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
