Skip to content

Question of the Day - 15 Sept. 2007

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

  1. Gordon

    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.

    Posted on 16-Sep-07 at 9:46 am | Permalink
  2. edvard

    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

    Posted on 17-Sep-07 at 1:15 pm | Permalink
  3. 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.

    Posted on 17-Sep-07 at 3:13 pm | Permalink

Post a Comment

Your email is never published nor shared.