1826663 Members
2754 Online
109695 Solutions
New Discussion

DISPLAY problems

 
SOLVED
Go to solution
Asad Malik
Frequent Advisor

DISPLAY problems

Hi
We have Windows NT console and are running Exceed to access Unix boxes. We telnet into one of the box (box1) and then use ssh to login into another box (box2). We have to set DISPLAY variable on box1, i.e. the IP of WinNT box. We have to run a GUI application on box2. The DISPLAY variable is set to the IP of box2 as it is being exported.
We are getting Errors: can not open the display.

This works fine on WIN95 consoles. We do not to set the display on box2 but only on box1 and then ssh to box2.

Any suggestion please
Thanks
8 REPLIES 8
Steven Sim Kok Leong
Honored Contributor
Solution

Re: DISPLAY problems

Hi,

Am I correct to say that you did the following:

WinXX:
xhost +box1
xhost +box2
telnet box1

box1:
export DISPLAY=WinXX:0.0
ssh box2

box2:
export DISPLAY=WinXX:0.0
Execute-GUI-program

Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Dan Hetzel
Honored Contributor

Re: DISPLAY problems

Hi,

Independently of the box where you're running the application your DISPLAY should alvays be set to the host where your physical display (screen + keyboard + mouse) reside.

The export DISPLAY=:0.0 should be issued on the host where you run the graphical application.

Replace with either your desktop PC name (if you have a DNS) or with its IP address.

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Asad Malik
Frequent Advisor

Re: DISPLAY problems

how to perform xhost on NT box
cannot find the command. Is it done via Exceed.
Steven Sim Kok Leong
Honored Contributor

Re: DISPLAY problems

Hi,

An xhost equivalent for Exceed has to be there. Otherwise, it poses a security vulnerability if X11 can be allowed from anywhere.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Asad Malik
Frequent Advisor

Re: DISPLAY problems

Yes
That is what I do not know, the equivalent of xhost on Exceed
Steven Sim Kok Leong
Honored Contributor

Re: DISPLAY problems

Hi,

If I am right, you can use XDMCP to grab X11 from the UNIX box. Try running exceed in XDMCP mode.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Asad Malik
Frequent Advisor

Re: DISPLAY problems

Hi
Thanks for help. It turns out to be IP address resolution issue. WINNT box has the same IP address as one of the network interface on box2. We will resolve this.
Christopher LaPlante
Occasional Contributor

Re: DISPLAY problems

Go to
start->programs->exceed->Xconfig->Security
for xhost + equivalents