Next: Concept Index, Previous: Bug Reports, Up: Top
tramp is available under the URL below.
There is also a Savannah project page.
The package has been used successfully on GNU Emacs 20, GNU Emacs 21 and GNU Emacs 22, as well as XEmacs 21. XEmacs 20 is more problematic, see the notes in tramp.el. I don't think anybody has really tried it on GNU Emacs 19.
The package was intended to work on Unix, and it really expects a Unix-like system on the remote end (except the smb method), but some people seemed to have some success getting it to work on MS Windows NT/2000/XP GNU Emacs.
There is some informations on tramp on NT at the following URL; many thanks to Joe Stoy for providing the information: ftp://ftp.comlab.ox.ac.uk/tmp/Joe.Stoy/
When tramp does not connect to the remote host, there are two reasons heading the bug mailing list:
tramp needs to recognize the prompt on the remote machine after execution any command. This is not possible, when the prompt contains unknown characters like escape sequences for coloring. This should be avoided on the remote side. See Remote shell setup. for setting the regular expression detecting the prompt.
A special problem is the zsh, which uses left-hand side and right-hand side prompts in parallel. Therefore, it is necessary to disable the zsh line editor on the remote host. You shall add to ~/.zshrc the following command: [ $TERM = "dumb" ] && unsetopt zle.
On some few systems, the implementation of process-send-string
seems to be broken for longer strings. This case, you should
customize the variable tramp-chunksize to 500. For a
description how to determine whether this is necessary see the
documentation of tramp-chunksize.
When you log in to the remote machine, do you see the output of ls in color? If so, this may be the cause of your problems.
ls outputs ANSI escape sequences that your terminal emulator interprets to set the colors. These escape sequences will confuse tramp however.
In your .bashrc, .profile or equivalent on the remote machine you probably have an alias configured that adds the option --color=yes or --color=auto.
You should remove that alias and ensure that a new login does not display the output of ls in color. If you still cannot use filename completion, report a bug to the tramp developers.
tramp uses globbing for some operations. (Globbing means to use the shell to expand wildcards such as `*.c'.) This might create long command lines, especially in directories with many files. Some shells choke on long command lines, or don't cope well with the globbing itself.
If you have a large directory on the remote end, you may wish to execute a command like `ls -d * ..?* > /dev/null' and see if it hangs. Note that you must first start the right shell, which might be /bin/sh, ksh or bash, depending on which of those supports tilde expansion.
The following snippet can be put in your ~/.emacs file. It makes GNU Emacs beep after reading from or writing to the remote host.
(defadvice tramp-handle-write-region
(after tramp-write-beep-advice activate)
" make tramp beep after writing a file."
(interactive)
(beep))
(defadvice tramp-handle-do-copy-or-rename-file
(after tramp-copy-beep-advice activate)
" make tramp beep after copying a file."
(interactive)
(beep))
(defadvice tramp-handle-insert-file-contents
(after tramp-copy-beep-advice activate)
" make tramp beep after copying a file."
(interactive)
(beep))
Sometimes, tramp starts ksh on the remote host for tilde expansion. Maybe ksh saves the history by default. tramp tries to turn off saving the history, but maybe you have to help. For example, you could put this in your .kshrc:
if [ -f $HOME/.sh_history ] ; then
/bin/rm $HOME/.sh_history
fi
if [ "${HISTFILE-unset}" != "unset" ] ; then
unset HISTFILE
fi
if [ "${HISTSIZE-unset}" != "unset" ] ; then
unset HISTSIZE
fi
Shame on you, why did you read until now?
If you just want to have Ange-FTP as default remote files access package, you should apply the following code:
(setq tramp-default-method "ftp")
Unloading tramp can be achieved by applying M-x tramp-unload-tramp. This resets also the Ange-FTP plugins.