Copy files to server:
* BR-Basketball.tar.bz2
* CTF-ThornsV4.ut2.tar.bz2
* DedicatedServer3339-BonusPack.zip
* InfiniteWallDodges.zip
* ONS-Dinora.tar.bz2
* VCTF-ArcticStronghold.zip
* VCTF-BloodGulch7.zip
* VCTF-ConcreteCanyon.zip
* VCTF-dogfight.zip
* XxxXESRv2i.rar
* ctf-circuitcity.zip
* ut2004-lnxpatch3339.tar.bz2
* ut2004-lnxpatch3355.tar.bz2
* ut2004-lnxpatch3369-2.tar.bz2
* vendetta_v4.zip
apt install libstdc++5
useradd -m ut2004
su - ut2004
mkdir ut2004
cd ut2004
unzip DedicatedServer3339-BonusPack.zip
tar xvjf ut2004-lnxpatch3355.tar.bz2
tar xvjf ut2004-lnxpatch3369-2.tar.bz2
rsync -av UT2004-Patch/ .
rm -rf UT2004-Patch
chmod -R o-w .
chmod +x System/ucc*
rsync -av /path/to/Default.ini System
# check that it runs:
./System/ucc-bin-linux-amd64
cd System
unzip InfiniteWallDodges.zip
cd ..
unzip vendetta_v4.zip
For HTTP downloads:
apt install apache2
Apache2 configuration:
Alias "/ut2004/" "/home/ut2004/ut2004/custom/"
Require all granted
And copy in all custom maps, static meshes, textures, etc... to ''/home/ut2004/ut2004/custom''
Add ''/home/ut2004/bin/ut2004-server'':
#!/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
Add ''/lib/systemd/system/ut2004.service'':
[Unit]
Description=Unreal Tournament 2004 Server
[Service]
User=ut2004
Group=ut2004
ExecStart=/home/ut2004/bin/ut2004-server
[Install]
WantedBy=multi-user.target