On Sat, Jan 10, 2009 at 03:36:33PM +0100, Axel Freyn wrote: > 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.
In other words: aptitude install sux Menomonic: X as root sux -- Tzafrir Cohen | tzaf...@jabber.org | VIM is http://tzafrir.org.il | | a Mutt's tzaf...@cohens.org.il | | best ICQ# 16849754 | | friend -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org