1830367 Members
2238 Online
110001 Solutions
New Discussion

Re: xhost

 
kamal_9
Super Advisor

xhost

Dear All
How to get the gui screen of hpserver(hpux 11i) from an solaris9 machine.iam able to ping to both machines by using name&ip.can any one tell what daemons i hav to enable/what port i hav to enable/what command i hav to used .i hav tried some command but it didn't worked
3 REPLIES 3
Shaikh Imran
Honored Contributor

Re: xhost

Hi,

On the server whose gui is to be viewed.
say (server1)
#xhost+
On the server where gui is to be viewed:
say (server 2)
#telnet server1
#export DISPLAY=:0.0

Now run any x-command

Regards,

I'll sleep when i am dead.
David Child_1
Honored Contributor

Re: xhost

Are you refering to bringing up the entire CDE desktop on the Solaris machine?

If memory servers, I did this a couple of times in a lab a few years ago. I think this is approximately how I did it:

On Solaris "client";
1. disable starting up any window manager (e.g. just run X-windows). You should see the gray screen with a borderless xterm in the upper left corner of your screen.
2. xhost +
3. telnet to HP server
4. export DISPLAY=xxx.xxx.xxx.xxx:0.0
5. run dtlogin

David
Andrew Cowan
Honored Contributor

Re: xhost

For security reasons you should never run "xhost +" instead use "xhost +" to prevent others accessing your system.

You will also have problems running CDE if the remote server cannot resolve the hostname of the client. When you telnet to the host do a "who" to ensure that it knows you.