Tramp

From Genome Analysis Wiki
Revision as of 13:51, 24 September 2010 by Veeneman (talk | contribs) (Created page with '==What is TRAMP== TRAMP is an emacs plugin that enables remote file i/o over ssh. Note that GUI wrappers of emacs such as [http://www.xemacs.org/ XEmacs] or [http://aquamacs.or…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

What is TRAMP

TRAMP is an emacs plugin that enables remote file i/o over ssh. Note that GUI wrappers of emacs such as XEmacs or Aquamacs can also make use of TRAMP. It stands for `Transparent Remote (file) Access, Multiple Protocol.'

Where to get it

Download the most recent tar.gz from GNU FTP

Installation and Configuration

Paraphrasing the directions here:

  1. Download and install emacs if you haven't already.
  2. Download the most recent TRAMP tar.gz from the GNU FTP site (above).
  3. Choose where you want the TRAMP library files to live. The files seem to be able to work anywhere, after configuration.
  4. Unpack the tar.gz using tar -xvf [filename], to wherever you want the library to go.
  5. Run ./configure --with-contrib inside the unpacked tramp directory.
  6. Run make.
  7. Run make-install.

This was tested on a Mac, so some incompatibility is possible. If there are errors, check the real guide above for details. Now that tramp is installed, you can open files over ssh. In emacs type Control-x-f, and specify the file path as follows:

/ssh:USERNAME@HOSTNAME:FILEPATH

Where USERNAME is you, HOSTNAME is the computer you're accessing, and FILEPATH is the absolute path to your file (starting at /). You should be prompted for a password if the host requires it. Many emacs GUIs also have an "Open Recent" Menu, and this still works with that.