Operating System - HP-UX
1843936 Members
2034 Online
110226 Solutions
New Discussion

forwarding your unix display to a pc

 
SOLVED
Go to solution
uk1
Frequent Advisor

forwarding your unix display to a pc

I am currently running ssh with allow port forwarding turned on and my xdisplay export to my pc name. For some reason I still the following error:

The DISPLAY environment variable is set to "172.16.5.117:0.0", but
the current configuration won't allow sam to run on that display.


Does xp have to be configured in any way to allow to allow this to happen?

Thanks
12 REPLIES 12
RAC_1
Honored Contributor

Re: forwarding your unix display to a pc

Is there is firewall in between, you will have to open certain ports. If not, do as follows.

Once logged on, do whho -um, and set display to what appears on the last column of the above command.

Also what is the error message that you get?
There is no substitute to HARDWORK
Alan Meyer_4
Respected Contributor

Re: forwarding your unix display to a pc

your windows x manager on the pc needs to be configured to allow xdisplay from other machines. similiar to the xhost command on the unix machine.
" I may not be certified, but I am certifiable... "
DCE
Honored Contributor

Re: forwarding your unix display to a pc

Actually with ssh you have several items to look at be sure to use ssh -X, also te display IP is nw the server ip:10.0 (usually) man on sshd and associated files should help
Rick Garland
Honored Contributor

Re: forwarding your unix display to a pc

The appearance is that the X traffic is being blocked. Check to see if the X traffic port is open on firewall
uk1
Frequent Advisor

Re: forwarding your unix display to a pc

who does show what it is supposed to be so it is set correctly. Yes it could be a firewall issue, I really havent gone that route yet but it is very viable idea. Also I think my ssh settings are correct but not 100% I will review them just to make sure.

Thanks for the help
Bill Hassell
Honored Contributor
Solution

Re: forwarding your unix display to a pc

To check your basic ssh tunnel for Xwindows, just connect your PC to the same network as your HP-UX server. If that works, then one of your routers or firewalls is blocking Xwindow trffic. NOTE: Xwindow traffic is considered to be very unsafe to route to the open Internet so the default setting in the firewalls is to block. Be prepared to have lengthy discussions on how to properly protect your Xwindow traffic. One alternative is to have a VPN setup so all traffic (telnet, ftp, Xwindows, etc) is encrypted.


Bill Hassell, sysadmin
Kasper Hedensted
Trusted Contributor

Re: forwarding your unix display to a pc

You may need to configure your SSH client to use X11 forwarding and set your local DISPLAY variable.

For example in Putty you can set this under Connection -> SSH -> Tunnels

Cheers
Vibhor Kumar Agarwal
Esteemed Contributor

Re: forwarding your unix display to a pc

May be your case is a bit different, but what i did and got the desired result is:

Have a X Server on your windows platform like Exceed, Reflection, etc.

Set the Display variable ( this you have already done )

Now check the X Server, there are some options in it which allow and disallow remote clients to connect.
Just enable it and here you go.
Vibhor Kumar Agarwal
ed e
Advisor

Re: forwarding your unix display to a pc

can something more simple like xterm be run? You might need to point your fontpath to a fontserver on the HP to get at the hp propritary fonts. Depends on which x-Server your using.
Mel Burslan
Honored Contributor

Re: forwarding your unix display to a pc

suggestion:

on your pc, first fire up some sort of a network interface monitor on one side, then bring up task manager and locate your x-emulator process, like reflection-X etc.

while you are watching these monitors you launched on your pc, fire up sam and see if you are getting any network traffic ? if you do, is your reflection-x process (or whatever else) getting any CPU time or increased memory consumption ?
________________________________
UNIX because I majored in cryptology...
Steven E. Protter
Exalted Contributor

Re: forwarding your unix display to a pc

You may want to use tcpdump or ethereal GUI to analyze network traffic and figure out exactly where its stopping.

Some VLAN subnets stop X Windows traffic from transiting properly. Router configuration can cause you trouble.

In that case, you may need to speak with your Network Admin.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
uk1
Frequent Advisor

Re: forwarding your unix display to a pc

A little more info on this. I did find that port 6010 is listening to requests which should be in the range of X11. Pretty sure that it uses ports 6000+ and 7000. However I still get the error

X connection to host broken (explicit kill or server shutdown).

Hopefully I will get an answer from are network team shortly.