Some years ago an installer for the game was released from the LIFLG project (Linux Installers For Linux Gamers). It is meant to install the boxed version of the game on Linux. It contains the latest patched Linux binaries for UT2004 as well as a nice start script and needed libraries for the gamne. This installer, however, can not handle the GOG setup on it's own. I wrote a rough how-to on how to use the LIFLG installer with the GOG setup:
1. Download the LIFLG installer from
https://liflg.org/?catid=6&gameid=17 pick the file ut2004_3369-german.midway.dvd-6.run
2. Make the installer executable and unpack it using this command:
./ut2004_3369-german.midway.dvd-6.run --confirm --keep
Confirm to extract but not to execute the setup.
You get a directory ut2004_3369-german.midway.dvd-6 which contains all the files from the LIFLG installer
3. Make a directory for the game, for example:
mkdir ~/ut2004
4. Copy the start script from the installer directory to the game directory:
cp ut2004_3369-german.midway.dvd-6/bin/ut2004 ~/ut2004
5. Unpack the Linux binaries into the game directory:
tar -zxvf ut2004_3369-german.midway.dvd-6/linux-amd64.tar.gz -C ~/ut2004
or for a 32 bit system:
tar -zxvf ut2004_3369-german.midway.dvd-6/linux-x86.tar.gz -C ~/ut2004
6. (I assume you have downloaded the game from GOG already.) Now you need to install the game via Wine. Because we need the gamne files, but we also we need the CDKey of the game.
wine setup_ut2004_2.0.0.6.exe /verysilent /norestart /closeapplications /noicons
7. Copy the game files to your game directory:
cp -a ~/.wine/drive_c/GOG\ Games/Unreal\ Tournament\ 2004/* ~/ut2004/
8. Copy the CDKey from the registry to a textfile:
wine regedit.exe -E cdkey.reg "HKEY_LOCAL_MACHINE\Software\Unreal Technology\Installed Apps\UT2004"
9 Read the registry file and write the CDKey file in the game directory:
cat cdkey.reg
echo "XXXXX-XXXXX-XXXXX-XXXXX" > ~/ut2004/System/CDkey
10. if you want to use GOG's game icon for your menu, you have to extract it first:
icotool -x -i 6 ~/ut2004/gfw_high.ico > ut2004.png -o ~/ut2004/ut2004.png
11. Clean up all the mess, which is no longer needed. ;)
delete the LIFLG directory:
rm -rf ut2004_3369-german.midway.dvd-6
Delete the registry file:
rm -f cdkey.reg
Uninstall the windows/wine game:
wine ~/.wine/drive_c/GOG\ Games/Unreal\ Tournament\ 2004/unins000.exe
(Maybe you need to the delete a desktop icon from the wine installation manually.)
You now have only the downloaded files (for your personal backup) and the game directory left.
Start the game with ~/ut2004/ut2004
If you hear no sound it may help to set UseDefaultDriver=False in the config file ~/.ut2004/System/UT2004.ini (which was automatically created when you started the game for the first time).
I hope this very rough guide helps you to set up the game properly on your system. Have a lot of frags! ;)