1,575
edits
Changes
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>
#Temporarily give quake sudo access to make setup easier (we'll remove it later) by running <pre>sudo usermod -aG sudo 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=
#Run your server with the following command <pre>node build/ioq3ded.js +set fs_game baseq3 set dedicated 1 +exec server.cfg</pre>
Make sure you change the password in '''seta rconpassword'''
=Setup a Local Content Server=
#Setup a webserver to host our content buy running <pre>sudo apt install apache2</pre>
#Run the script and grab all of the assets from http://content.quakejs.com and put them where they can be accessed by clients by running <pre>sudo /var/www/html/get_assets.sh</pre>
#Optionally remove get_assets.sh by running <pre>sudo rm /var/www/html/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>