Dedicated legacy Linux server extras: Difference between revisions
From TF2 Classified Wiki
More actions
mNo edit summary |
No edit summary |
||
| Line 97: | Line 97: | ||
===Setting yourself as the “root” admin user and finalizing.=== | ===Setting yourself as the “root” admin user and finalizing.=== | ||
To register yourself as an administrator on your server | To register yourself as an administrator on your server's SourceMod, we have to add people to <code>admins_simple.ini</code> file. | ||
You want to find out your SteamID using a website like [https://steamid.io/ steamid.io]. Enter your steam community URL to the site and you should get set of info that includes your <code>steamID</code>, which should be in <code>STEAM_0:1:16</code> format. | You want to find out your and/or your to-be administrator's SteamID using a website like [https://steamid.io/ steamid.io]. Enter your steam community URL to the site and you should get set of info that includes your <code>steamID</code>, which should be in <code>STEAM_0:1:16</code> format. | ||
Open the file <code> | Open the file <code>../server/tf2classic/addons/sourcemod/configs/admins_simple.ini</code> with a text editor, <code>nano</code> for example. The file will be full of guidance and additional information about how the file works after slashes. Do not worry about leaving it all in as every line beginning with number of slashes are simply ignored, so this filled looking file is empty as it comes to how SourceMod handles it. Punch a new line at the bottom of this file and enter the following: | ||
<code>"STEAM_0:1:16" "99:z"</code> | <code>"STEAM_0:1:16" "99:z"</code> | ||
Replace <code>STEAM_0:1:16</code> with your own or your master administrator's steamID that you extracted with afformentioned [https://steamid.io steamid.io] for example. "99:z" in this case assigns high | Replace <code>STEAM_0:1:16</code> with your own or your master administrator's steamID that you extracted with afformentioned [https://steamid.io steamid.io] for example. "99:z" in this case assigns high immunity level and root (full) access for administration and server control. You can add more people to <code>admins_simple.ini</code> file but you should limit their access to the server appropriately by using examples within the file itself and documentation from SourceMod's wiki: https://wiki.alliedmods.net/Adding_Admins_(SourceMod) | ||
Save, exit and start/restart your server and everything should be running fine. You can | Save, exit and start/restart your server and everything should be running fine. You can test this by typing <code>meta version</code> in your server console (or RCON). You should see a line like <code>"Loaded As: Valve Server Plugin."</code>. Additionally, if you assigned yourself as an administrator for the server, typing <code>!admin</code> or <code>/admin</code> in chat should bring up administrative menu on player hud. <code>sm_admin</code> should additionally work when typed in to your client console window, and you can use <code>sm_rcon</code> to use SourceMod to relay any console command to the server, if you set yourself up with <code>z</code> flag. | ||
Further tweaking of SourceMod to suit your needs is out of scope for this guide. You can get familiar with SourceMod's other functions and configuration in their wiki: [https://wiki.alliedmods.net/Category:SourceMod_Documentation wiki.alliedmods.net/Category:SourceMod_Documentation] | Further tweaking of SourceMod to suit your needs is out of scope for this guide. You can get familiar with SourceMod's other functions and configuration in their wiki: [https://wiki.alliedmods.net/Category:SourceMod_Documentation wiki.alliedmods.net/Category:SourceMod_Documentation] | ||
Additionally, if you have setup RCON on your server before setting up SourceMod, you should disable it by wiping <code>RCON_PASSWORD</code> empty in <code>server.cfg</code>. After it is working, using SourceMod and <code>sm_rcon</code> for RCON commands is more secure for publicly hosted servers. | |||