[ale] frontend: Dialog ?

James Sumners james.sumners at gmail.com
Mon Oct 8 09:58:17 EDT 2007


Or, `xhost +root` as the user running X. Then it won't matter how you
assume root.

But that, in my opinion, is overkill for this problem. I think it
would be much better to reconfigure dpkg to use terminal based prompts
(ncurses or otherwise) instead of the X prompt.

On 10/8/07, Michael B. Trausch <mike at trausch.us> wrote:
> On Mon, 2007-10-08 at 07:25 -0400, Paul Cartwright wrote:
> > I just installed this control panel app called debian-srv-cp . when I run it
> > from root I get this:
> > e# debian-srv-cp Xlib: connection to ":0.0" refused by server
> > Xlib: No protocol specified
> >
> > gbx: cannot connect to X server :0.0
> > ---------------------------------
> > I take it this means root can run an X-windows app, but how do you fix it?
> >
>
> Root can run X Window System applications, but only if it has the proper
> environment to do so.  You have that environment, for example, when you
> use sudo, or "sudo bash".  However, if you do "sudo su -", you will not
> be able to run any application that requires the X Window System to run:
>
> mbt at sage:~$ sudo bash -l
> root at sage:~# xeyes
> <it worked>
>
> root at sage:~# exit
> logout
> mbt at sage:~$ sudo su -
> root at sage:~# xeyes
> Error: Can't open display:
> root at sage:~#
>
> Even if I add the DISPLAY variable to the system:
>
> root at sage:~# DISPLAY=:0.0 xeyes
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
>
> Error: Can't open display: :0.0
> root at sage:~#
>
> So, if you want to run X apps as root, and you want a clean root
> environment (like sudo su -), then maybe what you want to do is to put
> together something that will run an X session for root within a window
> on your desktop.  Or just run an X session as root.  But I don't
> recommend that.
>
>         -- Mike
>
> --
> Michael B. Trausch                                   mike at trausch.us
> home: 404-592-5746, 1                                 www.trausch.us
> cell: 678-522-7934                       im: mike at trausch.us, jabber
> pidgin/tb2 for ubuntu feisty: www.trausch.us/pidgin
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>


-- 
James Sumners
http://james.roomfullofmirrors.com/

"All governments suffer a recurring problem: Power attracts
pathological personalities. It is not that power corrupts but that it
is magnetic to the corruptible. Such people have a tendency to become
drunk on violence, a condition to which they are quickly addicted."

Missionaria Protectiva, Text QIV (decto)
CH:D 59



More information about the Ale mailing list