From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Pull gui emacs across an ssh connection Date: Sun, 12 Apr 2009 19:43:01 +1000 Organization: Rapt Technologies Message-ID: <87fxgeus0q.fsf@lion.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1239532861 670 80.91.229.12 (12 Apr 2009 10:41:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Apr 2009 10:41:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 12 12:42:20 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lsx8i-0007DJ-77 for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Apr 2009 12:42:16 +0200 Original-Received: from localhost ([127.0.0.1]:48335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lsx7J-0000gi-73 for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Apr 2009 06:40:49 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newshub.sdsu.edu!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) Cancel-Lock: sha1:fcjsu4ceIa8gBFYlpYGpWXeH9QE= Original-Lines: 56 Original-NNTP-Posting-Host: 09e32749.news.astraweb.com Original-X-Trace: DXC=jMlQihOEcGW>mgaITZn1@QL?0kYOcDh@ZXa1:j3UXd:WM] List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63688 Archived-At: Barry Margolin writes: > In article , > Harry Putnam 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