[SOLVED] Gtk-WARNING **: cannot open display: :0.0
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Adding to previous post, do need password for gksu, it must have been in wallet already when testing.
Tried Defaults env_keep=DISPLAY didn't work.
Tried sudo xauth merge username/.Xauthority got unable to open file ......
Using deb testing KDE recently updated.
Try this:
Quote:
This time I had more luck when investigating alternatives... and I
think I have the solution using su, no need of wrappers, just PAM.
Probably also the reason sux is dead upstream and sux was pretty much
a Debian issue.
To /etc/pam.d/su add:
---8<---
# Forward xauth keys between users if invoker is root or UID 1000 or higher
session optional pam_xauth.so systemuser=999
--->8---
I am trying to install an astronomical software package GILDAS: https://www.iram.fr/IRAMFR/GILDAS/
Following the instructions on the Download page of that web, I installed it with "sudo port install". When I tried to launch it after installation with the command "greg", I got very the same error message:
(<unknown>:29409): Gtk-WARNING **: cannot open display:
I deem this an opposite case as in above discussions, because I used sudo to install the software but are trying to use it from my normal user account. How should I do in this case? How can I diagnose the cause?
I had a problem to run any GUI application through gksu or kdesudo as well ( Gtk-WARNING **: cannot open display: )
/as from desktop as from terminal/
I solved it by adding:
into
/etc/sudoers
Defaults env_keep=DISPLAY or Defaults env_keep="DISPLAY"?
and what about the rest of the text there? I have about 5 lines with =+"blah blah" in that section.
Help would be much appreciated.
Tried the log in as root and startx,
Got a fatal Server error -
[ 3185.707] (EE) xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) [ 3185.709] (EE) [ 3185.710] (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 3185.712] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. [ 3185.713] (EE) [ 3185.717] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor [ 3185.717] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor [ 3185.717] (EE) Server terminated with error (1). Closing log file.
Fatal Server Error:
[ 3185.707] (EE) xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) [ 3185.709] (EE) [ 3185.710] (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 3185.712] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. [ 3185.713] (EE) [ 3185.717] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor [ 3185.717] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor [ 3185.717] (EE) Server terminated with error (1). Closing log file.
The information you pasted is very common, and virtually useless. Please start your own thread with a suitably descriptive title. Describe your hardware, such as model number, brand, when made, and especially the graphics unit. Include the installed distribution name and version, who installed it and when, and the window manager or DE, plus the reason for using startx instead of a GUI login manager such as GDM, SDDM or LightDM. With that information someone may be able to offer a plan, or ask for pertinent additional information.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.