Hello,
When I run /usr/bin/gnome-terminal under fc26 (it was fine in fc24) from a gnome-terminal I get:
Unable to init server: Could not connect: Connection refused Failed to parse arguments: Cannot open display:
Can I avoid the error ?
Thank
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France ===========================================================================
On 09/17/17 17:30, Patrick Dupre wrote:
When I run /usr/bin/gnome-terminal under fc26 (it was fine in fc24) from a gnome-terminal I get:
Unable to init server: Could not connect: Connection refused Failed to parse arguments: Cannot open display:
Can I avoid the error ?
You never give sufficient details for anyone to be of much help.
You don't say how your are starting it or the environment. But you are apparently starting it from a session which has no connection to a DISPLAY.
Example....
[egreshko@meimei ~]$ env | grep DISPLAY DISPLAY=:0
[egreshko@meimei ~]$ /usr/bin/gnome-terminal [egreshko@meimei ~]$ echo $? 0
Starts just fine...
[egreshko@meimei ~]$ ssh meimei Last login: Sun Sep 17 18:29:10 2017 from 192.168.1.18
[egreshko@meimei ~]$ env | grep DISPLAY [egreshko@meimei ~]$
Nothing returned....
[egreshko@meimei ~]$ /usr/bin/gnome-terminal Unable to init server: Could not connect: Connection refused Failed to parse arguments: Cannot open display: [egreshko@meimei ~]$ echo $? 1
Totally expected.
From: "Ed Greshko" ed.greshko@gmail.com To: Fedora users@lists.fedoraproject.org Subject: Re: gnome-terminal
On 09/17/17 17:30, Patrick Dupre wrote:
When I run /usr/bin/gnome-terminal under fc26 (it was fine in fc24) from a gnome-terminal I get:
Unable to init server: Could not connect: Connection refused Failed to parse arguments: Cannot open display:
Can I avoid the error ?
You never give sufficient details for anyone to be of much help.
You don't say how your are starting it or the environment. But you are apparently starting it from a session which has no connection to a DISPLAY.
Example....
[egreshko@meimei ~]$ env | grep DISPLAY DISPLAY=:0
[egreshko@meimei ~]$ /usr/bin/gnome-terminal [egreshko@meimei ~]$ echo $? 0
Starts just fine...
If I set DISPLAY properly DISPLAY=:0 echo $? 0 I get: Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused Failed to parse arguments: Cannot open display:
echo $? 1
[egreshko@meimei ~]$ ssh meimei Last login: Sun Sep 17 18:29:10 2017 from 192.168.1.18
[egreshko@meimei ~]$ env | grep DISPLAY [egreshko@meimei ~]$
Nothing returned....
[egreshko@meimei ~]$ /usr/bin/gnome-terminal Unable to init server: Could not connect: Connection refused Failed to parse arguments: Cannot open display: [egreshko@meimei ~]$ echo $? 1
Totally expected.
-- Fedora Users List - The place to go to speculate endlessly
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org
On 09/17/2017 03:52 AM, Patrick Dupre wrote:
If I set DISPLAY properly DISPLAY=:0 echo $? 0 I get: Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused Failed to parse arguments: Cannot open display:
How about you provide some useful details about what you are doing? E.g. where are you getting the command prompt from? What user is the display running as? What user are you trying to run the terminal as?
Hello,
As I earlier said, the glitch is solved by using gnome Xorg
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France ===========================================================================
Sent: Sunday, September 17, 2017 at 11:24 PM From: "Samuel Sieb" samuel@sieb.net To: users@lists.fedoraproject.org Subject: Re: gnome-terminal
On 09/17/2017 03:52 AM, Patrick Dupre wrote:
If I set DISPLAY properly DISPLAY=:0 echo $? 0 I get: Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused Failed to parse arguments: Cannot open display:
How about you provide some useful details about what you are doing? E.g. where are you getting the command prompt from? What user is the display running as? What user are you trying to run the terminal as? _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org
On 09/17/2017 03:52 AM, Patrick Dupre wrote:
From: "Ed Greshko" ed.greshko@gmail.com To: Fedora users@lists.fedoraproject.org Subject: Re: gnome-terminal
On 09/17/17 17:30, Patrick Dupre wrote:
When I run /usr/bin/gnome-terminal under fc26 (it was fine in fc24) from a gnome-terminal I get:
Unable to init server: Could not connect: Connection refused Failed to parse arguments: Cannot open display:
Can I avoid the error ?
You never give sufficient details for anyone to be of much help.
You don't say how your are starting it or the environment. But you are apparently starting it from a session which has no connection to a DISPLAY.
Example....
[egreshko@meimei ~]$ env | grep DISPLAY DISPLAY=:0
[egreshko@meimei ~]$ /usr/bin/gnome-terminal [egreshko@meimei ~]$ echo $? 0
Starts just fine...
If I set DISPLAY properly DISPLAY=:0 echo $? 0 I get: Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused Failed to parse arguments: Cannot open display:
echo $?
Patrick, you can't start a gnome-terminal except as the user that started the gnome session. THAT user "owns" the X server and, unless that user explicitly permits access to the X server (such as "xhost +"), no one else can use it.
If you ran gnome-terminal, then did something like "su -" or "sudo bash -l" in that terminal and subsequently ran "gnome-terminal" from there (e.g. as a different user), then that user does NOT have a gnome-session and can't open the X server. Simply defining the "DISPLAY" variable does NOT tie that user to the gnome session.
In the future, please be EXPLICIT in telling us WHAT you did to arrive at the error(s) you hit. You consistently ask for help without giving us any idea as to what the devil you did in the first place to cause the problem.
[egreshko@meimei ~]$ ssh meimei Last login: Sun Sep 17 18:29:10 2017 from 192.168.1.18
[egreshko@meimei ~]$ env | grep DISPLAY [egreshko@meimei ~]$
Nothing returned....
[egreshko@meimei ~]$ /usr/bin/gnome-terminal Unable to init server: Could not connect: Connection refused Failed to parse arguments: Cannot open display: [egreshko@meimei ~]$ echo $? 1
Totally expected.
-- Fedora Users List - The place to go to speculate endlessly
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org