* Re: ssh -X forwarding
2007-12-22 23:06 ssh -X forwarding Jan Teichmann
@ 2007-12-23 15:16 ` Thierry Volpiatto
2007-12-24 19:22 ` James Cloos
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Thierry Volpiatto @ 2007-12-23 15:16 UTC (permalink / raw)
To: Jan Teichmann; +Cc: help-gnu-emacs
Jan Teichmann <jan.teichmann@gmail.com> writes:
> hello,
> i'm forwarding my emacs session with "ssh -X -C" and it works, but the emacs
> forwarding is so slowly. is their a possibility to cache the data on the
> client computer, that scrolling and so on gets faster?
Hello,
did you try emacsclient -t with an emacs-23.0.50/60(multi-tty)
it's not an X emacs but it's really fast.
--
A + Thierry
Pub key: http://pgp.mit.edu
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ssh -X forwarding
2007-12-22 23:06 ssh -X forwarding Jan Teichmann
2007-12-23 15:16 ` Thierry Volpiatto
@ 2007-12-24 19:22 ` James Cloos
[not found] ` <mailman.5366.1198524201.18990.help-gnu-emacs@gnu.org>
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: James Cloos @ 2007-12-24 19:22 UTC (permalink / raw)
To: Jan Teichmann; +Cc: help-gnu-emacs
>>>>> "Jan" == Jan Teichmann <jan.teichmann@gmail.com> 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 <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <mailman.5366.1198524201.18990.help-gnu-emacs@gnu.org>]
* Re: ssh -X forwarding
2007-12-22 23:06 ssh -X forwarding Jan Teichmann
` (2 preceding siblings ...)
[not found] ` <mailman.5366.1198524201.18990.help-gnu-emacs@gnu.org>
@ 2007-12-26 10:21 ` Jan Teichmann
2008-01-01 18:18 ` Malte Spiess
4 siblings, 0 replies; 7+ messages in thread
From: Jan Teichmann @ 2007-12-26 10:21 UTC (permalink / raw)
To: help-gnu-emacs
<veröffentlicht & per Mail versendet>
hello,
i'm sorry, but i got a new problem. after forwarding the graphical output
via shh -X i couldn't type any german mutated vowel like Ä,Ö,Ü. The emacs
runs in utf8 support and the mutated vowels are displayed correctly. I got
only problems with the input encoding.
so i tried the console output without the -X command and the input works
correctly there.
So why get i this input encoding problems in the graphical forwarding?
thanks a lot
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ssh -X forwarding
2007-12-22 23:06 ssh -X forwarding Jan Teichmann
` (3 preceding siblings ...)
2007-12-26 10:21 ` Jan Teichmann
@ 2008-01-01 18:18 ` Malte Spiess
4 siblings, 0 replies; 7+ messages in thread
From: Malte Spiess @ 2008-01-01 18:18 UTC (permalink / raw)
To: help-gnu-emacs
Jan Teichmann <jan.teichmann@gmail.com> writes:
> hello,
> i'm forwarding my emacs session with "ssh -X -C" and it works, but the emacs
> forwarding is so slowly. is their a possibility to cache the data on the
> client computer, that scrolling and so on gets faster?
I would rather recommend using tramp to solve this kind of a
problem. You should have a look at it, it allows to open files via ssh
on your local emacs.
> thanks and wishing happy christmas
>
> jan
Greetings
Malte
^ permalink raw reply [flat|nested] 7+ messages in thread