Skip to content

Instantly share code, notes, and snippets.

@telyn
Last active July 19, 2024 20:03
Show Gist options
  • Save telyn/06bc221a7622743cf205 to your computer and use it in GitHub Desktop.
Save telyn/06bc221a7622743cf205 to your computer and use it in GitHub Desktop.
Installing UT2004 on a linux

So you want to install UT2004 on some Linux? Because 10 year old games are the best games.

You will need:

  • UT2004 (The GOG copy or the original DVD will both work, as will presumably any other copy of UT2004)
  • The latest (3369) linux patch for UT2004
  • A CD key. If you want to run a dedicated server, generate yourself a server key at https://forums.unrealtournament.com/utserver/cdkey.php?2004
  • libstdc++.so.5 (could also end .so.5.X.Y where X and Y are numbers, this is also fine) built for i386 linux. the 64-bit build of UT2004 is sadly broken (can't rebind ports on map changes, making the web interface useless after the first map), so i386 is the way forward.

The steps:

  • Copy the UT2004 files onto your linux someplace. Let's say you did it to /UT for the purposes of this guide.
  • Unzip the patch and copy it in to /UT. (Let's say the patch was unzipped to /UTPatch) I did it with rsync -rv /UTPatch/* /UT
  • Make a file called cdkey in /UT/System with the CD key you generated as its only contents.
  • Now sort out libstdc++.so.5. Basically, you want to make sure you have libstdc++.so.5 (for i386 linux) in /UT/System . The easiest way on recent Debian/Ubuntu machines is to run the following commands as root or under sudo:
    • dpkg --add-architecture i386
    • wget http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-17ubuntu1_i386.deb
    • dpkg -i libstdc++5_3.3.6-17ubuntu1_i386.deb

and then this as your usual user:

  • ln -s /usr/lib/libstdc++.so.5 /UT/System

On other Linuxes you'll have to extract the file from the deb and just copy it in. Apparently .deb files are ar archives so you'll have to read man ar and then work it out from there.

@telyn
Copy link
Author

telyn commented Jun 28, 2015

Mostly made this document so that people hopefully come across it on Google and feel a bit more heartened and like it might actually work - the only other posts about it are from a very long time ago and had an incorrect link (after a while Ubuntu moves files from archive.ubuntu.com to old-releases.ubuntu.com)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment