1833925 Members
3238 Online
110063 Solutions
New Discussion

Re: xhost + command

 
sheevm
Regular Advisor

xhost + command

Hi,

Oracle DBA is instaling oracle installer. This requires to do xhost + command. I am executing this commnad it is not working.

Is this a part of CDE? dtlogin process is running.

Can you please advise?

Thanks.
Raji

By the way this is HP-UX 11.00
be good and do good
5 REPLIES 5
Jeff Schussele
Honored Contributor

Re: xhost + command

Hi Raji,

The xhost + command simply allows X-sessions to be accepted on that host.
The user must also setup $DISPLAY

export DISPLAY=111.222.111.222

On the server that will be sending out the X session.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Ninad_1
Honored Contributor

Re: xhost + command

Hi,

I guess the xhost+ command needs to be run as root user. This will allow xsessions to be opened on other machines - + means permission to all hosts.
You need a workstation or a software like Hummingbird/Exceed etc which enables getting a graphics display for Unix logins.
Once you allow -
You need to set the the variable DISPLAY
DISPLAY=yourcdeipaddress:0.0
export DISPLAY
This will redirect the display to your CDE.
Now from your CDE

Regards,
Ninad
ricky2
Frequent Advisor

Re: xhost + command

Hi Rajim,

what exactly is the output error you get when you try xhost + ?

Rgds,
Ricky
AwadheshPandey
Honored Contributor

Re: xhost + command

http://www.informatik.uni-frankfurt.de/doc/man/hpux/xhost.1.html
As a general rule, you shouldn't use 'xhost +'. You are essentially making it so ANY host can use your xsession. Make it more granular: 'xhost +' (xhost +192.168.0.22) and give Xauthority a chance.

Cheers,
Awadhesh
It's kind of fun to do the impossible
AwadheshPandey
Honored Contributor

Re: xhost + command

http://www.informatik.uni-frankfurt.de/doc/man/hpux/xhost.1.html

use 'xhost +'.
'xhost +'
(xhost +192.168.0.22)

Cheers,
Awadhesh
It's kind of fun to do the impossible