[ale] frontend: Dialog ?

Jeff Lightner jlightner at water.com
Mon Oct 8 10:11:16 EDT 2007


If you had an X tunnel working for X windows on the user you initially
logged in as via ssh you can make this available to the root user after
you su  or sudo su:

export XAUTHORITY=~<originaluser>/.Xauthority

That lets it use the tunnel you'd already established for the original
user.

-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
James Sumners
Sent: Monday, October 08, 2007 9:58 AM
To: Atlanta Linux Enthusiasts
Subject: Re: [ale] frontend: Dialog ?

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
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
----------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------



More information about the Ale mailing list