1. Server installieren
su - steam
cd ~/steamcmd
./steamcmd.sh +force_install_dir ~/cs2 +login anonymous +app_update 730 validate +quit
2. Game Server Login Token holen
Gehe zu Steam Game Server Account Management und erstelle einen Token für App-ID 730. Du brauchst einen Steam-Account mit CS2 in deiner Bibliothek.
3. Server konfigurieren
Erstelle ein Startskript:
nano ~/cs2/start.sh
#!/bin/bash
cd /home/steam/cs2
./game/bin/linuxsteamrt64/cs2 \
-dedicated \
-port 27015 \
-console \
-usercon \
+game_type 0 \
+game_mode 1 \
+mapgroup mg_active \
+map de_dust2 \
+sv_setsteamaccount DEIN_GSLT_TOKEN \
+sv_lan 0
chmod +x ~/cs2/start.sh
Gängige Spielmodi:
| game_type |
game_mode |
Modus |
| 0 |
0 |
Casual |
| 0 |
1 |
Competitive |
| 1 |
0 |
Arms Race |
| 1 |
2 |
Deathmatch |
4. systemd-Service erstellen
Wechsle zurück zu Root:
nano /etc/systemd/system/cs2.service
[Unit]
Description=Counter-Strike 2 Server
After=network.target
[Service]
User=steam
WorkingDirectory=/home/steam/cs2
ExecStart=/home/steam/cs2/start.sh
Restart=on-failure
RestartSec=15
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl enable cs2
systemctl start cs2
5. Firewall-Ports öffnen
Öffne folgende Ports in der Sitequest-Firewall:
| Port |
Protokoll |
Zweck |
| 27015 |
TCP/UDP |
Spiel-Traffic und Queries |
| 27020 |
TCP |
RCON (optional) |
Mit ufw:
ufw allow 27015
ufw allow 27020/tcp
6. Verbinden
Öffne in CS2 die Konsole (~) und tippe:
connect DEINE_SERVER_IP:27015
Oder füge deinen Server in den Favoriten des Steam-Server-Browsers hinzu.
Nächste Schritte
- Ein RCON-Passwort für Remote-Administration setzen:
+rcon_password DEIN_PASSWORT
server.cfg in game/csgo/cfg/ für Rundenzeiten, Friendly Fire usw. konfigurieren
- MetaMod/CounterStrikeSharp für Plugins installieren
- Custom Maps über Workshop-Collection-IDs hinzufügen