Dedicated legacy Linux server: Difference between revisions
From TF2 Classified Wiki
More actions
added systemd maintance commands. Added emphasis on prerequisites. Added SteamCMD valve wiki reference and extra help |
Added sectioning though this might be ugly |
||
| Line 8: | Line 8: | ||
<sup>*</sup>'''Note''': This guide was written for and tested on Ubuntu Server 22.04 LTS, however any Debian-based distro should work similarly and fine using this guide. | <sup>*</sup>'''Note''': This guide was written for and tested on Ubuntu Server 22.04 LTS, however any Debian-based distro should work similarly and fine using this guide. | ||
== Reading this article == | == Reading this article == | ||
<!-- Originally from https://wiki.teamfortress.com/wiki/Linux_dedicated_server#Reading_this_article --> | <!-- Originally from https://wiki.teamfortress.com/wiki/Linux_dedicated_server#Reading_this_article --> | ||
| Line 46: | Line 47: | ||
''<sup>*</sup>'''Note''':See [https://developer.valvesoftware.com/wiki/SteamCMD#Package_From_Repositories|Valve Developer Wiki SteamCMD Repository Packages] if your distro is having issues getting steamcmd. | ''<sup>*</sup>'''Note''':See [https://developer.valvesoftware.com/wiki/SteamCMD#Package_From_Repositories|Valve Developer Wiki SteamCMD Repository Packages] if your distro is having issues getting steamcmd. | ||
'' | '' | ||
Login to the steam user you created: | Login to the steam user you created: | ||
| Line 60: | Line 60: | ||
Give it a few, and when it’s finished we can run <code>exit</code>. | Give it a few, and when it’s finished we can run <code>exit</code>. | ||
= Downloading TF2 Classic = | |||
The fastest way to download TF2Classic is to use TF2CDownloader. | The fastest way to download TF2Classic is to use TF2CDownloader. | ||
| Line 77: | Line 77: | ||
<pre>mv tf2classic /opt/tf2classic/server/</pre> | <pre>mv tf2classic /opt/tf2classic/server/</pre> | ||
-= Server Configuration =- | |||
Generate your server config(s) on [https://cfg.tf/ cfg.tf]. | Generate your server config(s) on [https://cfg.tf/ cfg.tf]. | ||
| Line 120: | Line 120: | ||
$ ln -s server.so server_srv.so | $ ln -s server.so server_srv.so | ||
</pre> | </pre> | ||
= Running the server = | |||
== Creating the server script == | == Creating the server script == | ||
| Line 144: | Line 146: | ||
</pre> | </pre> | ||
Finally, all you need to do to start the server is run <code>./runserver.sh</code>! | Finally, all you need to do to start the server is run <code>./runserver.sh</code>! | ||
| Line 204: | Line 205: | ||
You may create as many services as you have TF2C servers but remember to name the service files uniquely, enable them in <code>systemctl</code>, and add them to the <code>crontab</code>. | You may create as many services as you have TF2C servers but remember to name the service files uniquely, enable them in <code>systemctl</code>, and add them to the <code>crontab</code>. | ||
== Systemd Manual Start, Stop, Restart/Update == | === Systemd Manual Start, Stop, Restart/Update === | ||
If you don't wish to use the service files above to automatically boot servers, or you need to perform these actions for maintenance: you may issue commands to manually ''start'', ''stop'', ''restart'', or ''update'' the server(s) through systemd. | If you don't wish to use the service files above to automatically boot servers, or you need to perform these actions for maintenance: you may issue commands to manually ''start'', ''stop'', ''restart'', or ''update'' the server(s) through systemd. | ||