Operating System - HP-UX
1826639 Members
3326 Online
109695 Solutions
New Discussion

Re: unable to open display ""

 
Nonie_2008
Advisor

unable to open display ""

Hi all,

i have a problem with vnc server. it can start but when type xhost + , it gives error --> unable to open display "".

can somebody help me?

Thanks

-Nonie
5 REPLIES 5
Torsten.
Acclaimed Contributor

Re: unable to open display ""

Where did you run the command?
The system you are on is not associated with a X-server.
You need to run the command "xhost +" where your x-server is running, e.g. your PC, before you connect to the server.

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!   
Nonie_2008
Advisor

Re: unable to open display ""

Hi..

Thanks for your reply. i run the command at console.. as root. this problem occur today previously no problem.

Thanks

-Nonie
Torsten.
Acclaimed Contributor

Re: unable to open display ""

You have to run the command on the system you want to display the application.
Make sure you didn't run anything like "su" before.

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!   
Nonie_2008
Advisor

Re: unable to open display ""

Hi ..

actually we run fbackup at our server. we have to shutdown all services and databse to have cold backup. now backup already complete and we want to startup all services as usual. for vnc, what we did was:

1. cd /u01/vnc
2. ./vncserver :0 -pn -localhost --> OK
3. xhost +10.1.1.6 --> at this stage it gives the message 'unable to open display"" '

we are at tsm mode at console. but the login is maintain as 'root'

Thanks

-Nonie
Nonie_2008
Advisor

Re: unable to open display ""

Hi Torsten...

Just want to inform u we already solve the problem. when compare to other server we cat teh .profile and see no DISPLAY parameter was set. therefore what we did is

1. DISPLAY=10.1.1.6:0.0
2. export DISPLAY

when check again in env, the DISPLAY parameter is there, and when run again xhost +10.1.1.6 then its ok already. no more error as 'unable to open display'

Thanks anyway at least can give me some ideas to solve.

-Nonie