From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Re: Using tramp to connect to a remote emacs session Date: Thu, 03 Sep 2009 09:06:16 -0700 Message-ID: <4A9FE978.6090000@gmail.com> References: <4A9EFA5A.1030002@gmail.com> <0A289BAA-4358-453E-AB08-9EF9CCA2402E@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1251994421 18122 80.91.229.12 (3 Sep 2009 16:13:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Sep 2009 16:13:41 +0000 (UTC) Cc: Emacs mailing list To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 03 18:13:34 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 1MjEwH-000278-OZ for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Sep 2009 18:13:34 +0200 Original-Received: from localhost ([127.0.0.1]:38295 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjEwH-00084I-3y for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Sep 2009 12:13:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MjEpN-0007aI-FA for help-gnu-emacs@gnu.org; Thu, 03 Sep 2009 12:06:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MjEpI-0007T6-7b for help-gnu-emacs@gnu.org; Thu, 03 Sep 2009 12:06:24 -0400 Original-Received: from [199.232.76.173] (port=36572 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjEpH-0007Sm-Vs for help-gnu-emacs@gnu.org; Thu, 03 Sep 2009 12:06:20 -0400 Original-Received: from mail-pz0-f175.google.com ([209.85.222.175]:64808) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MjEpH-00013G-Fl for help-gnu-emacs@gnu.org; Thu, 03 Sep 2009 12:06:19 -0400 Original-Received: by pzk5 with SMTP id 5so32311pzk.10 for ; Thu, 03 Sep 2009 09:06:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=B2uJJy0V7QzXOWi0ccU/ZBpagx6qwgUAInQdcbHDJQs=; b=j9sNr5L6x4A9qLpAcPuYZknrATeQm2sDOgnEmgBx/ZjxmFzRCt0UVzFI/yKoZBkVhW WOBAqa0fBlxYhxu7YtpnkGC0pzeRpTtVNalbwlsEJBO+jfzilNVjbNfW8+G8w5eirXJ2 LKf4hElJuwJti4Wz5lF0p1TlZktu1SAlBt4Tg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=tM4wvvhCvDUP2SdMzMQj/LD/BdZKEdxSQ1nzdfQJRe714B2bLmBD7DjcqBs6vPVd2z bak7FbNsFONzF//B1WBuaGzn11UoXgNOgk68S6ilkqYzrtZA53GRDYwQ4sgN7Uc/RBsB C/IrOqfSh4fixKqCC73k8FzTNBRP0FxCbobR0= Original-Received: by 10.114.18.17 with SMTP id 17mr5114918war.131.1251993978699; Thu, 03 Sep 2009 09:06:18 -0700 (PDT) Original-Received: from bhishma.kuru (d66-183-43-146.bchsia.telus.net [66.183.43.146]) by mx.google.com with ESMTPS id 23sm28014pzk.0.2009.09.03.09.06.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 03 Sep 2009 09:06:17 -0700 (PDT) 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 In-Reply-To: <0A289BAA-4358-453E-AB08-9EF9CCA2402E@Web.DE> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:67806 Archived-At: 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.