This is an old revision of the document!
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 /home/quake/quakejs/html/* /var/www/html/
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 in /var/www/html/assets.
Download the get_assets script
Simplifies getting the assets from http://content.quakejs.com.
sudo wget https://steamforge.net/files/quakejs/get_assets.sh
Make the script executable by running
sudo chmod +x /var/www/html/get_assets.sh
Run the script to grab all of the assets from http://content.quakejs.com and put them where they can be accessed by clients.
sudo bash /var/www/html/get_assets.sh
This will put all of the asset files where they need to go in /var/www/html/assets.
Optionally remove get_assets.sh by running
sudo rm /var/www/html/get_assets.sh