LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-13-2013, 04:58 PM   #16
davetesc
LQ Newbie
 
Registered: May 2012
Location: UK
Distribution: Debian testing KDE, Mint 14 XFCE, Ubuntu Studio
Posts: 19
Blog Entries: 4

Rep: Reputation: Disabled

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.

Any tips ????

Thanks Davetesc
 
Old 01-17-2014, 01:19 PM   #17
GroZouRs
LQ Newbie
 
Registered: Jan 2014
Distribution: Ubuntu,Archlinux,Gentoo,OpenBSD.
Posts: 2

Rep: Reputation: Disabled
On my system, i had the same issue.


Looking at my X process :
$sudo ps -eaf | grep [/]X
root 13755 1399 3 Jan03 tty7 13:03:18 /usr/bin/X :1 -auth /var/run/lightdm/root/:1 -nolisten tcp vt7 -novtswitch

but my $DISPLAY value was this :
$echo $DISPLAY
:0

i just corrected it :
$export DISPLAY=":1"

and then everything was fine.

Are you using hibernation on a laptop ?
 
Old 01-26-2014, 06:36 AM   #18
Phiebie
Member
 
Registered: Oct 2004
Location: Austria
Distribution: Debian testing
Posts: 114

Rep: Reputation: 17
Quote:
Originally Posted by davetesc View Post
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---
 
Old 01-27-2014, 01:05 PM   #19
davetesc
LQ Newbie
 
Registered: May 2012
Location: UK
Distribution: Debian testing KDE, Mint 14 XFCE, Ubuntu Studio
Posts: 19
Blog Entries: 4

Rep: Reputation: Disabled
Thanks for posts, forgot this thread way still open, either solved it or problem went away, sorry will now mark solved if I can. Davetesc.
 
Old 05-09-2016, 01:51 PM   #20
CarlHe
LQ Newbie
 
Registered: May 2016
Posts: 4

Rep: Reputation: Disabled
Question an opposite case of the DISPLAY issue.

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 am using MAC OS X El Capitan.

Thanks!
Carl

Last edited by CarlHe; 05-09-2016 at 01:54 PM.
 
Old 05-10-2016, 03:43 PM   #21
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
This is an ancient thread. Marked Solved.

Not an appropriate place to ask a question.

Start a new thread.
 
Old 04-14-2019, 05:32 PM   #22
ElazarNotTaken
LQ Newbie
 
Registered: Apr 2019
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by masuch View Post
Hi,

thanks for this hints.

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.
 
Old 08-06-2019, 04:55 PM   #23
jamesski
LQ Newbie
 
Registered: Nov 2013
Location: Boise, ID
Distribution: Debian 6
Posts: 3

Rep: Reputation: Disabled
Fatal Server Error

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.
 
Old 08-06-2019, 09:59 PM   #24
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,772
Blog Entries: 1

Rep: Reputation: 2054Reputation: 2054Reputation: 2054Reputation: 2054Reputation: 2054Reputation: 2054Reputation: 2054Reputation: 2054Reputation: 2054Reputation: 2054Reputation: 2054
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gtk-WARNING **: cannot open display: ncsuapex Slackware 7 01-04-2013 05:54 PM
gtk warning cannot open display bosewicht Linux - Newbie 2 03-10-2010 07:53 PM
export display and Gtk-WARNING **: cannot open display: zimma Linux - Server 0 04-24-2009 02:51 AM
Gtk-WARNING **: cannot open display mmisoo Fedora 4 07-24-2006 07:33 PM
Gtk-WARNING **: cannot open display ocset Linux - Software 2 10-18-2004 03:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration