My notes on getting Xfree86 to run under Win32
These notes are incomplete. If you have anything worthwile to add, feel free to send me mail.
With the release of the Services For Unix toolkit by Microsoft, I recommend the MS X server over the cygwin one. Your mileage may vary.
Prerequisites
- Microsoft Windows 2000, Microsoft Windows NT4, Microsoft Windows 98 or Microsoft Windows ME (I have only tested with Windows 2000)
- Cygwin library installation (discussed below)
- Xfree86 Win32 port (discussed below)
Downloading the interesting stuff
I assume you already have downloaded and installed Windows.
To download and install the required parts of the Cygwin packages, some steps are necessary :
- Download and run setup.exe from http://sources.redhat.com/cygwin/
- Select the "download only" or "install from the internet" feature. I recommend the "download only" feature for easy reinstallation even if your internet access is broken.
- Now comes an ugly part, as the setup utility will always try to bring you the full installation, which takes a long time to download and is unnecessary and contains some stuff you might not want on Windows. I deselected all but the following packages :
- tar-1.13.19-1 (unnecessary but nice to have)
- wget-1.6-1 (unnecessary but nice to have)
- gzip-1.3-1(unnecessary but nice to have)
- man-1.5g-2 (unnecessary but nice to have)
- mingw-20010424-1 (unnecessary but nice to have)
- sh-utils-2.0-2
- zlib-1.1.3-6
- ncurses-5.2-5
- Now, if you haven't already installed the stuff directly from the internet, start the setup.exe again, and install the stuff. The proposed default is c:/cygwin, I chose d:/Programme/cygwin as the cygwin base directory, because all my programs go under D:/Programme/.
- You might want to add the path to the cygwin /bin/ directory (default would be c:\cygwin\bin, in my case, it's d:\Programme\cygwin\bin) to your PATH environment and possibly reboot to make the environment current in all your (future) console sessions,
- A small test drive by running bash and having a look around is now in order. If bash isn't found, your path is broken. Fix it.
Now comes the second part of downloading, namely, all Xfree stuff needed to get it running.
- Visit ftp://mirrors.rcn.net/pub/sourceware/cygwin/xfree/xc-4-binaries/4.1.0 and download the following packages :
- Xbin.tgz (some programs for X, possibly not needed)
- Xxserv.tgz (the X server itself. Without this, it won't run at all)
- Xfnts.tgz (Fonts for your X server. Reuse of TTF fonts is something not already included)
- startup-scripts.tgz (Startup scripts for your Xserver)
- Now just double-click on the batch file startxwin.bat, and an X server should come up. The installed default window manager is twm, which is not everybodys choice. It requires manual window placement, so just click into the server window to place your Xterm. So far so good. Now install your favourite software, like Lyx and use X.