From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Using tramp to connect to a remote emacs session Date: Thu, 3 Sep 2009 10:02:50 +0200 Message-ID: <0A289BAA-4358-453E-AB08-9EF9CCA2402E@Web.DE> References: <4A9EFA5A.1030002@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1251965319 21845 80.91.229.12 (3 Sep 2009 08:08:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Sep 2009 08:08:39 +0000 (UTC) Cc: Emacs mailing list To: Suvayu Ali Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 03 10:08:32 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 1Mj7Mt-00053E-0Y for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Sep 2009 10:08:31 +0200 Original-Received: from localhost ([127.0.0.1]:34942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mj7Ms-0007qS-EY for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Sep 2009 04:08:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mj7LA-0006kI-SG for help-gnu-emacs@gnu.org; Thu, 03 Sep 2009 04:06:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mj7L6-0006iR-46 for help-gnu-emacs@gnu.org; Thu, 03 Sep 2009 04:06:44 -0400 Original-Received: from [199.232.76.173] (port=37999 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mj7L5-0006iN-Vg for help-gnu-emacs@gnu.org; Thu, 03 Sep 2009 04:06:40 -0400 Original-Received: from fmmailgate03.web.de ([217.72.192.234]:48234) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mj7L5-0003BC-Ct for help-gnu-emacs@gnu.org; Thu, 03 Sep 2009 04:06:39 -0400 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate03.web.de (Postfix) with ESMTP id A6DD81121E1E0; Thu, 3 Sep 2009 10:02:58 +0200 (CEST) Original-Received: from [91.35.198.183] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (WEB.DE 4.110 #314) id 1Mj7HW-0000s0-00; Thu, 03 Sep 2009 10:02:58 +0200 In-Reply-To: <4A9EFA5A.1030002@gmail.com> X-Mailer: Apple Mail (2.753.1) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX19AFZXmK0vCK07xd03HQOi8/zWp9ZPiYIiH11Bp C6YNtSp0TEel6mR3tN2N+IJ0mPl85pu2fLJa1hvKyk45Xz3/Sg O5UxMTtACN2JwuoTxGag== X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:67786 Archived-At: 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 =20 >> local display >> ssh remote_host -f emacsclient --eval =91=94(make-frame-on-display =20= >> \=94$DISPLAY\=94)=94=92 > > in the emacswiki[1]. Firstly I don't understand how this works, and =20= > blindly copy-pasting this to the terminal didn't work either. Some =20 > help would be greatly appreciated. :) Ssh opens a connection to remote_host and logs you in. The option -f =20 puts ssh into the background allowing to launch an X client. This one =20= is emacsclient, which is asked to evaluate some Lisp. This Lisp code =20 is make-frame-on-display, which makes GNU Emacs open (create) a new =20 frame on the specified screen as given by the environment variable =20 DISPLAY. On the remote host DISPLAY should point to your local screen =20= and its X server. So the remote GNU Emacs daemon or server will open =20 a frame as an X client of your local display's X server and =20 communicate with it via the SSH tunnel. If this does not work you can start to debug ssh, but particularly =20 allow (trusted) X11 forwarding in the configuration of the SSH server =20= on the remote host. Your local X server must be informed to accept =20 connections from the remote host. -- Greetings Pete UNIX is user friendly, it's just picky about who its friends are.