unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* amacsclient with emacs daemon/server on remote host
@ 2014-08-17 13:29 lee
  0 siblings, 0 replies; 5+ messages in thread
From: lee @ 2014-08-17 13:29 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I'm trying to find out how I could run an instance of emacs on a remote
host and access this instance with emacsclient over the network.

Currently, I'm doing this all the time with the instance of emacs
running on the local host with (server-start) in my ~/.emacs.  I'd like
to do the same, but with emacs running on the remote host.

Is this even possible, and if so, how do I tell the server to listen on
a port for network connections?


-- 
Knowledge is volatile and fluid.  Software is power.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: amacsclient with emacs daemon/server on remote host
       [not found] <mailman.7155.1408283635.1147.help-gnu-emacs@gnu.org>
@ 2016-01-16 16:36 ` kstrempel
  2016-01-16 19:52   ` ken
  0 siblings, 1 reply; 5+ messages in thread
From: kstrempel @ 2016-01-16 16:36 UTC (permalink / raw)
  To: help-gnu-emacs

Am Sonntag, 17. August 2014 15:29:33 UTC+2 schrieb lee:
> Hi,
> 
> I'm trying to find out how I could run an instance of emacs on a remote
> host and access this instance with emacsclient over the network.
> 
> Currently, I'm doing this all the time with the instance of emacs
> running on the local host with (server-start) in my ~/.emacs.  I'd like
> to do the same, but with emacs running on the remote host.
> 
> Is this even possible, and if so, how do I tell the server to listen on
> a port for network connections?
> 
> 
> -- 
> Knowledge is volatile and fluid.  Software is power.

Did you found a way to do that? I'm trying to find a way to connect from OS X to an emacs daemon in my vagrant box. 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: amacsclient with emacs daemon/server on remote host
  2016-01-16 16:36 ` amacsclient with emacs daemon/server on remote host kstrempel
@ 2016-01-16 19:52   ` ken
  2016-01-17  3:53     ` Nick Dokos
  2016-01-17 13:10     ` tomas
  0 siblings, 2 replies; 5+ messages in thread
From: ken @ 2016-01-16 19:52 UTC (permalink / raw)
  To: kstrempel, help-gnu-emacs

On 01/16/2016 11:36 AM, kstrempel@gmail.com wrote:
> Am Sonntag, 17. August 2014 15:29:33 UTC+2 schrieb lee:
>> Hi,
>>
>> I'm trying to find out how I could run an instance of emacs on a remote
>> host and access this instance with emacsclient over the network.
>>
>> Currently, I'm doing this all the time with the instance of emacs
>> running on the local host with (server-start) in my ~/.emacs.  I'd like
>> to do the same, but with emacs running on the remote host.
>>
>> Is this even possible, and if so, how do I tell the server to listen on
>> a port for network connections?
>>
>>
>> --
>> Knowledge is volatile and fluid.  Software is power.
>
> Did you found a way to do that? I'm trying to find a way to connect from OS X to an emacs daemon in my vagrant box.
>

A crazy long time ago I did this, when networks and computers were 
slower and security wasn't so formidable, but it should still be doable 
today... and probably faster.  Essentially your local machine becomes 
and X server, meaning your local machine's display, keyboard, mouse, 
etc. are used when running a command (here, emacs) on the remote 
machine.  Wild guess would be to run locally 'ssh -X -c "emacs 
filename"'.  But you'd likely need to configure X, Xclient, and the 
security bits so you don't get Denials.

I dont know Macs, so that's another game altogether.  I was working with 
Linux on both ends.  Sorry.

Please let us know what you get to work.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: amacsclient with emacs daemon/server on remote host
  2016-01-16 19:52   ` ken
@ 2016-01-17  3:53     ` Nick Dokos
  2016-01-17 13:10     ` tomas
  1 sibling, 0 replies; 5+ messages in thread
From: Nick Dokos @ 2016-01-17  3:53 UTC (permalink / raw)
  To: help-gnu-emacs

ken <gebser@mousecar.com> writes:

> On 01/16/2016 11:36 AM, kstrempel@gmail.com wrote:
>> Am Sonntag, 17. August 2014 15:29:33 UTC+2 schrieb lee:
>>> Hi,
>>>
>>> I'm trying to find out how I could run an instance of emacs on a remote
>>> host and access this instance with emacsclient over the network.
>>>
>>> Currently, I'm doing this all the time with the instance of emacs
>>> running on the local host with (server-start) in my ~/.emacs.  I'd like
>>> to do the same, but with emacs running on the remote host.
>>>
>>> Is this even possible, and if so, how do I tell the server to listen on
>>> a port for network connections?
>>>
>>>
>>> --
>>> Knowledge is volatile and fluid.  Software is power.
>>
>> Did you found a way to do that? I'm trying to find a way to connect from OS X to an emacs daemon in my vagrant box.
>>
>
> A crazy long time ago I did this, when networks and computers were
> slower and security wasn't so formidable, but it should still be
> doable today... and probably faster.  Essentially your local machine
> becomes and X server, meaning your local machine's display, keyboard,
> mouse, etc. are used when running a command (here, emacs) on the
> remote machine.  Wild guess would be to run locally 'ssh -X -c "emacs
> filename"'.  But you'd likely need to configure X, Xclient, and the
> security bits so you don't get Denials.
>
> I dont know Macs, so that's another game altogether.  I was working
> with Linux on both ends.  Sorry.
>
> Please let us know what you get to work.
>
>

About twenty years ago, there was a gnuclient/gnuserver combination that
allowed connections over TCP sockets, written IIRC by Andy Norman, who
also wrote ange-ftp, the precursor of tramp. But slowly, its
capabilities were migrated to the built-in emacsclient/server, which I
believe can now use TCP sockets - for more details, see

C-h v server-use-tcp RET

and

M-x man RET emacsclient RET

for the --server option.

Perhaps

http://stackoverflow.com/questions/12546722/using-emacs-server-and-emacsclient-on-other-machines-as-other-users

will be helpful also: I did not read all of it and I certainly have not
tried anything out.

-- 
Nick




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: amacsclient with emacs daemon/server on remote host
  2016-01-16 19:52   ` ken
  2016-01-17  3:53     ` Nick Dokos
@ 2016-01-17 13:10     ` tomas
  1 sibling, 0 replies; 5+ messages in thread
From: tomas @ 2016-01-17 13:10 UTC (permalink / raw)
  To: help-gnu-emacs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, Jan 16, 2016 at 02:52:23PM -0500, ken wrote:
> On 01/16/2016 11:36 AM, kstrempel@gmail.com wrote:
> >Am Sonntag, 17. August 2014 15:29:33 UTC+2 schrieb lee:
> >>Hi,
> >>
> >>I'm trying to find out how I could run an instance of emacs on a remote
> >>host and access this instance with emacsclient over the network.
> >>
> >>Currently, I'm doing this all the time with the instance of emacs
> >>running on the local host with (server-start) in my ~/.emacs.  I'd like
> >>to do the same, but with emacs running on the remote host.
> >>
> >>Is this even possible, and if so, how do I tell the server to listen on
> >>a port for network connections?
> >>
> >>
> >>--
> >>Knowledge is volatile and fluid.  Software is power.
> >
> >Did you found a way to do that? I'm trying to find a way to connect from OS X to an emacs daemon in my vagrant box.

There are options for the server to use tcp: `server-use-tcp' (since
22.1) and to fix the port used: `server-port' (this one since 24.1.

That said, do consider Tramp mode, which is really, extremely nice.
Just when you visit a file, enter its path as:

  /ssh:my.other.system:/path/to/file

It asks you for a password (or passphrase) and... voilà. Caching,
bookmarks, all sorts of useful things Just Work.

regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlabkrQACgkQBcgs9XrR2kYolgCfZOn7kd//iWLb88Dij5H6GPTy
zMoAn3ydHb7wQrqliPJiNFKMqevTHaNZ
=c7pu
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-01-17 13:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.7155.1408283635.1147.help-gnu-emacs@gnu.org>
2016-01-16 16:36 ` amacsclient with emacs daemon/server on remote host kstrempel
2016-01-16 19:52   ` ken
2016-01-17  3:53     ` Nick Dokos
2016-01-17 13:10     ` tomas
2014-08-17 13:29 lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).