From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: James Cloos Newsgroups: gmane.emacs.help Subject: Re: ssh -X forwarding Date: Mon, 24 Dec 2007 19:22:50 +0000 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1198524255 22939 80.91.229.12 (24 Dec 2007 19:24:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Dec 2007 19:24:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Jan Teichmann Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 24 20:24:26 2007 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 1J6suY-0007ka-Fi for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Dec 2007 20:24:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J6suE-0000Gq-0T for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Dec 2007 14:24:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J6stT-0008OU-Gk for help-gnu-emacs@gnu.org; Mon, 24 Dec 2007 14:23:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J6stR-0008Nl-Gv for help-gnu-emacs@gnu.org; Mon, 24 Dec 2007 14:23:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J6stR-0008Ng-Cq for help-gnu-emacs@gnu.org; Mon, 24 Dec 2007 14:23:17 -0500 Original-Received: from eagle.jhcloos.com ([207.210.242.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J6stR-0005aO-8R for help-gnu-emacs@gnu.org; Mon, 24 Dec 2007 14:23:17 -0500 Original-Received: by eagle.jhcloos.com (Postfix, from userid 10) id 920D04016C; Mon, 24 Dec 2007 19:23:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com; s=eagle; t=1198524192; bh=z/EUfKaPQ3t7ftynTHLln07q21IfOHhIoBWv7aMpc eA=; h=From:To:Cc:Subject:In-Reply-To:References:User-Agent:Face: Copyright:OpenPGP:OpenPGP-Fingerprint:X-Hashcash:X-Hashcash:Date: Message-ID:Lines:MIME-Version:Content-Type; b=J45weXuYddru2levg2jI rw8+VQy5wYID2PEBMaLRxJyJFE6Yz+ewtHm7c7aA8J160E53rgbdJMSbF3TZQIDrfxH a4lL79jPrSrp/aF1uZPE9Hz6UNbWMwApvlm0+ZAnO0ooFsGUQ2HcpxE2oJbrCNFmkJq 0UpudB/0QbW5PXfzU= Original-Received: from lugabout.jhcloos.org (localhost [127.0.0.1]) by lugabout.jhcloos.org (Postfix) with ESMTP id 91368214631; Mon, 24 Dec 2007 19:22:52 +0000 (UTC) In-Reply-To: (Jan Teichmann's message of "Sun, 23 Dec 2007 00:06:09 +0100") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAI1J REFUOE+lU9ESgCAIg64P1y+ngUdxhl5H8wFbbM0OmUiEhKkCYaZThXCo6KE5sCbA1DDX3genvO4d eBQgEMaM5qy6uWk4SfBYfdu9jvBN9nSVDOKRtwb+I3epboOsOX5pZbJNsBJFvmQQ05YMfieIBnYX FK2N6dOawd97r/e8RjkTLzmMsiVgrAoEugtviCM3v2WzjgAAAABJRU5ErkJggg== Copyright: Copyright 2007 James Cloos OpenPGP: ED7DAEA6; url=http://jhcloos.com/public_key/0xED7DAEA6.asc OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6 X-Hashcash: 1:23:071224:help-gnu-emacs@gnu.org::nhqcDry7YjX7SbIw:00000000000000000000000000000000000000137U/ X-Hashcash: 1:23:071224:jan.teichmann@gmail.com::0dqvmlyU9Zg8EWXi:00000000000000000000000000000000000002G2OU Original-Lines: 68 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 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:50312 Archived-At: >>>>> "Jan" == Jan Teichmann writes: Jan> i'm forwarding my emacs session with "ssh -X -C" and it works, but Jan> the emacs forwarding is so slowly. is their a possibility to cache Jan> the data on the client computer, that scrolling and so on gets faster? The best way to speed up X over ssh is to use NX. The nx protocol does a much better job of compressing the X11 stream than zlib can do, and it also does some caching as well. Other than that, and especially if you are using server-side fonts (ie, if you are using any version of emacs other than the unicode2 branch), you could try running in a monochrome visual. Check out the visualClass X keyword in the manpage or info. Perhaps something like this in the ~/.Xdefaults-${HOSTNAME} file on the remote box would do it: emacs.visualClass: TrueColor-1 For ${HOSTNAME} above use whatever the HOSTNAME env var is set to on that box; this will ensure the libX11 there loads that file in when you run anything linked to it. Also, of course, choose a visualClass that your X server supports (see the output of xdpyinfo(1) for those.) Forcing emacs to use a 1 bit visual should reduce the traffic across the network quite a bit when compared to a 16, 24 or 32 bit visual. Finally, if you can, it may be better to use an emacs compiled against the athena toolkit than the GTK toolkit. And you probably also want to turn off the toolbar. So I'd also put: emacs.toolBar: off in the remote's ~/.Xdefaults-${HOSTNAME} file. If you are using the unicode-2 branch (now version 23.0.60), try also adding: emacs.FontBackend: x emacs.font: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1 (but choose your prefered font). The antialiased fonts are great, but the monochrome fonts will be *much* faster across a slow net link. Having said all of that, I just tried it and even though the syntax is correct and xdpyinfo(1) says my server supports both TrueColor and DirectColor in depths 24, 1, 4, 8, 15, 16, 32 only depth 24 actually works for me. [SIGH] I'll post this anyway for the archive, but it looks like you either have to start the server in monochrome mode or use NX. Your distribution probably has packages for NX. Otherwise look at: http://www.nomachine.com/ http://freenx.berlios.de/ http://www.2x.com/terminalserver/ (The latter two are GPL.) -JimC -- James Cloos OpenPGP: 1024D/ED7DAEA6