LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-01-2008, 11:55 AM   #1
zhao
LQ Newbie
 
Registered: May 2008
Posts: 2

Rep: Reputation: 0
Help: X11Error: Can't open display


Hello, I'm getting this message on my local linux machine when I trying to run program (AFNI). I checked "echo $DISPLAY": undefined variable. However, if I ssh to the server by Cygwin from my windows machine, I can open the display (DISPLAY = localhost:10.0)

where is the problem? how do I fix the display problem on my linux server? Thank you!
 
Old 05-01-2008, 02:58 PM   #2
veepo
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Rep: Reputation: 0
usually this error is displayed if the user account you are using has not started X before and you try to open an application that requires X. Like when you login as UserA and open shell, become a root and try to open an application that requires X, the error is displayed.

You could just try to set the $DISPLAY to point to localhost:0.0 and then try again

DISPLAY=localhost:0.0
 
Old 05-05-2008, 03:42 PM   #3
zhao
LQ Newbie
 
Registered: May 2008
Posts: 2

Original Poster
Rep: Reputation: 0
It didn't work - can't open display

Thanks. I tried:

setenv DISPLAY localhost:0.0

then echo $DISPLAY

=localhost:0.0

But I still get the same error:

X11Error: can't open display:localhost:0.0

And everytime when I try to log out and back in, DISPLAY is undefined variable again.

Help please. Thanks.
 
  


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
xterm -display remote:0.0 Can't open display - xterm from tru64 to debian 3.1 loopy69 Linux - Software 2 04-01-2008 07:54 PM
::cannot open display:: nery Linux - Software 3 04-12-2007 09:35 AM
Cannot open display Styx Linux - Software 1 05-17-2006 12:56 PM
Cannot open display ::eboye:: SUSE / openSUSE 2 11-19-2005 08:45 AM
Cannot Open Display Apocalypse Linux - General 9 10-16-2002 07:59 PM


All times are GMT -5. The time now is 08:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration