all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: t@fullmeta.me
To: help-gnu-emacs@gnu.org
Subject: local emacsclient to remote emacs server
Date: Mon, 21 Mar 2022 16:15:01 +0000	[thread overview]
Message-ID: <61ef851f-1d3a-4070-b19a-ad6d19813fc4@www.fastmail.com> (raw)

Hi Emacs users.

Is there a way to connect local emacsclient to the remote emacs server? I am trying to figure out a way to leverage emacs for remote dev work, wherein the remote machine is my development server: files are there, processes run there (TRAMP therefore isn't enough). E.g. could be a containerized dev environment.

Kinda surprised that VSCode "just works" for that sort of thing, but perhaps I shouldn't be. After all it runs in the browser.

Yes, ssh + screen or tmux + terminal emacs kinda work, but feels wrong to have all of these intermediate layers when all I really care about is Emacs. I don't use shells much and when I do I prefer to do it from Emacs.

Ideally I wish I could run X version in all its GUI glory, but XQuartz on OSX can't handle hiDPI or I failed to figure a way to get reasonable resolution. Ditto `xpra`. Linux to Linux it actually works just fine.

Let's go with `caveman` version then. We'll start remote daemon and forward its Unix socket to our local machine:
> ssh -L /tmp/foomacs:/run/user/1000/foomacs remote
> emacs --daemon=foomacs --no-desktop

Local machine (OSX in my case):
> emacsclient -s /tmp/foomacs -t
> *ERROR*: could not open file: /dev/ttys007

Should I have reasonably expected this to work? Or was Emacs client/server not built for such usecase? Remote server running Emacs 28. Tried local emacsclient27 and emacsclient28 - same result.

Thanks



             reply	other threads:[~2022-03-21 16:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-21 16:15 t [this message]
2022-03-21 18:22 ` local emacsclient to remote emacs server Eric S Fraga
2022-03-21 20:31 ` Manuel Giraud
2022-03-22 15:22   ` Robert Pluim
2022-03-22 16:03 ` Felix Dietrich
2022-03-22 23:06   ` t
2022-03-23 11:55 ` Manuel Giraud
2022-03-24 10:01   ` t
2022-03-24 18:46     ` Michael Albinus
2022-03-27  3:58     ` Felix Dietrich
2022-03-24 10:09   ` Robert Pluim
2022-03-24 12:32     ` Robert Pluim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=61ef851f-1d3a-4070-b19a-ad6d19813fc4@www.fastmail.com \
    --to=t@fullmeta.me \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.