Operating System - HP-UX
1855746 Members
10070 Online
104103 Solutions
New Discussion

Error: Can't open display:

 
SOLVED
Go to solution
Jerry L. Sims
Frequent Advisor

Error: Can't open display:

Hello All,

Trying to figure out why I cannot get my
"DISPLAY" variable to work correctly on my
"windows 2000 professional 5.00.2195" PC.
This is a real pain, since I don't have a `HP workstation`to use. My normal proceedure is to :

1. locate IP address for my PC windows as follows:
windows -> start -> open `cmd` -> netstat -rn
to locate IP addr for PC

2. "telnet", by :
windows -> start -> run -> telnet [ipaddress]

3. export DISPLAY=[ipaddress]:0.0
( [ipaddress]=my PC ipaddress )
4. dtterm -title it-hpxx -sb -e /usr/local/bin/ssh2 [userid]@it-hpXX &

but I receive the following error:
Error: Can't open display: 216.131.212.82:0.0
Error: Couldn't find per display information

I have to execute a software program called:
WRQ Reflection X 10.0 to get my Display's &
GUI's to work. Please advise. Thanks.
5 REPLIES 5
Pete Randall
Outstanding Contributor
Solution

Re: Error: Can't open display:

Jerry,

Can you ping 216.131.212.82 from the workstation? What results do you get from "nslookup 216.131.212.82"?


Pete

Pete
A. Clay Stephenson
Acclaimed Contributor

Re: Error: Can't open display:

You've answered your own question. Until Reflection X is started you have no X Server running on your PC.
If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor

Re: Error: Can't open display:

If you are trying to display X stuff to your PC *without* first starting Reflection X, then it is not going to work. Windows has absolute no clue what to do with X stuff unless there is an X server running.

Reflection X allows you to do what you are doing. Without it, too bad, it ain't gonna work.
Volker Borowski
Honored Contributor

Re: Error: Can't open display:

Works as designed !

Windows 2000 comes without a "built-in" X-Server you have usually running on a Workstation or a Linux Box.

So you have to start a X-Serverprogram on W2000 which is capable to handle the X-requests.

Reflection is quite a good product for this and offers lots of additional tools (graphical FTP ...).
Install Cygwin on W2000 in case you do not like to pay so much (but you will have less features).
Either way: You need to have an X-Server (Reflection in your case) to let "dtterm" send data to a display.
You can set up an XDMCP-Session in Reflection X to get a direct X-login, without the telnet stuff.

Hope this helps
Volker
Jerry L. Sims
Frequent Advisor

Re: Error: Can't open display:

Thank you all for the explanation(s). It helps to get a better understanding how this works.

Hello Pete, info as follows :
# ping 216.131.212.82 64 3
PING 216.131.212.82: 64 byte packets
64 bytes from 216.131.212.82: icmp_seq=0. time=0. ms
64 bytes from 216.131.212.82: icmp_seq=1. time=0. ms
64 bytes from 216.131.212.82: icmp_seq=2. time=0. ms

----216.131.212.82 PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
it-hp36 # nslookup 216.131.212.82
Using /etc/hosts on: it-hp36

looking up FILES
Trying DNS
Name: c1jsims120903.com
Address: 216.131.212.82

it-hp36 #