1,575
edits
Changes
→Setup a Local Content Server
=Setup a Local Content Server=
#Setup a webserver to host our content and install jq to help with downloading assets by running <pre>sudo apt install apache2 jq</pre>
#change directories to where our web files are hosted by running <pre>cd /var/www/html/</pre>#Download a script that I wrote to simplify getting the assets from http://content.quakejs.com by Running <pre>sudo wget -O /var/www/html/get_assets.sh https://raw.githubusercontent.com/begleysm/quakejs/master/assets/get_assets.sh</pre>#Make the script executable by running <pre>sudo chmod +x /var/www/html/get_assets.sh</pre>#Run the script to grab all of the assets from http://content.quakejs.com and put them where they can be accessed by clients. (Technically you already downloaded a couple of the files earlier but we'll do everything in 1 go to simplify things). <pre>sudo bash /var/www/html/get_assets.sh</pre>This will put all of the asset files where they need to go in /assets.#Optionally remove get_assets.sh by running <pre>sudo rm /var/www/html/get_assets.sh</pre>
=Setup a Local Play Page=