Workshop

Many Steam games support the steam workshop. It is an easy way to share community maps and addons and is very useful for custom servers, without needing to worry about setting up FastDL. LinuxGSM adds workshop pre-configuration to game server scripts as when available.

You will need a Steam API key, a collection to subscribe to (you can create one), and some config parameters in your LinuxGSM config.

Getting a Steam API Key

Simply go to https://steamcommunity.com/dev/apikey and follow instructions.

Do not share this key.

Creating a collection and get the collection ID

Go browse collections for your desired game, and click "Create a collection".

Add some addons to the collection, then publish the completed collection. Then get the collection page id which can be found on the page URL. For example:

https://steamcommunity.com/sharedfiles/filedetails/?id=274397080

The collection id would be 274397080.

Server Configurations

Garry's Mod

For Garry's Mod, edit these lines in your LinuxGSM config

wsapikey="YOUR_STEAM_API_KEY"
wscollectionid="YOUR_COLLECTION_ID"

Setting the workshop collection ID only adds content to the server, and players will only download maps from the collection. This is because workshop files must be set in the workshop.lua file in:

/home/gmod/serverfiles/garrysmod/lua/autorun/server/

Example line:

resource.AddWorkshop( "workshop_ID_#_here" ) --comment
resource.AddWorkshop( "1728099077" ) --Rick Roll SENT

I do not recommend putting a collection ID in this file if you are hosting a server with a large map list, this will cause players to download every map on their first connection. Instead it is recommended to put every individual workshop item except maps in this file.

Counter-Strike Global Offensive

For CSGO, edit these lines in your LinuxGSM config

wsapikey="YOUR_STEAM_API_KEY"
wscollectionid="YOUR_COLLECTION_ID"
wsstartmap="

Killing Floor 2

For KF2 Server using LinuxGSM, workshop content is added in LinuxServer-KFEngine.ini under:

/home/user/serverfiles/KFGame/Config/kf2server

Official Guide Here

While following the guide, remember PCServer-KFEngine.ini is instead LinuxServer-KFEngine.ini

Killing floor 2 has a known workshop problem.