Skip to content

Instantly share code, notes, and snippets.

@neomelonas
Last active December 28, 2018 21:59
Show Gist options
  • Save neomelonas/d154c7c6ed0bee056a03 to your computer and use it in GitHub Desktop.
Save neomelonas/d154c7c6ed0bee056a03 to your computer and use it in GitHub Desktop.
Run Unreal Tournament 2004 Server on a Recent Ubuntu Server
Trying to get an Unreal Tournament 2004 server running on Ubuntu Server >= 10.10?
Download and unzip this wherever you want your server root: http://downloads.unrealadmin.org/UT2004/Server/dedicatedserver3339-bonuspack.zip
Download and unzip THIS wherever you just extracted the server files (this will upgrade you to version 3369):
Main: http://ut2004.ut-files.com/index.php?dir=Patches/Linux/&file=ut2004-lnxpatch3369.tar.bz2
Mirror1: https://boundarygamers.com/ut2004-lnxpatch3369.tar.bz2
Mirror2: https://a.vidga.me/jivpe.tar.bz2
Go here, and get a key: http://unreal.epicgames.com/ut2004server/cdkey.php
Grab a copy of libstdc++ that has version 5 from one of the following links:
Main: http://ftp.us.debian.org/debian/pool/main/g/gcc-3.3/libstdc++5_3.3.6-20_amd64.deb - dead as of 2/17/17
Mirror1: http://boundarygamers.com/libstdc++5_3.3.6-20_amd64.deb
Mirror2: https://a.vidga.me/rhmfmx.deb
Extract the lib out from the debfile and copy it to the System folder of your recently unzipped ut2k4 folder.
dpkg --extract libstdc++5_3.3.6-20_amd64.deb libstdc++5
cp libstdc++5/usr/lib/* /path/to/ut2k4/System/
Then make a file called run.sh containing the following, replacing [myname] and [mypass] with a username and password:
#!/bin/sh
export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
./ucc-bin-linux-amd64 server ?AdminName=[myname]?AdminPassword=[mypass] ini=UT2004.ini log=server.log -nohomedir
Make run.sh executable (chmod +x run.sh).
Go play video games.
Found libstdc++5 here: https://packages.debian.org/squeeze/amd64/libstdc++5/download
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment