Table of Contents

Games - Quake - Setup a local QuakeJS server - Setup a Local Content Server

Setup a webserver to host the content.

sudo apt install apache2 jq

NOTE: jq is installed to help with downloading assets.


Change directory to the web files

cd /var/www/html/

Delete the default index.html that comes with Apache2

sudo rm /var/www/html/index.html

Copy the Local Content Server and Play Page files to the Website

Copy the Local Content Server and Play Page files from the quakejs directory to /var/www/html:

sudo cp ~/quakejs/html/* /var/www/html/

Adjust the Website index.html file

Edit the /etc/www/html/index.html file, and adjust the follow line near the bottom of the file.

/etc/www/html/index.html
var args = ['+set', 'fs_cdn', '192.168.1.136:80', '+connect', '192.168.1.136:27960']; 

NOTE: The 192.168.1.136 is the IP of the quake server.


Restart Apache

sudo systemctl restart apache2.service

Download Assets

NOTE: Run the get_assets.sh script to grab all of the assets from http://content.quakejs.com and put them where they can be accessed by clients.

  • Technically these were already downloaded a couple of the files earlier but they are not named quite right.
  • Therefore download everything from the “official” content server in one go to simplify things.
sudo bash /var/www/html/get_assets.sh

NOTE: This will put all of the asset files into /var/www/html/assets.


Continue Create a QuakeJS service