1,575
edits
Changes
no edit summary
'''<pre style="color: orange">NOTE: This guide assumes your local server's hostname is "quakejs"</pre>'''
'''<pre style="color: orange">NOTE: currently the content server address of content.quakejs.com is hard coded into some compile code. I'm working on being able to recompile but in the meantime there is a "hack" to redirect content.quakejs.com to your localhost address. See the "Redirect content.quakejs.com" section</pre>'''
=The Simpler Method=
#If you didn't already do it, delete the default index.html that comes with Apache2 by running <pre>sudo rm /var/www/html/index.html</pre>
#If you didn't already do it, copy the Local Content Server and Play Page files from the ''quakejs'' folder to ''/var/www/html'' by running <pre>sudo cp /home/quake/quakejs/html/* /var/www/html/</pre>
==Redirect content.quakejs.com==
Currently the content server of content.quakejs.com is hard coded into the compile ioq3 code. Because QuakeJS is so old, the version of Empscripten used to compile it is no longer available. I'm working on figuring out how to recompile the program. In the meantime, the easiest hack (and it is a hack) I've found to be able to run a local QuakeJS server, without an internet connection, is to edit your hosts file to redirect content.quakejs.com to your localhost. The below instructions will explain how to do this.
#Edit your hosts file by running the following<pre>sudo nano /etc/hosts</pre>
#Add the following line to the bottom of the file<pre>127.0.0.1 content.quakejs.com</pre>
At this point you can visit http://quakejs/ and it will download a couple files to your browser from your local content server and connect to your server (if it is running, which it isn't if you're following this guide).