srcds.exe -game garrysmod +gamemode prophunt -autoupdate
srvsteamgmodgarrysmodgamemodesprophuntgamemodeconfig.lua
.srcds.exe -game garrysmod +gamemode prophunt -autoupdate
C:steamcmdgmodgarrysmodmaps
folder.C:steamcmdgmodgarrysmodcfgserver.cfg
. Here is an example of a simple one.root
. These programs are perfectly capable of running under an unprivileged user. Do yourself a favor and create an entirely separate user to run everything. We’re going to create a user that doesn’t have SSH or sudo
privileges. If you absolutely must have SSH access for this user, consider using SSH keys instead of adding a password.archie
, with a home directory of /home/archie
..tar.gz
file does not contain a directory of its own, I recommend creating a new directory and extracting the archive there.steamcmd
for the first time, it will likely require an update before you can download the dedicated server programs.Steam>
prompt, simply type quit
or press Ctrl+C to end the program.force_install_dir
paths to match your chosen user. Again, refrain from spaces and capital letters in directory names.+runscript
argument for steamcmd to run all the commands in the file. Note that steamcmd
will complain if you don’t specify an absolute path to the script file.steamcmd
shell upon completion.mount.cfg
file on Linux:/home/archie/source-games/garrys-mod-ds/garrysmod/cfg
and open up mount.cfg
in your favorite editor. Fill in the entries for cstrike
and tf
as shown below.server.cfg
and insert the following barebones settings. You’ll need to substitute hostname
and ip
with your server’s hostname and public IP address, respectively./home/archie/source-games/garrys-mod-ds/srcds_run
. If you’d like to host workshop content, check out Workshop for Dedicated Servers. Here’s an example launcher for the “Prop Hunt” gametype:sv_downloadurl
(optional).gma
(Garry’s Mod Addon) files. In order to run it on Linux, you’ll need to install mono and xvfb from your distribution’s package manager..gma
addons and compresses them in a sv_downloadurl
compatible fashion. Per usual, adjust the paths at the top to fit your preference.EXTRACT_DIR
from the script above. Be sure to enable directory indexes. Finally, add the sv_downloadurl
configuration option to your server.cfg
file.gma-extract.sh
script and wait patiently..bz2
files in your EXTRACT_DIR
, clients that connect to your server should be able to download files from your server with blazing speed!steamcmd
setup script again.srcds_run
binary, that is. You don’t need to restart your whole system.)