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

Dedicated Linux server: Difference between revisions

From TF2 Classified Wiki
Webb (talk | contribs)
Add troubleshooting about CPU usage with service file workaround
Webb (talk | contribs)
Initial Sourcemod setup
Line 240: Line 240:
You can enable this by adding <code>sv_use_steam_networking 1</code> to <code>classified/tf2classified/cfg/default.cfg</code>.
You can enable this by adding <code>sv_use_steam_networking 1</code> to <code>classified/tf2classified/cfg/default.cfg</code>.


If you want your server to appear on the server browser with SDR enabled you will need to supply a GLST token. You can acquire a key by going to [https://steamcommunity.com/dev/managegameservers this page]. Once you've got it, put <code>sv_setsteamaccount $KEY</code> in your configuration, replacing $KEY with the token from the page.  
If you want your server to appear on the server browser with SDR enabled you will need to supply a GLST token. You can acquire a key by going to [https://steamcommunity.com/dev/managegameservers this page]. Once you've got it, put <code>sv_setsteamaccount $KEY</code> in your configuration, replacing $KEY with the token from the page.
 
=== Installing Sourcemod ===
 
SourceMod is a server modding platform that provides admin tools, permissions, and plugin support. Installing it is strongly recommended if you plan to run a publicly-facing server.
 
You'll need to install the '''latest development version''' of SourceMod, as well as MetaMod which SourceMod depends on to work. '''It will not work with stable releases currently'''. As of writing this article, it's 7301 and 1389 respectively..
 
<pre>
$ cd ~
$ wget https://mms.alliedmods.net/mmsdrop/2.0/mmsource-2.0.0-git1389-linux.tar.gz -O /tmp/mm.tar.gz
$ wget https://sm.alliedmods.net/smdrop/1.13/sourcemod-1.13.0-git7301-linux.tar.gz -O /tmp/sm.tar.gz
$ tar -xf /tmp/mm.tar.gz
$ tar -xf /tmp/sm.tar.gz
$ mv addons ~/classified/tf2classified
$ mv cfg/sourcemod ~/classified/tf2classified/cfg
$ rm -r cfg
$ rm /tmp/mm.tar.gz
$ rm /tmp/sm.tar.gz
</pre>
 
Once the server starts it should work. A good way to test if everything is running properly is to use the <code>!motd</code> command in chat. If the MOTD pops up after the command that means SourceMod is working. For further information on setting up SourceMod, read [https://wiki.alliedmods.net/Category:SourceMod_Documentation the documentation].
 
Existing SourceMod plugins are not guaranteed to work and may require special steps or patching to get working.


== Troubleshooting ==
== Troubleshooting ==