Michael Albinus | 1 Feb 11:36 2009
Picon
Picon

Tramp 2.1.15

The following message is a courtesy copy of an article
that has been posted to gnu.emacs.sources as well.

Hello,

The Tramp team is happy to announce the release of Tramp 2.1.15.  This
is mainly a bug fix release.  For production systems, it is recommended
to upgrade to this version.

Tramp is a remote file editing package for GNU Emacs and XEmacs.  Tramp
uses different methods like ssh or scp to access files on remote hosts
as if they were local files.  Access to the remote file system for
editing files, version control, and directory editing are transparently
enabled.

The GNU Emacs CVS repository is synchronized with this code.  Due to
license problems, the XEmacs package repository is not updated.

The download files are located at ftp://ftp.gnu.org/gnu/tramp/

Tramp's homepage is http://www.gnu.org/software/tramp/ (for GNU Emacs)
or http://www.gnu.org/software/tramp/tramp-xemacs.html (for XEmacs),
respectively.

Best regards, Michael.
Michael Albinus | 6 Feb 17:44 2009
Picon
Picon

Tramp and GVFS

Hi,

I have added a new package tramp-gvfs.el to the CVS repository. The
major new functionality are the new connection methods "dav", "davs",
and "obex".

Since the implementation is based on GVFS and D-Bus, GNU Emacs 23.0.90
is a precondition. I have tested it under Ubuntu 8.10; but it shall
run on other systems as well.

Read the commentary section about the usage details.

If would be nice, if I could get feedback about.

Best regards, Michael.
Rolando Pereira | 18 Feb 18:28 2009
Picon

Don't send "exec" command on login

Hello,

I need to connect to a server X that I can only connect after connecting 
to another server Y first.

As I understand from reading the documentation, I can do multi-hops 
using proxies. The problem is that the Y server has a weird shell that 
only accepts the following commands:
ssh, telnet, who, last, passwd, help, version, quit, exit, and logout

So when tramp trys to run tramp-open-connection-setup-interactive-shell 
and send the string "exec env ENV='' PROMPT_COMMAND='' PS1='$ ' PS2='' 
PS3='' %s" it hangs.

If I try to change that string to "ssh X", it works, but since the shell 
at Y can't add the server key to the known_hosts file, I have to type 
and addicional "yes" (because of the "Are you sure you want to continue 
connecting (yes/no)?") plus send the password again.

I tried to place two tramp-send-command at 
tramp-open-connection-setup-interactive-shell, one for "ssh X" and 
another for "yes", but that doesn't seem to work (it only runs the "ssh 
X" and it seems that it doesn't run the second command).

Is there any way to connect to the server X? I think that since 
multi-hops uses the tramp-open-connection-setup-interactive-shell they 
are not the answer in this case. Am I wrong?
Michael Albinus | 18 Feb 22:22 2009
Picon
Picon

Re: Don't send "exec" command on login

Rolando Pereira <finalyugi <at> sapo.pt> writes:

> Hello,

Hi,

> I need to connect to a server X that I can only connect after
> connecting to another server Y first.
>
> As I understand from reading the documentation, I can do multi-hops
> using proxies. The problem is that the Y server has a weird shell that
> only accepts the following commands:
> ssh, telnet, who, last, passwd, help, version, quit, exit, and logout
>
> So when tramp trys to run
> tramp-open-connection-setup-interactive-shell and send the string
> "exec env ENV='' PROMPT_COMMAND='' PS1='$ ' PS2='' PS3='' %s" it
> hangs.
>
> If I try to change that string to "ssh X", it works, but since the
> shell at Y can't add the server key to the known_hosts file, I have to
> type and addicional "yes" (because of the "Are you sure you want to
> continue connecting (yes/no)?") plus send the password again.

You should only need to send the "ssh X" command. The handling of the
"Are you sure ..." dialogue shall happen via `tramp-process-actions'.

Which Tramp/Emacs versions are you using? Could you, please, send me the
traces with level 6?

(Continue reading)

Jeremy Zawodny | 18 Feb 22:44 2009

Making TRAMP place nice with desktop-save-mode?

Has anyone hacked up something so that desktop-save-mode can save TRAMP buffers as well as emacs remembers local files I was editing?

Thanks,

Jeremy

_______________________________________________
Tramp-devel mailing list
Tramp-devel <at> gnu.org
http://lists.gnu.org/mailman/listinfo/tramp-devel
Rolando Pereira | 18 Feb 23:31 2009
Picon

Re: Don't send "exec" command on login

Em 18-02-2009 21:22, Michael Albinus escreveu:
> Rolando Pereira<finalyugi <at> sapo.pt>  writes:
>
>> I need to connect to a server X that I can only connect after
>> connecting to another server Y first.
>>
>> As I understand from reading the documentation, I can do multi-hops
>> using proxies. The problem is that the Y server has a weird shell that
>> only accepts the following commands:
>> ssh, telnet, who, last, passwd, help, version, quit, exit, and logout
>>
>> So when tramp trys to run
>> tramp-open-connection-setup-interactive-shell and send the string
>> "exec env ENV='' PROMPT_COMMAND='' PS1='$ ' PS2='' PS3='' %s" it
>> hangs.
>>
>> If I try to change that string to "ssh X", it works, but since the
>> shell at Y can't add the server key to the known_hosts file, I have to
>> type and addicional "yes" (because of the "Are you sure you want to
>> continue connecting (yes/no)?") plus send the password again.
>
> You should only need to send the "ssh X" command. The handling of the
> "Are you sure ..." dialogue shall happen via `tramp-process-actions'.
>
> Which Tramp/Emacs versions are you using? Could you, please, send me the
> traces with level 6?
>
> Best regards, Michael.
>
>

I knew I had forgotten something. Tramp's version is 2.1.15-pre and 
Emacs' version is 23.0.60.1.

The following traces were done using the string "ssh riff.fe.up.pt" 
instead of "exec env ENV='' PROMPT_COMMAND='' PS1='$ ' PS2='' PS3='' %s" 
in the line 5945 of the file tramp.el (in the function 
tramp-open-connection-setup-interactive-shell).

The *debug tramp/telnet ei08150 <at> tcpgate.fe.up.pt* buffer:
http://rolando.do.sapo.pt/debug_tramp_telnet.txt

The *tramp/telnet ei08150 <at> tcpgate.fe.up.pt* buffer:
http://rolando.do.sapo.pt/tramp_telnet.txt

Also, the first server (tcpgate.fe.up.pt) is connected using telnet and 
only the second using ssh.
Adrian Phillips | 19 Feb 09:51 2009
Picon

Re: Making TRAMP place nice with desktop-save-mode?

>>>>> "Jeremy" == Jeremy Zawodny <Jeremy <at> Zawodny.com> writes:

    Jeremy> Has anyone hacked up something so that desktop-save-mode
    Jeremy> can save TRAMP buffers as well as emacs remembers local
    Jeremy> files I was editing?

I have wondered that myself on occasions - my elisp skills are
somewhat basic so I've currently not invested the time to see what is
required. Perhaps Michael will have more idea.

Sincerely,

Adrian Phillips

--

-- 
Who really wrote the works of William Shakespeare ?
http://www.pbs.org/wgbh/pages/frontline/shakespeare/
Michael Albinus | 19 Feb 16:18 2009
Picon
Picon

Re: Making TRAMP place nice with desktop-save-mode?

Jeremy Zawodny <Jeremy <at> Zawodny.com> writes:

Hi,

> Has anyone hacked up something so that desktop-save-mode can save TRAMP
> buffers as well as emacs remembers local files I was editing?

I don't use desktop-save-mode. However, the customer option
desktop-files-not-to-save looks promising:

;; Skip tramp and ange-ftp files
(defcustom desktop-files-not-to-save
  "^/[^/:]*:"
  "Regexp identifying files whose buffers are to be excluded from saving."
  :type 'regexp
  :group 'desktop)

> Thanks,
>
> Jeremy

Best regards, Michael.
Thierry Volpiatto | 19 Feb 18:53 2009
Picon

Re: Making TRAMP place nice with desktop-save-mode?

Michael Albinus <michael.albinus <at> gmx.de> writes:

> Jeremy Zawodny <Jeremy <at> Zawodny.com> writes:
>
> Hi,
>
>> Has anyone hacked up something so that desktop-save-mode can save TRAMP
>> buffers as well as emacs remembers local files I was editing?
>
> I don't use desktop-save-mode. However, the customer option
> desktop-files-not-to-save looks promising:
>
> ;; Skip tramp and ange-ftp files
> (defcustom desktop-files-not-to-save
>   "^/[^/:]*:"
>   "Regexp identifying files whose buffers are to be excluded from saving."
>   :type 'regexp
>   :group 'desktop)

This never worked for me, desktop keep saving tramp buffer even with
that.

So i wrote this code:

,----
| (defun tv-list-tramp-buffer-file-name ()
|   (let* ((desktop-info-list (mapcar #'desktop-buffer-info (buffer-list)))
|          (tramp-buf-list (loop for i in desktop-info-list
|                             if (and (listp i)
|                                     (stringp (car (nth 8 i)))
|                                     (string-match "^/su:.*\\|^/sudo:.*\\|^/ssh:.*" (car (nth 8 i))))
|                             collect (nth 2 i))))
|     tramp-buf-list))
| 
| (add-hook 'desktop-save-hook #'(lambda ()
|                                  (let ((del-buf-list
|                                         (tv-list-tramp-buffer-file-name)))
|                                    (dolist (i del-buf-list)
|                                      (kill-buffer i)))))
`----

It work fine here.

--

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France
Eric S. Johansson | 20 Feb 22:22 2009

editing as someone other than yourself

is there a way in tramp to access a remote machine with your own account and
then sudo?  I've been looking through the documentation and the sudo transport
directive only seems to work locally

Gmane