cancel
Showing results for 
Search instead for 
Did you mean: 

xhost +server no display

Fauziah Mahdan
Super Advisor

xhost +server no display

Hi all we are just started the vnc service with comamnd
./vncserver :0 -pn -localhost
then the next command is xhost +serverip
or xhost +serverhostname
The problem is error appear as
unable to open display "".

Pls advice
Fauziah
4 REPLIES
Jeroen Peereboom
Honored Contributor

Re: xhost +server no display

xhost + can only be executed on the commandline of a terminal within the X-environment, usually the terminal you open using a mouse button in the X environment.

What do you try to achieve?

JP
Fauziah Mahdan
Super Advisor

Re: xhost +server no display

I am running the command at unix 11.11.
All the while are ok so I can say we do have x environment here.
Fauziah Mahdan
Super Advisor

Re: xhost +server no display

OK problem solved.
Work together with DBA
She realise env for root don't have
DISPLAY=ip number :0.0
but if we su - oracle and check the env the the info is there.
So go back to root.
Run command
DISPLAY=:0.0
export DISPLAY

then when run xhost +, ok

thanks all
Fauziah Mahdan
Super Advisor

Re: xhost +server no display

thanks