How to install and benchmark Quake 3 on the Raspberry Pi
Please share with your friends...
  • 1
  • 1
  •  
  •  
  • 1
  • 1
  •  
  •  
  •  
  •  
    4
    Shares


⇐ BackPageNext ⇒

Installation

Mount the device containing the prerequisite Quake III files on your Raspberry Pi.

  • If you are using a USB storage device, use the following commands.
    sudo mkdir /mnt/q3a
    sudo mount /dev/sda1 /mnt/q3a
  • If you are using a network share, use the following commands.
    sudo mkdir /mnt/q3a
    sudo mount -t cifs -o user=<user>,password=<password> //<ipaddress>/<SHARE> /mnt/q3a

    Replace <user> and <password> with your credentials, <ipaddress> with the IP Address or Hostname of the remote computer, and <SHARE> with the Share name (in uppercase).

We have tried to make installing Quake III as easy as possible by writing a Quake 3 Script for Raspberry Pi that does each of the following actions:

  • Installs the prerequisite Raspbian packages;
  • Downloads the ioquake3 source directly from GitHub;
  • Compiles the ioquake3 source code;
  • Copies the Quake III Arena PAKs to the baseq3 directory;
  • Copies the Quake III: Team Arena PAKs to the missionpack directory;
  • Downloads and applies Quake III Point Update 1.32, if required; and
  • Launches ioquake3.

We highly recommended that you use our Quake 3 Script for Raspberry Pi. However, we have also provided Manual Instructions if required.

Quake 3 Script for Raspberry Pi
The following steps explain how to use my Quake 3 Script for Raspberry Pi to perform an automated install of Quake III.

  1. Change to the root of the user’s home directory, using the following command:
    cd ~
  2. Download our Quake 3 script for Raspberry Pi directly from GitHub, using the following command:
    wget https://gist.github.com/TechnologistAU/7f5e62446bc3f5baba0ac372140eeeb7/raw -O quake3.sh
  3. Mark the script as executable, using the following command:
    chmod +x quake3.sh
  4. Launch the Quake 3 script for Raspberry Pi, using the following command:
    ./quake3.sh --source=/mnt/q3a

    This command assumes that you have the prerequisite Quake III files, such as pak0.pk3, located on the mounted device /mnt/q3a – adjust this path as necessary.
    The script will produce output similar to the following:

    Installing Prerequisite "git" ... Done
    Installing Prerequisite "libsdl1.2-dev" ... Done
    Cloning GIT source "Quake 3" ... Done
    Compiling source "Quake 3" ... 4m3.340s
    Copying file to "/home/pi/quake3/build/release-linux-arm/baseq3/pak0.pk3" ... Done
    Downloading "linuxq3apoint-1.32b-3.x86.run" ... Done
    Patching from "linuxq3apoint-1.32b-3.x86.run" ... Done

    Once the installation is complete, Quake III will launch.

Manual Installation
The following steps explain how to perform a manual installation of Quake III.

  1. Install the prerequisite build packages, using the following command:
    sudo apt-get install git libsdl1.2-dev -y
  2. Change to the root of the user’s home directory, using the following command:
    cd ~
  3. Download the Quake III source code from GitHub, using the following command:
    git clone https://github.com/raspberrypi/quake3.git
  4. Change into the quake3 directory, using the following command:
    cd quake3
  5. Update the included Raspberry Pi build script, using the following command:
    sed -i "s/-lvmcs_rpc_client//g" ./build_rpi_raspbian.sh
    sed -i "s/-lEGL/-lbrcmEGL/g" ./build_rpi_raspbian.sh
    sed -i "s/-lGLESv2/-lbrcmGLESv2/g" ./build_rpi_raspbian.sh

    Unfortunately without making these changes, the build will fail.

  6. Build the Quake III source code, using the following command:
    ./build_rpi_raspbian.sh

    This step may take some time to complete, from over and hour for a Raspberry Pi 1 to under five minutes for a Raspberry Pi 3.

  7. Copy the Quake III Arena PAK0.PK3 through PAK8.PK3 files to the baseq3 directory, using the following command:
    cp /mnt/q3a/baseq3/*.pk3 build/release-linux-arm/baseq3/

    This step assumes that you have the required PAK0.PK3 through PAK8.PK3 files located in the baseq3 directory on the mounted device /mnt/q3a.

  8. (Optional) Copy the Quake III: Team Arena PAK0.PK3 through PAK3.PK3 files to the missionpack directory, using the following command:
    cp /mnt/q3a/missionpack/*.pk3 build/release-linux-arm/missionpack/

    This optional step assumes that you have the PAK0.PK3 through PAK3.PK3 files located in the missionpack directory on the mounted device /mnt/q3a.

  9. Change to the Quake III game directory, using the following command:
    cd build/release-linux-arm
  10. Launch Quake III, using the following command:
    ./ioquake3.arm

    Refer to the following page for configuration command line parameters.

While you can download and install Quake III from a remote SSH session, the game itself can only be run from the local console!
⇐ BackPageNext ⇒

How to Install and Benchmark Quake III on the Raspberry Pi

Please share with your friends...
  • 1
  • 1
  •  
  •  
  • 1
  • 1
  •  
  •  
  •  
  •  
    4
    Shares
Tagged on:                                 

3 thoughts on “How to Install and Benchmark Quake III on the Raspberry Pi

  • 03/03/2018 at 4:48 AM
    Permalink

    I’m going to test this! but there’s something very confusing about the post.

    You say the script downloads the quake files. But also say you have to manually download it.

    Do i have to download quake files before using the script or can I just run it?

    Reply
    • 04/03/2018 at 2:35 PM
      Permalink

      Hi Thiago,

      You can use the Quake 3 Script OR use the Manual Instructions – you don’t have to do both. We recommend using the script, however, some people prefer the manual instructions.

      Before you begin, you will need:
      – Quake III Arena “PAK0.PK3” from the original game disc or from the Steam installation.

      The script will:
      – Install prerequisite Raspbian packages.
      – Download the ioquake3 source from GitHub.
      – Compile the ioquake3 source code.
      – Copy the Quake III Arena PAK0.PK3 to the baseq3 directory.
      – Download and apply Quake III Point Update 1.32
      – Launch Quake III Arena

      Yes, the script will do everything for you, including running Quake III!

      Hope that helps 🙂

      Kind Regards,
      Chris

  • 20/09/2018 at 5:08 AM
    Permalink

    Great script and tutorial, still works great! I’ve tried running the dedicated binary (./ioq3ded.arm) and I can’t seem to connect to the PI via any client. I’ve specified the IP of the PI in the multiplayer menu, and WireShark only shows a UDP packet ever few seconds sending “getChallenge” with no response. It’s not my WiFi isolation feature, same happens when wired… have you tried the dedicated server?

    Reply

Leave a Reply