# Node Red open New terminal

**URL:** <https://discourse.nodered.org/t/node-red-open-new-terminal/41795>\
**Category:** Dashboard\
**Created:** [1 March 2021 10:56 UTC](https://discourse.nodered.org/t/node-red-open-new-terminal/41795 "2021-03-01T10:56:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tods09](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@Tods09](https://discourse.nodered.org/u/Tods09)\
**Post date:** [1 March 2021 10:56 UTC](https://discourse.nodered.org/t/node-red-open-new-terminal/41795/1 "2021-03-01T10:56:25Z")

</div>

Hello.

I am trying to open a terminal running a exec node. With a ui\_button I inject a timestamp in exec node in order to open The terminal.

In exec node I write command : "gnome-terminal", and when I run exec node it gives me this error: unable to init server :Could not connect : Connection refused. Failed to parse argument: Cannot open display :

Do you have any ideas what am I doing wrong?

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:** [1 March 2021 11:27 UTC](https://discourse.nodered.org/t/node-red-open-new-terminal/41795/2 "2021-03-01T11:27:06Z")

</div>

Try  
`DISPLAY=:0 gnome-terminal`  
which tells the system to use the primary display. Without that it does not know where to display it. You don't need it when running manually as you are already attached to a display. It will open on the machine running node-red of course, not the machine running the browser (if different).

---

<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:** [31 March 2021 11:27 UTC](https://discourse.nodered.org/t/node-red-open-new-terminal/41795/3 "2021-03-31T11:27:17Z")

</div>

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