Operating System - HP-UX
1827439 Members
5788 Online
109965 Solutions
New Discussion

Re: Error: Can't open display: <ipadress>:0.0

 
Mieke Oostveen_1
Occasional Contributor

Error: Can't open display: <ipadress>:0.0

I have two HP-UX 11.00 hosts. On host1 it isn't a problem to start for example xclock. I set the DISPLAY with: export DISPLAY=:0.0.
If i do this on host2 i get the error:
couldn't find display information.
I think that some ports are disabled. I can't ping to the client from host2 but from host1 it's ok. Is this the cause of my problem?
9 REPLIES 9
T G Manikandan
Honored Contributor

Re: Error: Can't open display: <ipadress>:0.0

Make sure that the clients are allowed to connect to the server

On the server prompt just do a

#xhost +

From the client window
#echo $DISPLAY
#DISPLAY=:0.0
#export DISPLAY

revert
Mieke Oostveen_1
Occasional Contributor

Re: Error: Can't open display: <ipadress>:0.0

I have already done this on host2 but i get the message:
xhost: unable to open display :0.0
Umapathy S
Honored Contributor

Re: Error: Can't open display: <ipadress>:0.0

Is the DNS ok? There may be some lookup problems.
try nslookup hostname on the client for host2.
Arise Awake and Stop NOT till the goal is Reached!
Hari Kumar
Trusted Contributor

Re: Error: Can't open display: <ipadress>:0.0

Hi, u say you are not able to ping to the client ? then how can we export display ?

check for the Process "dtlogin" running on the host2 ?

Is that client from Host2 reachable ?

Telnet e.t.c other functions u are able to do ?

Check /.dt/startlog and errorlog
Information is Wealth ; Knowledge is Power
Mieke Oostveen_1
Occasional Contributor

Re: Error: Can't open display: <ipadress>:0.0

nslookup gave the correct information.
The dtlogin process is running.
I can to an telnet session to host2 whithout problems. If i look in the home directory of root => /root i can't find the .dt directory at all!!

Alex Glennie
Honored Contributor

Re: Error: Can't open display: <ipadress>:0.0

In answer to your original question, yes, I'd advise on host2 you add the clients ip address and hostname to /etc/hosts and if need be ammend /etc/nsswitch.conf to read

hosts: [ NOTFOUND = continue ] dns

As to the missing .dt dir ...they only get created upon logout of CDE following a succesful login .

startlogs and error logs are only of use for the CDE session on the local host.

you might also try hostname:0 as opposed to ip_address:0 for the DISPLAY variable setting it might work.
Chris Vail
Honored Contributor

Re: Error: Can't open display: <ipadress>:0.0

The best bet is to make sure that each host is in each other's /etc/hosts table. I had a similar problem with our DNS, which was being served by a Windows box. It didn't really that nslookup worked properly. Once the /etc/hosts entry was made, all the X services started to work properly.


Chris
Mark Grant
Honored Contributor

Re: Error: Can't open display: <ipadress>:0.0

I'd be interested to know how you are connecting to the host in order to type "xclock". This might seem dumb but is the X server actually running on your client.

What is your client?
Never preceed any demonstration with anything more predictive than "watch this"
GK_5
Regular Advisor

Re: Error: Can't open display: <ipadress>:0.0

Is ping with IP address working form client to host2 and host2 to client? If not, then it is either router or firewall issue. Is host1, host2 and client on the same network?


-GK-
IT is great!