The Cube - Assimilating Technology

The Cube

XDMCP

For Humans only


XDMCP Print E-mail
Monday, 26 November 2007 20:40

I have a Linux box hiding away in a cupboard (aptly named by my wife as cubputer), and I connect to it via my lounge ThinStation, using XDMCP

The problem is that when my wife is occupying the desk, where the ThinStation is, I cannot use it, so the only solution is to get the remote desktop connection working from my Gentoo based laptop.

The following page, http://blog.lxpages.com/2007/03/25/remote-desktop-for-linux-reloaded/ lists a few ways to gain remote desktop access. I chose XDMCP, as it is already the system used.

Security reminder:

XDMCP is by nature an insecure beast, so only use it within a trusted network, behind your firewall.  

How I did it: 

My server (cubputer) runs Debian Stable ( since 08 Apr 2007, that means Debian 4.0 'etch' ).
My laptop (DeepThought) runs Gentoo, with  Enlightenment DR17 for the desktop.

 
On the server: 

I am assuming that xorg is already installed and configured, and working, and that you use xdm.

Note - this is really just a rough guide, as I had previously (months ago) done this setup to allow connections from my ThinStation. I may have missed something here, but I don't thinks so. A more complete guide can be found under the XDMCP HOWTO

  1. Install XFontServer: aptitude install xfs
  2. Edit /etc/X11/fs/config using your favourite editor. I like joe: joe /etc/X11/fs/config
    Look for the line 'no-listen = tcp' and hash it out
  3. Restart the XFontServer: /etc/init.d/xfs restart
  4. Edit  /etc/X11/xdm/xdm-config: joe etc/X11/xdm/xdm-config
    Look for the line 'DisplayManager.requestPort: 0' and comment it out
  5. Edit /etc/X11/xorg.conf and add the line:  FontPath "unix/:7100"
  6. Restart xorg


On the Gentoo laptop:

This was pretty simple, thanks mostly to gentoo's brilliant package and dependency management. 

All I had to do was to 'emerge  net-misc/tsclient'  and the job was done (after a few minutes of staring knowingly  at the compile messages zooming past)

Once compiled, and installed just fire up tsclient and select XDMCP from the list of protocols to use, point it towards your server's ip, or dns name, click connect, pray......

 Mine worked 100% first time :)

Last Updated on Friday, 09 January 2009 07:58
 
Share on facebook