-
-
Notifications
You must be signed in to change notification settings - Fork 16
Dedicated Server (Linux)
You can install TC2 on a VPS or server rack and run it as a Source dedicated server.
-
Create a TC2 folder with
mkdir -p /home/$USER/bin/tc2. -
Get a ZIP of the game onto your server, and extract it into this new folder. Additional instructions:
cd /home/$USER/bin/tc2- Transfer/download the ZIP, using rsync or scp, or some other method.
sudo apt install 7zip7z x game.ziprm game.zip
-
Install SteamCMD.
-
Install Steam Linux Runtime 3.0 (SLR3). Run
steamcmd +force_install_dir ./SteamLinuxRuntime_sniper +login anonymous +app_update 1628350 validate +quitor define$SLR_SNIPER_PATHto theruncommand path for SLR3. -
Install TF2 Dedicated Server. Run
steamcmd +force_install_dir ./tf2ds +login anonymous +app_update 232250 validate +quit. You can skip this step if you already have it installed. -
In the
tc2folder, runln -s /home/$USER/.local/share/Steam/steamcmd/tf2ds ./tf2ds. -
In the
tc2folder, runln -s ./tf2ds ./tf2.- Pro tip:
tf2ds/is used for dedicated server binaries, andtf2/is used for HL2/TF2 assets (VPKs). Since we can get both from one app, we link them together. But if you have another setup, you can link them to the corresponding folders that you have.
- Pro tip:
-
Run
mkdir -p /home/$USER/.steam/sdk64. -
Run
ln -s /home/$USER/.local/share/Steam/steamcmd/linux64/steamclient.so /home/$USER/.steam/sdk64/steamclient.so. -
In the
tc2folder, run./start_dedicated_tc2.sh -nosteamclient.
On a normal desktop that runs a graphical session with Steam, you can also run a dedicated server easily.
- Open Steam.
- In Steam, install Team Fortress 2.
- In Steam, install Source SDK Base 2013 Dedicated Server.
- In Steam, install Steam Linux Runtime 3.0.
- Install Team Comtress 2 normally through the itch.app.
- In the TC2 installation folder, run
./start_dedicated_tc2.sh. - TC2 will automatically find its installed dependencies through Steam, and start the server. Steam must be running for this to happen.