Skip to content

Instantly share code, notes, and snippets.

@claudiuschan
Last active April 1, 2019 05:31
Show Gist options
  • Select an option

  • Save claudiuschan/6ca16a1cc04d2fbdda6aec53682d53aa to your computer and use it in GitHub Desktop.

Select an option

Save claudiuschan/6ca16a1cc04d2fbdda6aec53682d53aa to your computer and use it in GitHub Desktop.
Quake4 Fedora 29 Installation to local user directory
Dependencies packages for Quake4. Since quake4 is 32 bits application. Following packages must install.
## Known Issues: ##
No sound - fix
## Pre-requisites ##
Original quake4 dvd with key. Require for the game data file. Else the game won't run
xorg-server required. User login session must using xorg-server as backend. No wayland. I.e gnome with xorg.
## Download the linux quake4 installer. ##
cd ~
mkdir quake4
cd quake4
curl -O https://www.quaddicted.com/files/idgames2/idstuff/quake4/linux/quake4-linux-1.4.2.x86.run
## Install dependencies. ##
sudo dnf install \
SDL.i686 \
glibc.i686 \
libX11.i686 \
libXau.i686 \
libxcb.i686 \
libXext.i686 \
zlib.i686 \
libgcc.i686 \
libstdc++.i686 \
mesa-dri-drivers.i686 \
mesa-libGL.i686 \
xorg-x11-drv-intel.i686 \
alsa-lib.i686
## Install the quake4 ##
cd ~/quake4
chmod 755 quake4-linux-1.4.2.x86.run
./quake4-linux-1.4.2.x86.run --target ~/quake4
## Rename the default installed libraries files ##
cd ~/quake4
mv libgcc_s.so.1 libgcc_s.so.1.ori
mv libstdc++.so.6 libstdc++.so.6.ori
## copy datafile from windows steam or dvd ##
cd quake4/q4base
cp -rf <backup pk4 file from windows>/* .
## Copy your all pk4 files into the backup medium (USB Disk). ##
## Windows Steam: ##
## Go to c:\Program Files\steam\steamapps\common\quake4\q4base ##
## Windows Quake: ##
## Go to c:\Program Files\Quake4\q4base ##
## Run the game:
cd ~/quake4
./quake4
####################
No Sound Issues Fix
####################
## Add current user to the audio group
sudo usermod -a -G audio <username>
## modprobe snd_pcm_oss module
## This setting is non persistent, if you would like to make it persistent, you can enable it via modprobe conf file
sudo /sbin/modprobe snd_pcm_oss
## Ensure the following is configure properly under the config file: ~/.quake4/q4base/Quake4Config.cfg
seta s_dsp "/dev/dsp"
seta s_driver "oss"
seta s_alsa_lib "libasound.so.2"
seta s_alsa_pcm "default"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment