User Tools

Site Tools


unreal_tournament_2004_linux_server

Differences

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

Link to this comparison view

Next revision
Previous revision
unreal_tournament_2004_linux_server [2019/06/09 18:31] – created joshunreal_tournament_2004_linux_server [2019/06/09 19:46] (current) – add systemd service josh
Line 30: Line 30:
 chmod -R o-w . chmod -R o-w .
 chmod +x System/ucc* chmod +x System/ucc*
 +rsync -av /path/to/Default.ini System
 # check that it runs: # check that it runs:
 ./System/ucc-bin-linux-amd64 ./System/ucc-bin-linux-amd64
Line 38: Line 39:
 </code> </code>
  
 +For HTTP downloads:
 +
 +<code>
 +apt install apache2
 +</code>
 +
 +Apache2 configuration:
 +
 +<code>
 +        Alias "/ut2004/" "/home/ut2004/ut2004/custom/"
 +        <Directory /home/ut2004/ut2004/custom>
 +                Require all granted
 +        </Directory>
 +</code>
 +
 +And copy in all custom maps, static meshes, textures, etc... to ''/home/ut2004/ut2004/custom''
 +
 +Add ''/home/ut2004/bin/ut2004-server'':
 +
 +<code>
 +#!/bin/sh
 +
 +cd $HOME/ut2004/System
 +while [ true ]; do
 +  ./ucc-bin-linux-amd64 server CTF-Face3?game=XGame.xCTFGame?Mutator=XGame.MutZoomInstaGib,InfiniteWallDodges.MutInfiniteWallDodges,Vendetta_V4.MutVendetta ini=Default.ini log=server.log -nohomedir
 +done
 +</code>
 +
 +Add ''/lib/systemd/system/ut2004.service'':
 +
 +<code>
 +[Unit]
 +Description=Unreal Tournament 2004 Server
 +
 +[Service]
 +User=ut2004
 +Group=ut2004
 +ExecStart=/home/ut2004/bin/ut2004-server
 +
 +[Install]
 +WantedBy=multi-user.target
 +</code>
unreal_tournament_2004_linux_server.1560119492.txt.gz · Last modified: by josh