"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 |
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. |
The correct command to use is:
Code:
xhost local:root |
All times are GMT -5. The time now is 02:55 PM. |