SGML for Windows NT: Setting up a free SGML/XML editing and publishing system on Windows/Cygwin | ||
---|---|---|
Prev | Chapter 4. Cygwin | Next |
Start setup
Log in as an adminstrator, connect to the internet, and run setup.exe. Select the Install from Internet option.
Download and install the packages
The setup dialog will ask you for the "install root directory". All Cygwin files will be installed in a hierarchy below this directory. Use something like c:\cygwin. Keep the other options to "Default text file type: Unix" and "Install for: all".
Next, you will be presented with a listbox of available mirrors. Select one close to your home. If you have problems connecting, try a different mirror.
Finally, you will get a listbox with available packages. They are organized in groups that can be opened by clicking their names. You definitely want the base package. If in doubt, install everything except Ghostscript (for various reasons we'll use the native Win32 version of this tool, and the Cygwin version would just be in our way). If you (really, really) know what the packages are good for and you're sure you will not need some of them, you may skip those now (you can always add them later).
If you still insist to save download time, here is a suggested list for a minimal Cygwin installation that (or so I believe) would allow you to run all software we need in this tutorial: ash, bash, bzip2, cygwin, fileutils, gettext, gzip, less, libintl1, libxml2, libxslt, man, patch, perl, tetex-beta, textutils, unzip, zip.
Customize your setup
As your needs may differ, I can give only some hints and suggest that you peruse the online Cygwin User's Guide.
Mounting the user directory at /home must be done from a command line window (WinNT) or from a DOS box (Win95/98/ME). Change to the c:\cygwin\bin directory and run the following command:
C:\cygwin\bin>mount -s -b c:\winnt\profile /home |
The switches will make the mount system-wide (-s) and use a binary mount (-b).
Once you're mounting, you may as well change the mount type for "unmounted" directories. The background of this is beyond the scope of this tutorial, but this prevents some strange errors with some applications, e.g. rcs. Run the following command in a command line window (WinNT) or in a DOS box (Win95/98/ME):
C:\cygwin\bin>mount -bs --change-cygdrive-prefix /cygdrive |
The /etc/profile shipped with Cygwin sets HOME to /home/username, so cd ~ will automatically put you into the correct place in the Cygwin directory hierarchy after setting up the above mount.
System-wide changes to the setup should be done in /etc/profile. Users can modify $HOME/.profile and $HOME/.bashrc to customize their environment.
The file ~/.bashrc controls the behaviour of the non-interactive shell in Emacs in our setup. It should therefore not contain a cd command, e.g. to change to the home directory. While this may sound convenient, it will screw up the use of non-interactive commands in Emacs.