Asif
2012-12-20 22:27:30 UTC
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 ***@SERVER
emacsclient -d CLIENT:0.0
5) On CLIENT you will see emacs window which will be connected to emacs-server on SERVER.
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 ***@SERVER
emacsclient -d CLIENT:0.0
5) On CLIENT you will see emacs window which will be connected to emacs-server on SERVER.