Paste the Steam API key and Workshop Collection ID into your startup script. It is located at the end of the url, denoted by the ‘X’s here: Īcquire a Steam API key from the Steam API Keys page. Hostname "server_hostname" sv_password "server_password" sv_timeout 60 rcon_password "rcon_password" mp_autoteambalance 1 mp_limitteams 1 writeidĬreate a collection of addons you want to install on your server at Garry’s Mod Collections. This is optional, but below is a sane starting point. The default server.cfg file is blank, and any configuration options you want to specify for the server must be added. To exit vim, press Esc, then type :x and hit Enter. home/steam/Steam/gmod/srcds_run -game garrysmod +maxplayers 20 +map gm_flatgrass Be sure that the binary flags are the same as in your startup script. Open Crontab (this will open in vim): crontab -eĮnter the startup command. This will automatically restart Garry’s Mod when your server reboots. The Garry’s Mod wiki has instructions to use a script to update Gmod rather than manually through SteamCMD. Make the script executable: chmod +x ~/startgmod.sh The srcds_run binary can take many more arguments which you can see at Valve’s Developer wiki. When run, the script will change directories to ~/Steam/gmod and execute Garry’s Mod in a Screen session. srcds_run -game garrysmod +maxplayers 20 +map gm_flatgrass Once the download is complete, you should see this output: Success! App '4020' fully installed. If the download looks as if it has frozen, be patient. Install Gmod to the Steam user’s home directory: force_install_dir. Or log in with your Steam username: login example_user steamcmd.shįrom the SteamCMD prompt, login anonymously: login anonymous Install an additional 32-bit package: sudo yum install ncurses-libs.i686īe sure you are in the directory ~/Steam, then access the Steam> prompt. sudo firewall-cmd -zone=public -add-port=27000 27030/udp -permanent This inserts a rule for port 10999 after the pre-existing rules for SteamCMD. This command assumes that you have only the firewalld rules in place from the SteamCMD guide. Prerequisites for Garry’s Modįrom the SteamCMD guide, two additional steps are needed specifically for Gmod.Īdd a firewall rule. If you’re not familiar with the sudo command, you can check our Users and Groups guide. Commands that require elevated privileges are prefixed with sudo. This guide is written for a non-root user.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |