Operating System - HP-UX
1819803 Members
2957 Online
109607 Solutions
New Discussion юеВ

how to run Xwindows remotly

 
Asif_8
Regular Advisor

how to run Xwindows remotly

Hi !

I want to remotly run HP-UX GUI I have followin setup
One site:
Cable Modem--------DSL router----HP-UX
ISP address 192.168.1.1 192.168.1.80
70.x.x.3
Other site
CableModem ---DSLRouter--window-exceed
Ispaddress 912.168.1.1 192.168.1.10
how to run HP-Ux GUI on windows 2000 machine via exceed and ssh
thanks
9 REPLIES 9
Geoff Wild
Honored Contributor

Re: how to run Xwindows remotly

You have to telnet to HPUX machine, then export your display:

export DISPLAY=ip of router:0.0

You need the external ip address of your router...

You also need to add a rule on the fw part of both routers to allow this to happen - search google...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
G. Vrijhoeven
Honored Contributor

Re: how to run Xwindows remotly

Hi,

What you can do is start an X-server on the windows host.
I always use putty and enable use ssh and enable X11 forwarding. Works fine and simple.

HTH,

Gideon
Asif_8
Regular Advisor

Re: how to run Xwindows remotly

Thanks Geoffer !

I telnet the HP-UX machine but Gui is not runing
Steven E. Protter
Exalted Contributor

Re: how to run Xwindows remotly

Shalom Asif,

Also:

On the HP-UX machine:

check

/etc/rc.config.d/xfs

First variable needs to be 1.

/sbin/init.d/xfs start

Starts the font server.

Realize that the Exceed broadcast option will not work through certain VLAN setups, so you will need to direct connect to the machine.

If you have run Bastille on the HP-UX server and shut down the r-protocols in /etc/inetd.conf, you will need to re-enable them and restart inetd as below:
inetd -c

Skip the inetd.conf part if you are using the latest Exceed with openssh support. Of course to use that you need to have secure shell/openssh installed on your HP-UX box.

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
Indrajit_1
Valued Contributor

Re: how to run Xwindows remotly

Hi,

Also check the file /usr/dt/config/Xaccess.
#vi /usr/dt/config/Xaccess

The following lines should uncomment..

# grant service to all remote displays
CHOOSER BROADCAST #any indirect host can get a chooser

Also visit the site..

http://home.tampabay.rr.com/batcave/unixnotes.htm#Exceed.

Also check the bandwidth.. Because GUI needs more bandwidth.
Check with ur network admin, if port has opened for Xwindows.
In the client (desktop machine), u can use the third party software Xmangager2, Winaxe etc..

Cheers
indrajit
Never Ever Give Up
Sivakumar TS
Honored Contributor

Re: how to run Xwindows remotly


Dear Asif,

If the Xserver is running in the server, you can use the follwoing software in windows machine (in the remote end) to access the Xwindows on remote HPUX server.

ReflectionX --

http://www.dartmouth.edu/comp/resources/downloads/win/connect/reflectionx.html

You can download the same from the above url.

Hope it will be useful for you.

With Regards,

Siva.

Nothing is Impossible !
Tom Ward_1
Honored Contributor

Re: how to run Xwindows remotly

Hello Asif,

Here are instructions for tunneling X via ssh. I hope this helps you.

On the HPUX side
This assumes that X is currently configured and running on the server. As root edit /opt/ssh/etc/sshd_config and set "X11Forwarding yes" The default is "X11Forwarding no". Cycle SSHd to pick up the change.
cd /sbin/init.d/
./secsh stop && ./secsh start

On the PC side with PuTTY and Exceed
Optionally configure Exceed to only allow connections from localhost. If you do this you must tunnel X though SSH to connect.

In PuTTY make a new session. Set the remote IP. (That would be the CableModem IP in this case.) Then under the SSH section go down to X11 and check the "Enable X11 forwarding" box. You may want to enable compression as well. Save and open that connection to your remote host.

In the PuTTY terminal verify that your DISPLAY is set to use X.
echo $DISPLAY should come back with "localhost:0.0"

Start an your X application in the PuTTY session, and it'll will be forwarded back to the PC via a SSH tunnel.

xterm /usr/bin/X11/xterm
CDE /usr/dt/bin/dtsession

You can use "netstat |more" on the PC to check the ports open and verify that X (port 6000) is only connected to localhost.

Good luck,
Tom
john kingsley
Honored Contributor

Re: how to run Xwindows remotly

Raj D.
Honored Contributor

Re: how to run Xwindows remotly

Hi Asif ,

Its pretty easy with VNC ,
You need to install the VNVServer s/w in the server , and then connect it using putty , with SSH tunnel. And you are done, you will get X-Window.

1. Download server sw & install in the server:

2. Download client sw & install in the Win2000 PC.

Link: http://www.realvnc.com/download.html

3. Run in server the command :
$ vncserver

It will ask for password and will give one port no. say port#1.

4 In Putty , Configure :
Putty--> SSH--> Tunnels -->


[ If its given port no 1 then, In Putty : Source port = 5910 & Dest: localhost:5901 . ]

5. Open this putty session and keep it idle.

6. Open "VNC Viewer" from Win2000 , and at server : localhost:5910
It will ask for password. Enter it. And you are done.

You can now run , GUI SAM , or Ignite etc.


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "