LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   "xhost +localhost" a no go (Ubuntu, Debian) (https://www.linuxquestions.org/questions/ubuntu-63/xhost-localhost-a-no-go-ubuntu-debian-394073/)

Malibyte 12-18-2005 01:34 AM

"xhost +localhost" a no go (Ubuntu, Debian)
 
I have a few Debian and Ubuntu machines up, and I seem to have real problems trying to run X apps after doing an su to root, even after "xhost +localhost". The Debian machines seem to allow it if I do "su" rather than "su -", but on this particular Ubuntu Breezy machine I can't get it to work under any circumstances:


rcs@scully:~/Desktop$ xhost +localhost
localhost being added to access control list

rcs@scully:~/Desktop$ su
Password:

root@scully:/home/rcs/Desktop# sh install-crossover-pro-5.0.0.sh
Verifying archive integrity...OK
Uncompressing CrossOver Office Professional..............................................

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Setup requires an X display to run. There is a display variable set, however
you have no permissions to access the X server (:0.0) it points to.
Try running xhost +localhost before su'ing to root.


I'm sure there's a setting in some conf file someplace that I can tweak to get this to work. Can someone give me a clue?

Thanks....Bob

druuna 12-18-2005 07:19 AM

Hi,

It could be that localhost is not used but your computers FQDN/ip.

Try adding the accompanying IP or FQDN:

xhost +192.168.0.0
or
xhost +my.computer.name

You obviously need to change 192.168.0.0/FQDN into your computers IP/name.

Hope this helps.

m_yates 12-18-2005 12:04 PM

The correct command to use is:
Code:

xhost local:root
It works on Debian and Ubuntu the same.


All times are GMT -5. The time now is 02:55 PM.