1833883 Members
2203 Online
110063 Solutions
New Discussion

Re: xhost + error

 
anilezfa
Advisor

xhost + error

When ever I type xhost +, I'm getting this message :

$ xhost +
xhost: unable to open display "abc.xyz.net:0.0"

Can some one please guide me on how to setup/start X-server.

Thanks
3 REPLIES 3
ramkumar
Valued Contributor

Re: xhost + error

hi

the problem is you have to set the DISPLAY Variable

from the machine in which you are trying

# export DISPLAY=:0.0
then try
# xhost +
it will work

anilezfa
Advisor

Re: xhost + error

Even after I set the DISPLAY it still give me
xhost: unable to open display ":0.0"

please help.
Sridhar Bhaskarla
Honored Contributor

Re: xhost + error

Hi,

Where are you trying to set 'xhost +' ?. On a workstation or on a PC?. Remember in order to run that command you have to be on the local DISPLAY.

For ex., if you are trying to run some X-application from System A on System B, then logon to System B's display (basically through CDE of the workstation), open two windows, in one window run 'xhost +'. In another window logon ot systemB, run 'export DISPLAY=systemB:0' and then execute your program.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try