Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get the contents of a buffer remotely?

11 views
Skip to first unread message

Steffen A. Jakob

unread,
Aug 30, 1996, 3:00:00 AM8/30/96
to

Hi all!

Last night I work remotely via my modem on my workstation.
By accident I removed an important file. I knew that
the contents of this file was still in a buffer of an
xemacs running on the machine.

Is there a way to get the contents of a buffer without
having actually "graphically" access to the xemacs client?

BTW: The OS running on the computer is Linux 2.0.15.

Best wishes,
Steffen.
--
Steffen A. Jakob |"Sorgfaeltige Planung ist der
s...@gams.at | Schluessel zu einem sicheren und
+43 1 8176230-12 | zuegigen Reiseverlauf"
http://www.gams.at/~saj/ |(Odysseus)

Message has been deleted

Georg Wiegand

unread,
Aug 31, 1996, 3:00:00 AM8/31/96
to

>>>>> "S" == Steffen A Jakob <s...@elias.gams.co.at> writes:

S> Hi all!
S> Last night I work remotely via my modem on my workstation.
S> By accident I removed an important file. I knew that
S> the contents of this file was still in a buffer of an
S> xemacs running on the machine.

S> Is there a way to get the contents of a buffer without
S> having actually "graphically" access to the xemacs client?

If the important buffer is already saved to disk, use 'rcp'
(needs '~/.rhosts') or any terminal-programm (kermit /
seyon / minicom).

If not, the remote emacs has started it's server(*) and you
have graphically access to your local-host (X11 running),
probably this may work (untested):

- rlogin <remote-host>
- export DISPLAY="<local-host>:0.0"
- emacsclient(*) <some-file>
- C-x b <desired-buffer>
- C-x C-s <local-host:/path/to/file>

(*): actually Xemacs-equivalent

Has anybody tried this? I didn't ever use Xemacs, so i don't
know much about it's differences comparing to emacs
(emacsclient/gnusclient). And i'm not shure about the
synthax of the last command's filename.

Just an idea.

Bye,
-george
--
Sodd's Second Law:
Sooner or later, the worst possible set of circumstances is
bound to occur.


Asif

unread,
Dec 20, 2012, 5:27:30 PM12/20/12
to
I have tried the following on Ubuntu to be able to connect emacsclient to emacs server and display emacsclient via remote X11 display. It works. One problem is the X11 remote access latency.

1) Setup X11 remote display on CLIENT and SERVER:

/etc/X11//etc/X11/xinit/xserverrc:

#!/bin/sh
#exec /usr/bin/X -nolisten tcp "$@"
exec /usr/bin/X "$@"

/etc/gdm/custom.conf: (I believe you need the blank lines.)
[xdmcp]

[chooser]

[security]
DisallowTCP=false

[debug]

2) On your CLIENT & SERVER restart gdm: sudo service gdm restart

3) On your SERVER do:

xhost +CLIENT ;# You don't need this. I did this for remote X11 access both ways.
emacs ;# Or you can start it as a daemon with the cmdline arg "--daemon".
M-x server-start

4) On your CLIENT do:

xhost +SERVER ;# I setup remote X11 access both ways.
ssh username@SERVER
emacsclient -d CLIENT:0.0

5) On CLIENT you will see emacs window which will be connected to emacs-server on SERVER.
Message has been deleted
0 new messages