Tips Linux Explorers   All Things Linux Forum   Great Linux Links   LinuxClues.com   Hometown    



XLIB ERROR


Some people prefer a GUI based text editor to edit their config files as root, other people are comfortable with Vi or emacs and for them the next problem does not exist.
If, when starting an editor as "su", you get the following error message in the console:

QUOTE=Console
xlib: connection to 0.0 refused by server
xlib: no protocol specified


To fix this problem the solution is simple, give the following commands:

(as normal user)

CODE
$ xhost +

And (as root)

CODE
# set DISPLAY=localhost:0.0


In some extreme cases the error returns after a reboot. In that case making a little bash-script for the "user command" and putting it in the ~/.kde/Autostart directory. Next to that, adding the "root command" at the end of the /etc/rc.d/rc.local file will do the trick at every next boot.



Bruno


-- Mar 26 2005 ( Revised Dec 13 2005 ) --


Tips Linux Explorers   All Things Linux Forum   Great Linux Links   LinuxClues.com   Hometown