UPDATE: this post which describes a more modern approach using xming which is a far better X server than cygwin.
Retracing earlier steps I find Ubunto works as a headless X box, running programs while displaying remotely on a windows 2000 pc (X windows has the definitions of 'client' and 'server' randomised).
Here are the steps it takes to do this, rationalised from what I wrote before:
- Install Cygwin on the windows box. In particular, install the openssh and X11 base packages.
-
Edit the sshd_config file on the remote server and make sure this is set:
and restart sshd. On my Ubuntu this was how it was already set up.
X11Forwarding yes
-
on the local pc run the cygwin command startxwin.bat. It is buried in:
where <cygwin base dir> is wherever you installed cygwin. This should bring up a window with an X desktop in it.
<cygwin base dir>\usr\X11R6\bin\startxwin.bat
-
from a terminal window on the X desktop, run an ssh command of the form:
the -X tells ssh to do magic X port forwarding.
ssh -X -l <username> <host address>
-
in the new ssh session run an X program, e.g.:
xterm &
- and away you go
I tried running Synaptic Package Manager from this, i.e.
sudo synaptic &
and it worked, a bit sluggishly, until it got to the point where I tried to accept changes and install packages, where it died with an X error. It did this twice so it is probably a deep X problem. I will have to stick with dselect


This article gets many google hits for 'Ubuntu sshd'. I am not sure what precisely people are searching for but my experiences with sshd in Ubuntu have been very simple and not worth commenting on. I just installed open-sshd and the ssh client packages and that was it, it Just Worked.
Tips for using ssh:
More of my ssh experience.
Peter