Thursday, October 11, 2007

Create the Installation Directory ++

The first thing you'll need to do is decide where you want to install Quake. The "standard" location is
/usr/local/games/quake. This is where the .rpm packages put Quake. If you choose to install
somewhere else, please substitute the appropriate path wherever /usr/local/games/quake is
mentioned.
Note to Redhat users: If you plan on installing QuakeWorld from the rpm packages, you should probably
install Quake in /usr/local/games/quake, since the rpms install to this directory by default.
So go ahead and create the directory you'll install Quake in, and cd to it. The rest of these instructions will
assume that this is your current directory.
mkdir /usr/local/games/quake
cd /usr/local/games/quake
Installing From a Quake CD
If you're installing from a Quake CD−ROM, read on. Otherwise you have permission to skip this section.
There are at least two versions of the Quake CD in circulation. I've got one from the early days that has
Quake version 1.01 on it. Iv'e seen other CDs that contain version 1.06. You have 1.01 if you see files on
your CD called quake101.1 and quake101.2. If instead you see a file called resource.1, you have a
newer CD. Mount your Quake CD now and determine which version you've got. In the example below,
replace /dev/cdrom and /mnt/cdrom with the device file and mount point appropriate for your sysem:
mount −t iso9660 /dev/cdrom /mnt/cdrom
ls /mnt/cdrom
If you have a resource.1 file on your CD, you can skip ahead to the next bullet. For a version
1.01 CD, you'll need to download the Quake shareware package to update the .pak files after the
installation. The last bullet in this section explains this.
Concatenate the two resource files from your CD to a single file on your hard disk:
cat /mnt/cdrom/quake101.1 /mnt/cdrom/quake101.2 > resource.1
•
•
Linux Quake HOWTO
Create the Installation Directory ++ 6
Now continue on to the next paragraph, but when I refer to /mnt/cdrom/resource.1,
you should use /usr/local/games/quake/resource.1 instead.
•
Now it's time to extract the Quake files. The resource.1 file on your CD is really an lha archive
(lha is a file compression and archiving format like zip or tar). We'll use the lha(1) command to
extract it. If lha is not already installed on your system, you can get it from
ftp://sunsite.unc.edu/pub/Linux/utils/compress/lha−1.00.tar.Z.
lha e /mnt/cdrom/resource.1
When lha is done, your Quake directory will contain a bunch of new files. A directory called
id1/ will also be created. The files in this directory are the only ones that are important for Linux
Quake, so you can safely remove everything else. If you're totally new to Quake, or even if you're
not, you may want to hang on to the *.txt files. On my system, I throw all the readmes that
accumulate into a doc/ directory. So:
cd /usr/local/games/quake
mkdir doc
mv *.txt doc
rm −f *
•
If you installed from a version 1.01 CD, now you need to overwrite your id1/pak0.pak file with
the one from the Quake shareware version. Install the shareware version as described in Shareware
Version Install, only install it in some temporary directory so you don't overwrite your real Quake
files. When you've extracted all the shareware files, copy the id1/pak0.pak file from the
temporary shareware directory to your /usr/local/games/quake/id1 directory. After that,
you can erase the temporary shareware files.
•
That's it for installing from the CD. You can jump ahead to section " Installing the Linux Binaries" now.