Archer
Archer

Reputation: 5147

Running emacs in server mode so it's possible to connect from remote locations

Is it possible to run emacs in server mode so remote clients can connect from remote locations via network? I'm just looking for the way to run emacs on remote powerful server and edit buffers locally using emacsclient while running compile command remotelly. This looks much better approach then using ssh session. Should not depend on network latency.

Upvotes: 1

Views: 757

Answers (2)

Archer
Archer

Reputation: 5147

I think the best approach is: http://www.emacswiki.org/emacs/TrampMode

Upvotes: 1

zweibaranov
zweibaranov

Reputation: 570

Basing on my comment above I'd recommend the following workflow:

  1. Retrieve the sources you work on to the local directory (via scp or git, whatever)
  2. Introduce the required changed to the code
  3. To compile the code on remote server specify a custom compile-command which will:

    1. Push changed files back to the remote server. E.g.: scp -r my-sources/ [email protected]:my-sources or via git push remote my-dev-branch
    2. Run the compilation command through ssh and show the output. E.g.: ssh [email protected] -C "cd ~/my-sourcesl; make && ./bin/compiled-app"

note: for smooth commands execution through ssh, there is should a configured key-based authentication.

The significant drawback here is that at least it might not run X11 applications correctly (or at all)

Upvotes: 0

Related Questions