What are some ways to allow root to open a window on your display? If you don’t, you’ll get a cannot connect to X server or the even more mysterious Xlib: connection to ":0.0" refused by server error.
What are some ways to allow root to open a window on your display? If you don’t, you’ll get a cannot connect to X server or the even more mysterious Xlib: connection to ":0.0" refused by server error.
3 Comments
sux — it’s hard to find a useful webpage for it since people use it instead of “sucks”, but that’s the only thing I know of.
Sux Homepage:
http://fgouget.free.fr/sux/sux-readme.shtml
And Gentoo’s doc page on running X as super user (god bless ‘em)
http://mirror.eacoss.org/documentation/gentoo/su-x.html
So it looks like Kdesu is another solution, although you can’t run console applications.
Ubuntu favors gksudo, and it works well. Mostly for running Synaptic with root privilege.
Homepage for the gksu library:
http://www.nongnu.org/gksu/
Ubuntu HowTo page:
http://ubuntulinuxhowto.blogspot.com/2006/06/root-access-with-sudo-and-gksudo.html
Obligatory man page:
http://www.penguin-soft.com/penguin/man/1/gksu.html
You can also just type in ‘xhost +’ from the user’s commandline to allow anyone (and anything from anywhere!) to display a X window on your monitor. Or, to limit it a little bit, ‘xhost +local:local’ only allows local programs to show up.
Post a Comment