Re: howto make root emacs open in X

2009-01-11 Thread Paul E Condon
On Mon, Jan 12, 2009 at 12:50:00PM +1100, Alex Samad wrote: > On Sun, Jan 11, 2009 at 03:38:30PM -0700, Paul E Condon wrote: > > On Sun, Jan 11, 2009 at 12:48:48PM +0900, Osamu Aoki wrote: > > > On Sat, Jan 10, 2009 at 04:04:03PM -0600, Harry P wrote: > > > > Osamu Aoki writes: > > > > > On Sat, J

Re: howto make root emacs open in X

2009-01-11 Thread Alex Samad
On Sun, Jan 11, 2009 at 03:38:30PM -0700, Paul E Condon wrote: > On Sun, Jan 11, 2009 at 12:48:48PM +0900, Osamu Aoki wrote: > > On Sat, Jan 10, 2009 at 04:04:03PM -0600, Harry P wrote: > > > Osamu Aoki writes: > > > > On Sat, Jan 10, 2009 at 09:26:07AM -0600, Harry P wrote: > > > >> Axel Freyn w

Re: howto make root emacs open in X

2009-01-11 Thread Paul E Condon
On Sun, Jan 11, 2009 at 12:48:48PM +0900, Osamu Aoki wrote: > On Sat, Jan 10, 2009 at 04:04:03PM -0600, Harry P wrote: > > Osamu Aoki writes: > > > On Sat, Jan 10, 2009 at 09:26:07AM -0600, Harry P wrote: > > >> Axel Freyn writes: > > >> > Why do you use ssh to connect to the local machine? I wou

Re: howto make root emacs open in X

2009-01-11 Thread Paul E Condon
On Sat, Jan 10, 2009 at 09:26:07AM -0600, Harry P wrote: > Axel Freyn writes: > > > Why do you use ssh to connect to the local machine? I would propose to > > To make use of the ssh-agent and circumvent typing the password every > time I want a root shell. > Another approach to avoiding passwo

Re: howto make root emacs open in X

2009-01-11 Thread Sven Joachim
On 2009-01-11 16:40 +0100, Martin wrote: > On Sat, Jan 10, 2009 at 03:19:03PM +0100, Tom Rauchenwald wrote: >> I don't emacs as root, i use tramp... simply open a file you want to >> open as root with /sudo:: or /su:: prefixed. You will be prompted for a >> password, and can then edit the file fro

Re: howto make root emacs open in X

2009-01-11 Thread Martin
On Sat, Jan 10, 2009 at 03:19:03PM +0100, Tom Rauchenwald wrote: > I don't emacs as root, i use tramp... simply open a file you want to > open as root with /sudo:: or /su:: prefixed. You will be prompted for a > password, and can then edit the file from your user's emacs. I try this but it does no

Re: howto make root emacs open in X

2009-01-11 Thread Osamu Aoki
Hi, On Sun, Jan 11, 2009 at 02:07:38AM -0600, Harry P wrote: > Osamu Aoki writes: > > > Hmmm... you must have set up passwordless SSH to root. Come to think of ... passwordless SSH is quite secure. I was tired :-) > I hope this sshd > > is not accessible from Internet. You may be attacked

Re: howto make root emacs open in X

2009-01-11 Thread Harry P
Osamu Aoki writes: > Hmmm... you must have set up passwordless SSH to root. I hope this sshd > is not accessible from Internet. You may be attacked easily. > > You can set sudo not to request password to become root too. (Setting > this up like this also makes your user's system less secure bu

Re: howto make root emacs open in X

2009-01-10 Thread Osamu Aoki
On Sat, Jan 10, 2009 at 04:04:03PM -0600, Harry P wrote: > Osamu Aoki writes: > > On Sat, Jan 10, 2009 at 09:26:07AM -0600, Harry P wrote: > >> Axel Freyn writes: > >> > Why do you use ssh to connect to the local machine? I would propose to > > Point of Axel is use of SSH wastes CPU resource whil

Re: howto make root emacs open in X

2009-01-10 Thread Harry P
Osamu Aoki writes: > On Sat, Jan 10, 2009 at 09:26:07AM -0600, Harry P wrote: >> Axel Freyn writes: >> >> > Why do you use ssh to connect to the local machine? I would propose to >> >> I have no security worries for the desktop as this is a home machine. > > Point of Axel is use of SSH wastes

Re: howto make root emacs open in X

2009-01-10 Thread Axel Freyn
On Sun, Jan 11, 2009 at 01:10:09AM +0900, Osamu Aoki wrote: > On Sat, Jan 10, 2009 at 09:26:07AM -0600, Harry P wrote: > > Axel Freyn writes: > > > > > Why do you use ssh to connect to the local machine? I would propose to > > > > I have no security worries for the desktop as this is a home mach

Re: howto make root emacs open in X

2009-01-10 Thread Osamu Aoki
On Sat, Jan 10, 2009 at 09:26:07AM -0600, Harry P wrote: > Axel Freyn writes: > > > Why do you use ssh to connect to the local machine? I would propose to > > I have no security worries for the desktop as this is a home machine. Point of Axel is use of SSH wastes CPU resource while gaining noth

Re: howto make root emacs open in X

2009-01-10 Thread Osamu Aoki
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 writes: > > > > > I'm running a recently installed lenny with default xfce desktop. > > > > > > While working in the X session I often ssh to r...@local

Re: howto make root emacs open in X

2009-01-10 Thread Harry P
Axel Freyn writes: > Why do you use ssh to connect to the local machine? I would propose to To make use of the ssh-agent and circumvent typing the password every time I want a root shell. I have in .inputrc "\M-s": "ssh r...@localhost" So by typing alt-s I get a shell cmd that when executed

Re: howto make root emacs open in X

2009-01-10 Thread Tzafrir Cohen
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 writes: > > > > > I'm running a recently installed lenny with default xfce desktop. > > > > > > While working in the X session I often ssh to r...@local

Re: howto make root emacs open in X

2009-01-10 Thread Axel Freyn
Hi, On Sat, Jan 10, 2009 at 03:19:03PM +0100, Tom Rauchenwald wrote: > Harry P 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

Re: howto make root emacs open in X

2009-01-10 Thread Harry P
Tom Rauchenwald writes: > Harry P 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 h

Re: howto make root emacs open in X

2009-01-10 Thread Tom Rauchenwald
Harry P 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 > t