From: Thomas H. <tho...@uc...> - 2002-05-28 11:48:29
|
KaiGro=DFjohann writes: =20 > Ah! Thanks for the clarification. But why is it important to invoke > runemacs from a Cygwin bash? It's clear that this is required for the > ssh agent to work. But I think the ssh agent is not necessary, merely > convenient. I tried to use tramp with ntemacs and cygwin some time ago and didn't = get it to work (but I didn't try all possible methods) - switched to = using emacs on linux on an x server. Taking David Starks-Browning's hints, I succeeded now.=20 But I don't have to run runemacs from the cygwin shell. So I left away setting the emacs bin dir path for cygwin and it worked = fine when starting emacs as usual. my setup: - emacs is set up to use cygwin as a shell (following the instructions = from the cygwin webpage) - ssh is set up to connect without password asking (by adding my public = key to the remote server's authorized_keys file) thx, david, for your doc and kai for your great tool ! tom |
From: Thomas H. <tho...@uc...> - 2002-05-28 13:33:36
|
KaiGro=DFjohann [mailto:Kai.Grossjohann@CS.Uni-Dortmund.DE] writes: > "Thomas Haselberger" <tho...@uc...> writes: >=20 > > I tried to use tramp with ntemacs and cygwin some time ago and > > didn't get it to work (but I didn't try all possible methods) - > > switched to using emacs on linux on an x server. > > > > Taking David Starks-Browning's hints, I succeeded now. >=20 > Can you tell us (me) exactly what did you do? I get confused so > easily when people say they followed instructions X... ok, sorry:=20 I followed the instructions on=20 http://www.starks-browning.com/david/tramp/ except for point 4. (ssh agent usage) nt-emacs 21.2 cygwin 1.3.10 > > But I don't have to run runemacs from the cygwin shell. So I left > > away setting the emacs bin dir path for cygwin and it worked fine > > when starting emacs as usual. >=20 > You mean the setting of the environment variable PATH to include the > directory containing runemacs.exe? yes, exactly. > At first I thought you were referring to the Lisp variable exec-path. > (See how easily I can misunderstand?) >=20 > > my setup: > > - emacs is set up to use cygwin as a shell (following the > > instructions from the cygwin webpage) >=20 > OK. I'll just point to that. What's the URL? http://cygwin.com/faq/faq_4.html#SEC63 > What did you do so that Emacs runs under the ssh-agent?=20 > Or maybe your key does not have a passphrase? It doesn't have a passphrase. that's maybe not what most people want ... maybe I should try ssh-agent. bye,=09 tom |
From: David Starks-B. <st...@eb...> - 2002-05-28 13:45:09
|
[apologies for communicating with multiple different email addresses...] On Tuesday 28 May 02, Thomas Haselberger writes: > > > my setup: > > > - emacs is set up to use cygwin as a shell (following the > > > instructions from the cygwin webpage) > > > > OK. I'll just point to that. What's the URL? > > http://cygwin.com/faq/faq_4.html#SEC63 *sigh* I'm afraid I haven't set up the Cygwin FAQ to permit you to link to specific entries like this, because the precise #SECNN anchor will change as entries are added/removed from the FAQ. Someday I hope to improve this (e.g. using descriptive anchor names), but for now the most specific you can be is something like this: See the Cygwin FAQ entry "How do I run bash as a shell under NT Emacs?" at <http://cygwin.com/faq/>. Sorry about that. David (Cygwin FAQ maintainer) |
From: David Starks-B. <st...@eb...> - 2002-05-28 13:51:17
|
On Tuesday 28 May 02, David Starks-Browning writes: > [apologies for communicating with multiple different email addresses...] > > On Tuesday 28 May 02, Thomas Haselberger writes: > > > > my setup: > > > > - emacs is set up to use cygwin as a shell (following the > > > > instructions from the cygwin webpage) > > > > > > OK. I'll just point to that. What's the URL? > > > > http://cygwin.com/faq/faq_4.html#SEC63 I should go on to say that tramp only needs two of those lines to be able to use C:\cygwin\bin\ssh.exe, if runemacs is not invoked from the Cygwin bash shell: (setq exec-path (cons "C:/cygwin/bin" exec-path)) (setenv "PATH" (concat "C:\\cygwin\\bin;" (getenv "PATH"))) Just listing that might be better than referencing the whole bash shell entry in the Cygwin FAQ. Especially since using the Cygwin bash shell in GNU Emacs doesn't work very well currently. :-( I'll be sure to collect all this on <http://www.starks-browning.com/david/tramp/> and Kai can take it from there. Regards, David |
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (K. ) - 2002-05-28 15:04:33
|
"Thomas Haselberger" <tho...@uc...> writes: > KaiGro=DFjohann [mailto:Kai.Grossjohann@CS.Uni-Dortmund.DE] writes: > >> What did you do so that Emacs runs under the ssh-agent?=20 >> Or maybe your key does not have a passphrase? > > It doesn't have a passphrase. that's maybe not what most people want ... > maybe I should try ssh-agent. Aha. At the very least, we should not assume this setup as the default setup. So people too lazy to type passphrases should be pointed to the agent. And David has done just that. kai --=20 Silence is foo! |
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (K. ) - 2002-05-28 13:10:57
|
"Thomas Haselberger" <tho...@uc...> writes: > I tried to use tramp with ntemacs and cygwin some time ago and > didn't get it to work (but I didn't try all possible methods) - > switched to using emacs on linux on an x server. > > Taking David Starks-Browning's hints, I succeeded now. Can you tell us (me) exactly what did you do? I get confused so easily when people say they followed instructions X... > But I don't have to run runemacs from the cygwin shell. So I left > away setting the emacs bin dir path for cygwin and it worked fine > when starting emacs as usual. You mean the setting of the environment variable PATH to include the directory containing runemacs.exe? At first I thought you were referring to the Lisp variable exec-path. (See how easily I can misunderstand?) > my setup: > - emacs is set up to use cygwin as a shell (following the > instructions from the cygwin webpage) OK. I'll just point to that. What's the URL? > - ssh is set up to connect without password asking (by adding my > public key to the remote server's authorized_keys file) What did you do so that Emacs runs under the ssh-agent? Or maybe your key does not have a passphrase? kai -- Silence is foo! |