Changes

Jump to: navigation, search
no edit summary
'''<pre style="color: red">NOTE: This guide assumes your local server's hostname is "quakejs"</pre>'''
==Prepare your Machine==
#Make sure our system is up to date before we start by running <pre>sudo apt update</pre> and <pre>sudo apt upgrade</pre>
#Create a dedicated user to run our server with <pre>sudo adduser quake</pre>
#Switch to our new '''quake''' user and start in his home directory by running <pre>su - quake</pre>
==Setup a Local QuakeJS Server==
#Install curl by running <pre>sudo apt install curl</pre>
#Add the repo for [https://nodejs.org/en/ node.js] by running <pre>curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -</pre>
#You can run your server with the following command, but the isn't much point until we setup the Content Server and Play Page. <pre>node build/ioq3ded.js +set fs_game baseq3 set dedicated 1 +exec server.cfg</pre>
==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>
#Optionally remove get_assets.sh by running <pre>sudo rm get_assets.sh</pre>
==Setup a Local Play Page==
#If you didn't already install Apache2 for the content server, do it now by running <pre>sudo apt install apache2</pre>
#Delete the default index.html that comes with Apache2 by running <pre>sudo rm /var/www/html/index.html</pre>
##Change Line 75 to <pre>var args = ['+set', 'fs_cdn', 'quakejs:80', '+connect', 'quakejs:27960'];</pre>
==Finalize the Setup==
#Configure Debian to autorun our server on boot
##Install ''[http://software.clapper.org/daemonize/ daemonize]'' (for use in our init.d script) by running <pre>sudo apt install daemonize</pre>

Navigation menu