0

I am have a hard time figuring out the best way open files on a headless server. I have never used Emacs tramp feature, and it's syntax to open remote files seems strange as well as I'm wondering how to browse files (e.g., ls) via the emacs shell feature then open file via tramp.

Can I install some sort of basic XWindows functionality on the Debian server (no X Windows currently) to allow me to very simply open a terminal on remote server, browse files then fire up my local emacs?

Sooo confused?

2
  • Isn't ssh enough?
    – terdon
    Feb 28, 2013 at 10:10
  • I strongly suggest you to use tramp. Feb 28, 2013 at 14:28

1 Answer 1

1

I strongly suggest you to use tramp. I edit files with tramp over ssh to headless centos server everyday.

Its syntax is actually very simple. It is just /PROTOCOL:[REMOTEIP]:FILE. For example /ssh:10.0.0.2:/root/todo.org means edit /root/todo.org file on 10.0.0.2 over ssh. You also browse files on remote server with dired. /ssh:10.0.0.2:/root/ will open /root folder in a dired buffer.

Advantages of tramp:

  • You don't need to install emacs (or anything) on server

  • You don't need to synchronize your configuration files across different machines

  • dired and eshell over ssh

You must log in to answer this question.