Lubuntu Screencast: OpenSSH remote desktop connection with Xnest

In this Screencast I show you how to setup a remote desktop connection with OpenSSH and Xnest.

Video thumbnail. Click to play
Click to play

 

All you need to do is installing xnest onto your OpenSSH server and editing /etc/gdm/custom.conf (if you're using gdm) to allow XDMCP by adding the following lines

[security]
DisallowTCP=false
[xdmcp]
Enable=true

Then restart GDM on your OpenSSH server. (i.e. /etc/init.d/gdm restart) ssh with -X and -C switch (if you like to enable compression) to your OpenSSH server again and open up a nested X-Server. Xnest :1 -ac -geometry 800x480 -once -query localhost. Now you have a fully fledged X-Server running nested on your host. Try to start a window manager or desktop by sending it the right Port zu the nested X-Server (i.e. DISPLAY=:1 startfluxbox)

Comments

But why would we have GDM on our SHELL SERVER?

Sure XDMCP is supported on GDM... but now it was replaced by LXDM. AFAIK LXDM is not planning to support XDMCP Is there any alternative to provide a suitable remote desktop server?

There is always FreeNX

XDMCP is not well supported by the GDM of current ubuntu: https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/408417

Add new comment