Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-17-2006, 12:40 PM   #1
LQ Newbie
Registered: Dec 2004
Distribution: Slackware 10.0
Posts: 1

Rep: Reputation: 0
Cannot open display

Long story short:
I have a CentOS 4.3 x86_64 full install. Ssh with XForwarding works and I'm not interested in that solution because I want to export from a Solaris 5.7 which doesn't have ssh. (No I will not install ssh-server on it, or maybe I will but that is not the issue here).

The problem: I telnet to any kind of machine (Linux/Solaris) from the CentOS box. I issue xhost + <remote machine> on the CentOS machine and set the display on the remote machine properly. When I try to run a graphic application on the remote I get Cannot open display when I should get the result on the CentOS display. The telnet server on the remote is ok because with the same procedure as above I run graphical apps on a suse 10 box.

The problem is with the CentOS. The same problem I have it on a FC3 x86_64 installation.

And BTW if I telnet to the localhost on the CentOS works like a charm. So my guess is that this is a setting somewhere that doesn't let external tcp connections to the X server but I couldn't google my way out of this.

The strange thing is if I issue a telnet <CentOSbox> 6001 it connects.

I don't know if this is a "bug" or a "feature" Any help?

PS: iptables is clean
Old 05-17-2006, 12:56 PM   #2
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
The problem is probably being caused by gdm. There is a line in gdm.conf that will probably look like this:

This is blocking normal TCP from getting in. SSH works because the TCP stuff is tunneled through SSH.

You may also find this line in /usr/share/gdm/defaults.conf. A lot depends on the distribution.


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
cannot open display as root tethysgods Linux - Software 14 12-10-2010 04:16 PM
Cannot open display ::eboye:: SUSE / openSUSE 2 11-19-2005 08:45 AM
Error: can't open display gopalkasat Linux - Networking 8 12-13-2004 02:59 PM
Cannot open Display ferreter Linux - General 1 08-17-2003 05:23 PM
Cannot Open Display Apocalypse Linux - General 9 10-16-2002 07:59 PM > Forums > Linux Forums > Linux - Software

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

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