User Tools

Site Tools


games:quake:setup_a_local_quakejs_server:create_a_quakejs_service

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
games:quake:setup_a_local_quakejs_server:create_a_quakejs_service [2021/07/05 22:54] – [Test] petergames:quake:setup_a_local_quakejs_server:create_a_quakejs_service [2021/07/06 12:55] (current) peter
Line 16: Line 16:
  
 <code bash> <code bash>
-sudo cp /home/quake/quakejs/init.d/quakejs /etc/init.d/quakejs+sudo cp ~/quakejs/init.d/quakejs /etc/init.d/quakejs
 </code> </code>
  
 ---- ----
 +
 +====== Edit the startup script ======
 +
 +Edit the /etc/init.d/quakejs file, change:
 +
 +<file bash /etc/init.d/quakejs>
 +daemonize -v -p /var/run/$prog.pid -c /home/quake/quakejs -u quake /usr/bin/node build/ioq3ded.js +set fs_game baseq3 set dedicated 1 +exec server.cfg
 +</file>
 +
 +to
 +
 +<file bash /etc/init.d/quakejs>
 +daemonize -v -p /var/run/$prog.pid -c /root/quakejs /usr/bin/node build/ioq3ded.js +set fs_game baseq3 set dedicated 1 +exec server.cfg
 +</file>
 +
 +<WRAP info>
 +**NOTE:**  This setup has Quake running in a Container, so no need to have a separate user account.  
 +
 +  * Therefore changing this to root.
 +</WRAP>
  
 ====== Enable the Service Script ====== ====== Enable the Service Script ======
Line 28: Line 48:
  
 ---- ----
 +
 +====== Complete ======
 +
 +Whenever your Quake server boots up it will automatically start the QuakeJS game server and Apache2 webserver.
 +
 +When a computer visits http://192.168.1.137/ they will automatically download the files they need from http://192.168.1.137/assets/ and then connect to the QuakeJS server at http://192.168.1.137:27960.
 +
 +Have people point their browsers to http://192.168.1.137/ and enjoy!
 +
 +
 +<WRAP info>
 +**NOTE:**  Instead of **http://192.168.1.137/ ** in the above, a DNS could be configured with a nicer name.
 +</WRAP>
 +
  
 ====== Test ====== ====== Test ======
Line 40: Line 74:
 </WRAP> </WRAP>
  
-----+{{:games:quake:setup_a_local_quakejs_server:quake_-_connecting.png?600|}}
  
-====== Complete ======+{{:games:quake:setup_a_local_quakejs_server:quake_-_main.png?600|}}
  
-Whenever your quakejs server boots up it will automatically start the quakejs game server and Apache2 webserver. +----
- +
-When a computer on your LAN visits http://quakejs/ they'll automatically download the files they need from http://quakejs/assets/ and then connect to the QuakeJS server at quakejs:27960. +
- +
-Have people point their browsers to http://quakejs/ and enjoy.+
  
 +Continue [[Games:Quake:Setup a local QuakeJS server:Playing Setup|Playing Setup]]
games/quake/setup_a_local_quakejs_server/create_a_quakejs_service.1625525670.txt.gz · Last modified: 2021/07/05 22:54 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki