skipToMainContent
Loading AshHost...

How to Set Up a Counter-Strike 2 (CS2) Dedicated Server on Linux VPS

Stampa
Esports Dedicated Nodes

How to Deploy a Counter-Strike 2 (CS2) Dedicated Server

Host your own 5v5 competitive scrims, practice servers, and community matches with tick-rate stability. This guide walks you through deploying a CS2 dedicated server on an Ash Host Ubuntu VPS using SteamCMD.

Recommended VPS Specifications for CS2:

  • Operating System: Clean Ubuntu 22.04 LTS (64-bit)
  • CPU: 2 to 4 high-frequency AMD cores (CS2 requires strong single-core performance)
  • RAM: 4 GB minimum for standard 5v5; 8 GB recommended for 20+ player casual/retake servers
  • Storage: 50 GB+ NVMe disk space (CS2 server files require approximately 35 GB of space)

Step 1: Install Dependencies & SteamCMD

Connect to your VPS via SSH as root, update packages, and install 32-bit architecture libraries required by SteamCMD:

# Enable 32-bit architecture and update repositories
dpkg --add-architecture i386
apt update && apt upgrade -y

# Install prerequisites and SteamCMD
apt install -y lib32gcc-s1 lib32stdc++6 curl wget tar libsdl2-2.0-0:i386 screen

# Create a dedicated non-root user for running CS2
adduser --disabled-password --gecos "" cs2server
su - cs2server

Step 2: Download CS2 Server Files via SteamCMD

As user cs2server, download and extract SteamCMD, then install the CS2 dedicated server app (App ID: 730):

# Download SteamCMD
mkdir -p ~/steamcmd && cd ~/steamcmd
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -

# Download CS2 Server (takes 5 to 15 minutes depending on connection)
./steamcmd.sh +force_install_dir /home/cs2server/cs2 +login anonymous +app_update 730 validate +quit

Step 3: Generate Your Steam GSLT Token

Valve requires every public CS2 server to have a Game Server Login Token (GSLT):

  1. Visit Steam Game Server Account Management.
  2. Log in, enter 730 for the App ID, add a description (e.g. AshHostCS2), and click Create.
  3. Copy the generated 32-character login token.

Step 4: Create server.cfg

Create your main match configuration file:

nano /home/cs2server/cs2/game/csgo/cfg/server.cfg

Paste the following standard configuration:

hostname "Ash Host | Competitive 5v5 India [Low Ping]"
rcon_password "SetYourAdminPassword123"
sv_password "" // Leave empty for public, or set a password for private scrims
sv_cheats 0
mp_autoteambalance 1
mp_limitteams 1
sv_lan 0

Step 5: Launch the Server

Launch the CS2 server inside a screen session so it remains running 24/7 after you disconnect:

screen -S cs2
cd /home/cs2server/cs2/game/bin/linuxsteamrt64
./cs2 -dedicated +ip 0.0.0.0 -port 27015 +game_type 0 +game_mode 1 +map de_dust2 +sv_setsteamaccount YOUR_GSLT_TOKEN_HERE

Detach from the screen by pressing Ctrl+A then D. To view the console again anytime, run screen -r cs2.

Need Low-Ping Esports Hosting in India?

Ash Host Singapore AMD EPYC VPS nodes deliver consistent 30ms to 50ms latency across Indian ISPs with enterprise DDoS filtering.

Order High-Performance VPS →

Hai trovato utile questa risposta?

Powered by WHMCompleteSolution

⚡ Trusted by 5,000+ Customers

India's Most Trusted Game Server Hosting

Discord bots, FiveM, SA-MP, Minecraft & more — powered by enterprise infrastructure. 99.9% uptime, 24/7 support, rated 4.9★ on Trustpilot.

5K+Customers
99.9%Uptime
4.9★Trustpilot
24/7Support