all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Pull gui emacs across an ssh connection
@ 2009-04-10 22:17 Harry Putnam
  0 siblings, 0 replies; 3+ messages in thread
From: Harry Putnam @ 2009-04-10 22:17 UTC (permalink / raw)
  To: help-gnu-emacs

I know this subject has come up many times but I'm getting confused by
the google hits more than helped.

For yrs I've connected to remote machines and ran the on host emacs
via ssh connection.  Sometime connecting with with emacs to the remote
host with tramp.  But I've never really tried to make the remote emacs
run in gui form on the local display..  Just using emacs as -nw when
using ssh.

I'm running gentoo linux on a home lan with opensolaris and windows
hosts present.  What variables need to be in place to run the emacs
installed on the remote... and make it appear in gui format on my
local desktop. (I'm not taking about involving windows machines in
this) 

I know about permitting X in ssh_config and sshd_config  or even with
the ssh cmdline -X but as I recall other things need to be adjusted
too.

And too, is it even worthwhile doing, like is it annoyingly slow or
something?  I have gigabit lan in most cases and 10/100 is the slowed
that might come up.  And it is a very low usage lan.

Can someone walk me through that kind of connection?





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

* Re: Pull gui emacs across an ssh connection
       [not found] <mailman.5098.1239401875.31690.help-gnu-emacs@gnu.org>
@ 2009-04-11  2:33 ` Barry Margolin
  2009-04-12  9:43   ` Tim X
  0 siblings, 1 reply; 3+ messages in thread
From: Barry Margolin @ 2009-04-11  2:33 UTC (permalink / raw)
  To: help-gnu-emacs

In article <mailman.5098.1239401875.31690.help-gnu-emacs@gnu.org>,
 Harry Putnam <reader@newsguy.com> wrote:

> I know this subject has come up many times but I'm getting confused by
> the google hits more than helped.
> 
> For yrs I've connected to remote machines and ran the on host emacs
> via ssh connection.  Sometime connecting with with emacs to the remote
> host with tramp.  But I've never really tried to make the remote emacs
> run in gui form on the local display..  Just using emacs as -nw when
> using ssh.
> 
> I'm running gentoo linux on a home lan with opensolaris and windows
> hosts present.  What variables need to be in place to run the emacs
> installed on the remote... and make it appear in gui format on my
> local desktop. (I'm not taking about involving windows machines in
> this) 
> 
> I know about permitting X in ssh_config and sshd_config  or even with
> the ssh cmdline -X but as I recall other things need to be adjusted
> too.

As long as $DISPLAY is set in the window where you run ssh, you 
shouldn't need to do anything else.

> And too, is it even worthwhile doing, like is it annoyingly slow or
> something?  I have gigabit lan in most cases and 10/100 is the slowed
> that might come up.  And it is a very low usage lan.

I did it many years ago on 10 Mbps LANs.  It should be perfectly fine on 
modern 100 meg and gigabit LANs.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***


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

* Re: Pull gui emacs across an ssh connection
  2009-04-11  2:33 ` Barry Margolin
@ 2009-04-12  9:43   ` Tim X
  0 siblings, 0 replies; 3+ messages in thread
From: Tim X @ 2009-04-12  9:43 UTC (permalink / raw)
  To: help-gnu-emacs

Barry Margolin <barmar@alum.mit.edu> writes:

> In article <mailman.5098.1239401875.31690.help-gnu-emacs@gnu.org>,
>  Harry Putnam <reader@newsguy.com> wrote:
>
>> I know this subject has come up many times but I'm getting confused by
>> the google hits more than helped.
>> 
>> For yrs I've connected to remote machines and ran the on host emacs
>> via ssh connection.  Sometime connecting with with emacs to the remote
>> host with tramp.  But I've never really tried to make the remote emacs
>> run in gui form on the local display..  Just using emacs as -nw when
>> using ssh.
>> 
>> I'm running gentoo linux on a home lan with opensolaris and windows
>> hosts present.  What variables need to be in place to run the emacs
>> installed on the remote... and make it appear in gui format on my
>> local desktop. (I'm not taking about involving windows machines in
>> this) 
>> 
>> I know about permitting X in ssh_config and sshd_config  or even with
>> the ssh cmdline -X but as I recall other things need to be adjusted
>> too.
>
> As long as $DISPLAY is set in the window where you run ssh, you 
> shouldn't need to do anything else.
>
>> And too, is it even worthwhile doing, like is it annoyingly slow or
>> something?  I have gigabit lan in most cases and 10/100 is the slowed
>> that might come up.  And it is a very low usage lan.
>
> I did it many years ago on 10 Mbps LANs.  It should be perfectly fine on 
> modern 100 meg and gigabit LANs.

Just adding to what BM wrote. If your connecting to the remote machine
via ssh, you can ensure ssh is configured to allow X11 forwarding. This
will ensure that a correct X display variable is setup so that when you
run a remote X program, its display is sent (forwarded) back to your
local display. Check the ssh manual for more details. 

If your on  a local LAN, the speed should be fine. I use to do this over
a dial-up modem using an X protocol compression system (which use to
require a separate package, but I think X now comes with some support
for running a verson of the protocol that does differential
compression). However, you shouldn't require this on a local LAN as even
10Mbs should be quite sufficient and you more than likely have 100 or
better!

Tim





-- 
tcross (at) rapttech dot com dot au


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

end of thread, other threads:[~2009-04-12  9:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-10 22:17 Pull gui emacs across an ssh connection Harry Putnam
     [not found] <mailman.5098.1239401875.31690.help-gnu-emacs@gnu.org>
2009-04-11  2:33 ` Barry Margolin
2009-04-12  9:43   ` Tim X

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.