{"id":173,"date":"2023-11-06T19:52:35","date_gmt":"2023-11-06T19:52:35","guid":{"rendered":"https:\/\/retro.unlimitedweb.space\/?p=173"},"modified":"2023-11-06T21:15:25","modified_gmt":"2023-11-06T21:15:25","slug":"installing-unreal-tournament-2004-ut2004-server-on-debian-12","status":"publish","type":"post","link":"https:\/\/retro.unlimitedweb.space\/?p=173","title":{"rendered":"Installing Unreal Tournament 2004 (UT2004) Server on Debian 12"},"content":{"rendered":"\n<p>Flash-forward 19 years later, and UT2004 is still one of the best FPS known to mankind.  In it&#8217;s honor, I provide you with this guide: Installing an Unreal Tournament 2004 (UT2004) Server on Debian 12.<\/p>\n\n\n\n<p>First, we create our new space for our server (<mark style=\"background-color:#000000\" class=\"has-inline-color has-white-color\">cd<\/mark> into whatever directory you want this installed, note that I&#8217;m in \/root):<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>mkdir ut-setup; cd ut-setup;<\/code><\/pre>\n\n\n\n<p>Being an older game, we have to add the i386 architecture to dpkg, so let&#8217;s do that and update repos:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>dpkg --add-architecture i386; apt update;<\/code><\/pre>\n\n\n\n<p>Then, we install all of our dependencies and clean up after ourselves:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>apt install curl wget file tar bzip2 gzip unzip bsdmainutils python3 util-linux ca-certificates binutils bc jq tmux lib32stdc++6 libsdl1.2debian lib32gcc-s1 libstdc++5:i386 -y; apt install netcat || apt install netcat-traditional; wget https:\/\/retro.unlimitedweb.space\/downloads\/ut2004\/libstdc%2B%2B5_3.3.6-20~lucid1_i386.deb; mkdir libstdc++5; dpkg-deb -R libstdc++5_3.3.6-20~lucid1_i386.deb libstdc++5; rm libstdc++5_3.3.6-20~lucid1_i386.deb; cp libstdc++5 -r \/usr\/lib; rm -rf libstdc++5;<\/code><\/pre>\n\n\n\n<p>Next, let&#8217;s grab the server!  Unpacking the files may take a few minutes during which output may appear frozen. It&#8217;s going to prompt for a password when adding the new user ut2004:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>wget https:\/\/retro.unlimitedweb.space\/downloads\/ut2004\/dedicated-server-3339-bonuspack.tar.gz; gzip -d dedicated-server-3339-bonuspack.tar.gz; rm dedicated-server-3339-bonuspack.tar.gz; tar -xvf dedicated-server-3339-bonuspack.tar; rm dedicated-server-3339-bonuspack.tar; sudo adduser ut2004; sudo addgroup ut2004; sudo usermod -aG ut2004 ut2004; <\/code><\/pre>\n\n\n\n<p>We&#8217;ll update file permissions:<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">sudo chown -R ut2004:ut2004 .\/*; find . -type d -exec chmod 755 {} \\;; find . -type f -exec chmod 644 {} \\;; cd ut-server\/; chmod 755 System\/ucc-bin; <\/p>\n\n\n\n<p>Next, install your CD key (replace with actual CD key):<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">echo ABCDE-12345-FGHIJ-67890 > \/root\/ut-setup\/ut-server\/System\/cdkey;<\/p>\n\n\n\n<p>Install the v3369 Linux patch:<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">wget https:\/\/retro.unlimitedweb.space\/downloads\/ut2004\/ut2004-lnxpatch3369-2.tar.bz2; tar -xvf ut2004-lnxpatch3369-2.tar.bz2 -C \/tmp; cp -r \/tmp\/UT2004-Patch\/ \/root\/ut-setup\/ut-server\/System; rm -rf \/tmp\/UT2004-Patch\/;<\/p>\n\n\n\n<p>Note that I&#8217;ve chosen to install in \/root\/ut-setup, so if you&#8217;ve chosen a different directory than be sure sure to update that bit!<\/p>\n\n\n\n<p>Now, it&#8217;s time to update your \/System\/UT2004.ini settings:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>cd System; nano UT2004.ini;<\/code><\/pre>\n\n\n\n<p>You can use <em>ctrl+w<\/em> to search in nano.  Update these fields:<\/p>\n\n\n\n<p><strong>ServerName:<\/strong> The name of your server that will appear in the server browser.<br><strong>ShortName:<\/strong> A shorter name for your server that will appear in the scoreboard.<br><strong>ServerRegion:<\/strong> The region of your server that will affect the ping calculation.  USA is 0.<br><strong>AdminName<\/strong>: The name of the server administrator.<br><strong>AdminEmail<\/strong>: The email address of the server administrator.<br><strong>MessageOfTheDay<\/strong>: The message that will be displayed to players when they join the server.<br><strong>AdminPassword<\/strong>: The password that will allow you to access the server administration commands.<br><strong>bEnabled=False<\/strong> This needs to be changed to <code>bEnabled=True<\/code><\/p>\n\n\n\n<p>Within the same config file, look for the following lines:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;IpDrv.MasterServerLink] LANPort=11777 LANServerPort=10777 MasterServerList=(Address=\"ut2004master1.epicgames.com\",Port=28902) MasterServerList=(Address=\"ut2004master2.epicgames.com\",Port=28902)<\/code><\/pre>\n\n\n\n<p>These are the old, offline UT2004 servers.  Add the following line:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>MasterServerList=(Address=\"utmaster.openspy.net\",Port=28902)<\/code><\/pre>\n\n\n\n<p>According to other [newer] guides, you can replace the original UT2004 master servers with this one (or any other live servers), however, from my experience the server fails to move on to the custom server if this master server is missing.<\/p>\n\n\n\n<p>With fingers crossed, run the server!  Update the AdminName= and AdminPassword= in the command below before running.<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>.\/ucc-bin server ONS-Torlan?game=Onslaught.ONSOnslaughtGame?AdminName=admin?AdminPassword=password123 ini=UT2004.ini log=server.log<\/code><\/pre>\n\n\n\n<p>With luck, you should see something like:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>MasterServerUplink: Connection to utmaster.openspy.net established.<br>Approval APPROVED<br>Master server assigned our MatchID: 1234<\/code><\/pre>\n\n\n\n<p>Congratulations!  You should now see your server listed here:<\/p>\n\n\n\n<p><a href=\"http:\/\/beta.openspy.net\/en\/server-list\/ut2004\">http:\/\/beta.openspy.net\/en\/server-list\/ut2004<\/a><\/p>\n\n\n\n<p><strong>Tips:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>There are other active communities with online master servers you can advertise to.  If you find errors when you advertising to several different ones simultaneously, you may need to limit to 3.<\/li>\n\n\n\n<li>You can login to your server&#8217;s web administration panel at http:\/\/your.servers.IP.address:80 .  This port can be changed in the UT2004.ini next to ListenPort .<\/li>\n\n\n\n<li>If you&#8217;re not able to connect to your server&#8217;s web admin panel, or not able to advertise online, check your firewall settings.<\/li>\n\n\n\n<li>This may (should?) work on Debian 10, and Ubuntu 20\/22 flavors as well, I just have not tested it.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Flash-forward 19 years later, and UT2004 is still one of the best FPS known to mankind. In it&#8217;s honor, I provide you with this guide: Installing an Unreal Tournament 2004 (UT2004) Server on Debian 12. First, we create our new space for our server (cd into whatever directory you want this installed, note that I&#8217;m<\/p>\n<div class=\"read-more-wrapper\"><a class=\"read-more\" href=\"https:\/\/retro.unlimitedweb.space\/?p=173\" title=\"Read More\"> <span class=\"button \">Read More<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":220,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[22,20,19,21],"class_list":["post-173","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pc-gaming","tag-server","tag-unreal-tournament-2004","tag-ut2004","tag-ut2k4"],"_links":{"self":[{"href":"https:\/\/retro.unlimitedweb.space\/index.php?rest_route=\/wp\/v2\/posts\/173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/retro.unlimitedweb.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/retro.unlimitedweb.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/retro.unlimitedweb.space\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/retro.unlimitedweb.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=173"}],"version-history":[{"count":50,"href":"https:\/\/retro.unlimitedweb.space\/index.php?rest_route=\/wp\/v2\/posts\/173\/revisions"}],"predecessor-version":[{"id":228,"href":"https:\/\/retro.unlimitedweb.space\/index.php?rest_route=\/wp\/v2\/posts\/173\/revisions\/228"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/retro.unlimitedweb.space\/index.php?rest_route=\/wp\/v2\/media\/220"}],"wp:attachment":[{"href":"https:\/\/retro.unlimitedweb.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/retro.unlimitedweb.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/retro.unlimitedweb.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}