1833059 Members
2572 Online
110049 Solutions
New Discussion

Runing X remotely

 
Marty Metras
Super Advisor

Runing X remotely

I have an HP-9000 HPUX 11.0 and I want to run X windows on it from a remote Linux box.
Every once it a while some thing work faster in the GUI.
Can some one point me to what I need to do this?
Marty
The only thing that always remain the same are the changes.
4 REPLIES 4
Chris Watkins_1
Respected Contributor

Re: Runing X remotely

On the linux box:

# xhost +hp_hostname
(where hphostname is the hostname or IP of the hp box)

login as you normally do, to the hp machine:

# slogin/rlogin/ssh/telnet/etc... hp_hostname

# export DISPLAY=linux_hostname:0.0
# gui_command_here

(linux_hostname can be IP instead, if needed)



Another way is to make sure the Xserver is running on the
HP side, and possibly the X font server as well...
then shutdown X on the linux box, and type:

# X -query hp_hostname

This gives you the entire CDE desktop of the remote machine.
That may or may not be what you desire.
Hope this helped!
Not without 2 backups and an Ignite image!
Steven E. Protter
Exalted Contributor

Re: Runing X remotely

On the HP box, you will need to make sure the first variable in the file /etc/rc.config.d/xfs is set to 1

This will start the font server on boot.

This is not needed if you've already done a connect to the box via Exceed or some other X front end.

A search on the itrc search engine for X Windows Linux will reveal a few cookbooks that will tell you how to deal with other issues you need to make the process work perfectly.

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
I.Delic
Super Advisor

Re: Runing X remotely

Hi Marty,

Client side:
First you have to use this command:
xhost + or xhost +namemachine
With this command you give permission to use your display for output.

Go to the UNIX box en typ
DISPLAY=aaa.bb.c.d:0.0 ( ip adres van je Linux box)
export DISPALY
Typ Xload &


You should see xload screen on your Linux box

Succes

Idriz

Wodisch
Honored Contributor

Re: Runing X remotely

Hi Marty,

you could use "xauth(1)" to grant permission or you could use "ssh" with the "-X" and "-f" option:

|HPUX:
| sshd # must be running
|
|Linux:
| ssh -X -f HPUX /usr/dt/bin/dtterm

FWIW,
Wodisch