cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Can't open display

Juan Tarrio
Occasional Visitor

Error: Can't open display

Hello Friends,
I have linux (red hat) abc.xyz.com and I do telnet to some machine (hp-ux) lmn.xyz.com and I want to run xterm on this machine but I am getting error: Error: Can't open display: abc.xyz.com:0.0

On machine abc.xyz.com I did xhost +
On machine lmn.xyz.com I set DISPLAY to abc.xyz.com:0.0
But still I am getting this error. Can anybody please help me out...

Thanks in advance.

-Juan
8 REPLIES
Roberto_30
Frequent Advisor

Re: Error: Can't open display

Which version are you using ?
Do you received other errors in /var/log/messages ?

Let me know.
Roberto
Juan Tarrio
Occasional Visitor

Re: Error: Can't open display

Thanx.

I am using Linux 2.4.7-10

Yes, I do get messages in /var/log/messages

One more thing, I am unable to telnet to my machine from other machine i.e. could not telnet to abc.xyz.com from lmn.xyz.com

thanks again.
Roberto_30
Frequent Advisor

Re: Error: Can't open display

Are you using tcp_wrappers o xinetd(based security)? Have you customized these services (Telnet, X)?
Roberto
Juan Tarrio
Occasional Visitor

Re: Error: Can't open display

Roberto,
I have not customised any services.
(I am very new in Unix/Linux).
Help me out... :-(

-Juan
Roberto_30
Frequent Advisor

Re: Error: Can't open display

Hi Juan
can you attach your /var/log/messages ?
Thanks Roberto
Ted Ellis_2
Honored Contributor

Re: Error: Can't open display

Juan... do you know if the firewall package was installed? We run Linux here and an associate installed every package available. The firewall wil automatically disable almost anything trying to connect to your machine. Try this (we run Red Hat as well):

enter lokkit at a command prompt

if you get the Firewall configuration menu, set the security level to disable the firewall.. assuming you don't need it.

You can also run:

rpm -qa | grep firewall

if you get something like firewall-config-0.97-2 you can use rpm to uninstall it:

rpm -e firewall-config-0.97-2

hope that helps

Ted
Ted Ellis_2
Honored Contributor

Re: Error: Can't open display

as part of my reply... can you telnet from your machine? If you can, then I am almost certain part of your problems (telnet) are related to the firewall package...

Ted
Juan Tarrio
Occasional Visitor

Re: Error: Can't open display

Thanks Roberto and Ted !!

Problem was with firewal only. I desabled it and now it's working perfect.

Thanks again.

Juan