Order from the VPS Standard deploy link with Debian 13 preselected. While it provisions, create a Game Server Login Token at steamcommunity.com/dev/managegameservers for app ID 730. Valve requires one before other players can join, and each running instance should have its own.
Install SteamCMD and the game as an unprivileged user:
Next comes Metamod: take the Linux build of Metamod:Source 2.x dev, build 1467 or newer, extract it into server/game/csgo/, and add the line Game csgo/addons/metamod directly under Game_LowViolence csgo_lv in server/game/csgo/gameinfo.gi. That one line is the usual reason MatchZy "vanishes" after a patch: when an update replaces gameinfo.gi, Metamod stops loading, and CounterStrikeSharp and every plugin go with it. The failure is common enough that at least one game host publishes a script whose only job is to re-enable Metamod after CS2 updates. A two-line check does the same and runs before every start:
Then unzip MatchZy-0.8.15-with-cssharp-linux.zip from the releases page into server/game/csgo/. It carries CounterStrikeSharp, so Metamod is the only piece you install by hand. In the server console, meta list should show CounterStrikeSharp and css_plugins list should show MatchZy. If MatchZy is missing, check the CounterStrikeSharp version (v369 or newer) and the .NET runtime first; installing counterstrikesharp-with-runtime from its own release page settles most cases. If the console complains about .steam/sdk64/steamclient.so, Valve's troubleshooting section gives the symlink to add.
Run it under systemd so that an update, the gameinfo.gi fix and the start always happen in that order:
cs2.env holds a single line, GSLT=…, readable by cs2 only. Valve's documentation says to launch through cs2.sh rather than the binary in linuxsteamrt64, hence the path. On match day after a Valve patch, systemctl restart cs2-matchzy is the whole procedure.
A few settings decide whether demos and admin rights survive. Put tv_enable 1 and your tv_delay in server.cfg: MatchZy records through GOTV, and its documentation warns that changing either in warmup.cfg or live.cfg causes demo problems. Set matchzy_demo_path to a folder of its own such as demos/ (no leading slash, trailing slash required). Admins go in cfg/MatchZy/admins.json, which MatchZy creates on first use. Updates keep admins.json, database.json and whitelist.cfg but overwrite the .cfg files in cfg/MatchZy, so keep your edited copies outside the game tree. After a CS2 patch, also check for a newer matchzy.json gamedata file, which practice-mode rethrows depend on.
On the firewall, open UDP 27015 and 27020 to everyone and accept TCP 27015 only from your panel's address and your own. RCON is the one port on this machine worth guarding.
For demos, MatchZy can POST each zipped demo to an HTTP endpoint (matchzy_demo_upload_url) when recording stops, which suits a panel that already accepts uploads. Without one, copy the demo folder to an S3 bucket on our object storage from a systemd timer: rclone copy --min-age 10m "$DEMO_DIR" pty1-s3:league-demos. Use copy rather than sync, so pruning local disk never deletes the archive, and --min-age so a demo still being written is skipped.