Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Dedicated legacy Linux server: Difference between revisions

From TF2 Classified Wiki
We need 22.04 if we want to depend on 7-Zip here. I don't think it should meaningfully change the process.
Use TF2CDownloader now that it supports Ubuntu 20.04
Line 43: Line 43:
</code>
</code>


Install SteamCMD, 7-Zip, and miscellaneous packages that we'll be using.
Install SteamCMD, and miscellaneous packages that we'll be using.


<code>
<code>
<nowiki>#</nowiki> apt install steamcmd 7zip aria2 tilde lib32z1 libncurses5:i386 libbz2-1.0:i386 lib32gcc1-s1 lib32stdc++6 libtinfo5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 libcurl4-gnutls-dev libcurl4-gnutls-dev:i386
<nowiki>#</nowiki> apt install steamcmd unzip aria2 tilde lib32z1 libncurses5:i386 libbz2-1.0:i386 lib32gcc1-s1 lib32stdc++6 libtinfo5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 libcurl4-gnutls-dev libcurl4-gnutls-dev:i386
</code>
</code>


Line 63: Line 63:


== Downloading TF2 Classic ==
== Downloading TF2 Classic ==
The fastest way to download TF2Classic is to use a command-line download manager called Aria2 in combination with a "Metalink" which downloads from many mirrors at once.
The fastest way to download TF2Classic is to use TF2CDownloader.


Run:
Run:


<code>
<code>
aria2c --bt-hash-check-seed=false --seed-time=0 https://wiki.tf2classic.com/misc/tf2classic-latest.meta4
$ wget https://github.com/tf2classic/TF2CDownloader/releases/download/2022-06-09/TF2CDownloaderLinux
$ chmod +x ./TF2CDownloaderLinux
$ ./TF2CDownloaderLinux
</code>
</code>


It may produce some harmless errors in case any of the mirrors in the Metalink are currently inactive, but it will download the <code>tf2classic.zip</code> file rapidly, and it will automatically verify that the downloaded file isn't corrupted.
And follow the prompts.


Extract the downloaded file by running <code>7zz x tf2classic.zip</code>
You'll need to move the extracted directory into your SDK 2013 MP folder:  
 
Then finally move the directory into your SDK 2013 MP folder:  


<code>mv tf2classic /opt/tf2classic/server/</code>
<code>mv tf2classic /opt/tf2classic/server/</code>
Line 86: Line 86:
Upload the generated ZIP file to your server using SFTP, unzip the folder using:
Upload the generated ZIP file to your server using SFTP, unzip the folder using:


<code>7zz x <archive>.zip</code>
<code>unzip <archive>.zip</code>


And merge the <code>cfg</code> folder with <code>/opt/tf2classic/server/tf2classic/cfg/</code>.
And merge the <code>cfg</code> folder with <code>/opt/tf2classic/server/tf2classic/cfg/</code>.