Hi,
On Sat, Jan 10, 2009 at 03:19:03PM +0100, Tom Rauchenwald wrote:
> Harry P <rea...@newsguy.com> writes:
> 
> > I'm running a recently installed lenny with default xfce desktop.
> >
> > While working in the X session I often ssh to r...@localhost for a
> > root shell and have one running as I work.  I'd like to be able to
> > open emacs from that root shell and have the emacs instance open in
> > the X session instead of a inside the root shell in console mode as it
> > currently does.
> 
> ssh -X r...@localhost

Why do you use ssh to connect to the local machine? I would propose to
use "su" to switch to a root account. In order to allow root the access
to the X-Server, it is sufficient to set the environment-variables 
DISPLAY=":0"
XAUTHORITY="/home/username/.Xauthority"
, "username" beeing the user who is running the X-session.


Axel


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to