Friday, January 30, 2009

Quakes on Linux

Quake I

Make your destination directory:
$ sudo mkdir -p /usr/local/games/quake/id1

Download latest stable official release of darkplaces engine and mod from:
http://icculus.org/twilight/darkplaces/download.html

Engine is enough but if you want some improved lighting effects then you'll need mod too.
$ wget http://icculus.org/twilight/darkplaces/files/darkplacesengine20090128.zip
$ wget http://icculus.org/twilight/darkplaces/files/darkplacesmod20080808.zip

After extracting to ~/Quake directory copy one of darkplaces executabile files which suits your system:
$ sudo cp ~/Quake/darkplacesengine20081004/darkplaces-linux-x86_64-sdl /usr/local/games/quake

Now copy files from original windows Quake CD or destination directory of windows installation:
$ sudo cp -rv /media/Quake/ID1/* /usr/local/games/quake/id1/ > ~/Desktop/files.txt
After coping make shure all files specified in files.txt are in small case.

Make your launch script with:
$ joe ~/Desktop/quake

Add this content:
$ cd /usr/local/games/quake
./darkplaces-linux-x86_64-sdl

Save and make this file executable:
$ sudo chmod 775 quake

Any mission packs or downloaded mods needs just to be extracted in destination directory /usr/local/games/quake/. Activate installed mods with "Browse mod" menu option inside game.

Quake II

Make your destination directory:
$ sudo mkdir -p /usr/local/games/quake2/baseq2

Download binary RPM engine from http://www.chez.com/colinf/rpms/quake2/ :
$ wget http://www.chez.com/colinf/rpms/quake2/quake2-r0.16.1-io1.i386.rpm
$ sudo rpm -Uvh quake2-r0.16.1-io1.i386.rpm


From original QuakeII windows CD or destination directory of windows installation copy content of baseq2 folder to /usr/local/games/quake2/baseq2 :
$ sudo cp -rv /media/win/games/quake2/baseq2/* /usr/local/games/quake2/baseq2
Make sure all copied files are in small case.

To start game execute:
$ /usr/local/games/quake2/quake2.sh

For any mission packs you just need to extract pkg files in destination directory for example /usr/local/games/quake2/rogue.
After extracting start quake2 with set game 'value' parameter:
$ ./sdlquake2 +set basedir /usr/local/games/quake2 +set game rogue

Quake III

Make your destination directory:
$ sudo mkdir -p /usr/local/games/quake3/baseq3

From original QuakeIII windows CD or destination directory of windows installation copy pak0.pk3 from content of baseq3 folder to /usr/local/games/quake3/baseq3 :

$ sudo cp /media/win/games/quake3/baseq3/pak0.pk3 /usr/local/games/quake3/baseq3


Download Quake3 installer:
$ wget ftp://ftp.idsoftware.com/idstuff/quake3/linux/linuxq3apoint-1.32b-3.x86.run

Move it to destination directory:
$ mv ~/Desktop/linuxq3apoint-1.32b-3.x86.run /usr/local/games/quake3

Start installation and follow instructions on your screen (you can answer “Yes” to every question you are asked during the installation)
$ cd /usr/local/games/quake3
$ linux32 sh /usr/local/games/quake3/linuxq3apoint-1.32b-3.x86.run

Download patch:
$ wget ftp://ftp.idsoftware.com/idstuff/quake3/quake3-1.32c.zip

After extracting copy content of linux directory over files in quake3 destination path
$ sudo cp ~/Desktop/linux/* /usr/local/games/quake3

To start game execute:
$ /usr/local/games/quake3/quake3

If you experience problems with sound use:
$ sudo bash -c 'echo "quake3.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss'
$ sudo bash -c 'echo "quake3.x86 0 0 disable" > /proc/asound/card0/pcm0c/oss'

If you experience hangs during play start quake3 with:
$ ./quake3.x86 +set s_musicvolume -1

Quake 4

Download installer with:
$ cd ~/Desktop
$ wget ftp://ftp.idsoftware.com/idstuff/quake4/linux/quake4-linux-1.4.2.x86.run
Make your destination directory:
$ mkdir -p /usr/local/games/quake4/q4base

Quake4 has is very big in size so you may want to create links instead of coping:
$ sudo ln -s /media/win/games/quake4/Setup/Data/q4base/*.pk4 /usr/local/games/quake4/q4base
$ sudo chmod -Rv 775 q4base/*.pk4

Move installer to your destination directory and execute:
$ cd /usr/local/games/quake4
$ sudo mv ~/Desktop/quake4-linux-1.4.2.x86.run .
$ sudo sh quake4-linux-1.4.2.x86.run

Start quake with:
$ ./quake4 +set s_driver oss

No comments: