help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using tramp to connect to a remote emacs session


From: Suvayu Ali
Subject: Re: Using tramp to connect to a remote emacs session
Date: Thu, 03 Sep 2009 09:06:16 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3

Hi Peter,

On Thursday 03 September 2009 01:02 AM, Peter Dyballa wrote:

Am 03.09.2009 um 01:06 schrieb Suvayu Ali:

So far only reference I found was,

Using emacsclient to make a new frame of a remote Emacs 22 on a local
display
ssh remote_host -f emacsclient --eval ‘”(make-frame-on-display
\”$DISPLAY\”)”’

in the emacswiki[1]. Firstly I don't understand how this works, and
blindly copy-pasting this to the terminal didn't work either. Some
help would be greatly appreciated. :)


Ssh opens a connection to remote_host and logs you in. The option -f
puts ssh into the background allowing to launch an X client. This one is
emacsclient, which is asked to evaluate some Lisp. This Lisp code is
make-frame-on-display, which makes GNU Emacs open (create) a new frame
on the specified screen as given by the environment variable DISPLAY. On
the remote host DISPLAY should point to your local screen and its X
server. So the remote GNU Emacs daemon or server will open a frame as an
X client of your local display's X server and communicate with it via
the SSH tunnel.


If this does not work you can start to debug ssh, but particularly allow
(trusted) X11 forwarding in the configuration of the SSH server on the
remote host. Your local X server must be informed to accept connections
from the remote host.


Thanks for the very clear explanation Pete. :) I had a hunch it is something like X-forwarding. I don't really like to do X-forwarding, the interface is usually very unresponsive. I would rather go with `emacs -nw'.

Thanks for the reply though. ^_^

--
Suvayu

Open source is the future. It sets us free.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]