Operating System - HP-UX
1819688 Members
3486 Online
109605 Solutions
New Discussion юеВ

/usr/bin/X11/xhost: unable to open display

 
SOLVED
Go to solution
rajesh73
Super Advisor

/usr/bin/X11/xhost: unable to open display

Hi some one help me
when iam start xhost it displaying

unable to open display
13 REPLIES 13
Torsten.
Acclaimed Contributor

Re: /usr/bin/X11/xhost: unable to open display

Where do you have your display?

On a PC running windows or linux?

In this case you ned to export the DISPLAY varaible to your pc.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sharma Sanjeev
Respected Contributor

Re: /usr/bin/X11/xhost: unable to open display

Hi Rajesh

You need to export DISPLAY first

on Unix box

export DISPLAY ( ip of your PC ) :0.0

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Avinash20
Honored Contributor

Re: /usr/bin/X11/xhost: unable to open display

If you telnetting the HP-UX from Windows and trying this, it wont work.

You need to use an X-emulator if you like to open GUI from Windows

You could use Reflection-X or X-manager software on WIndows
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
rajesh73
Super Advisor

Re: /usr/bin/X11/xhost: unable to open display

this is hp box Hp rp4440 instelled version is 11.11 iam already put export DISPLAY=hostname:0.0 after that also i am getting same error.

i am trying to connect my local pc(windows) to server through xmanger, but it is not connecting
yulianto piyut
Valued Contributor

Re: /usr/bin/X11/xhost: unable to open display

1. export DISPLAY to your desktop
# export DISPLAY=x.x.x.x:0.0
2. run xmanager passive
3. try to do xclock to check if it run.
rajesh73
Super Advisor

Re: /usr/bin/X11/xhost: unable to open display

#export DISPLAY=hostname:0.0
#/usr/bin/X11/xclock
Error: Can't open display: 10.8.1.53:0.0
Error: Couldn't find per display information

i tried and than also getting same error

if iam start xhost + from my server it saying
sh:/usr/bin/X11/xhost: unable to open display

Sharma Sanjeev
Respected Contributor

Re: /usr/bin/X11/xhost: unable to open display

Hi

Please give ip not hostname
#export DISPLAY=ip of your windows machine:0.0

and u need to run xmanager also on windows machine

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Sharma Sanjeev
Respected Contributor
Solution

Re: /usr/bin/X11/xhost: unable to open display

Hi

I have assigned points to 0 of 5 responses to my questions.

Please assign points also as per ITRC rules :-)
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
rajesh73
Super Advisor

Re: /usr/bin/X11/xhost: unable to open display

ya iam enter ip only
export DISPLAY=X.X.X.X:0.0

and i tried through xmanger only
rajesh73
Super Advisor

Re: /usr/bin/X11/xhost: unable to open display

pls any one help me
Johnson Punniyalingam
Honored Contributor

Re: /usr/bin/X11/xhost: unable to open display

Hi Rajesh,

You are using linux..?

you can check wether any firewall blocking to your pc ip,

menthods trying to start xhost is correct has mentioned by others,

Thanks
Johnson
Problems are common to all, but attitude makes the difference
rajesh73
Super Advisor

Re: /usr/bin/X11/xhost: unable to open display

no firewall to mys box

iam using hp-ux 11.11 os
V. Nyga
Honored Contributor

Re: /usr/bin/X11/xhost: unable to open display

>#export DISPLAY=hostname:0.0
>#/usr/bin/X11/xclock
>Error: Can't open display: 10.8.1.53:0.0
>Error: Couldn't find per display information


can you 'ping 10.8.1.53'?

Volkmar
*** Say 'Thanks' with Kudos ***