How to Install a Counter-Strike: Global Offensive (CS:GO) Server on Ubuntu Server (22.04/24.04)
Hosting your own CS:GO dedicated server on a Cloudnium VPS is a great way to play custom matches with friends, run tournaments, or build a public community. This guide walks you through installing and running a CS:GO server on Ubuntu 22.04 or 24.04.
✅ Prerequisites
Before getting started:
-
Ubuntu Server 22.04 or 24.04 (64-bit)
-
At least 2 CPU cores, 4GB RAM, and 15GB+ disk space
-
A Steam account (needed to get a SteamCMD login token)
-
A non-root user with
sudoprivileges -
Open ports: 27015 UDP, 27020 UDP, and optionally 27005 UDP (for client communication)
🧱 Step 1: Install Required Packages
First, update your server and install dependencies:
If steamcmd is not available on your distro, you can manually install it later.
📁 Step 2: Create a Server User (Optional but Recommended)
Run the server under a separate user for security:
📥 Step 3: Install SteamCMD
If not installed from APT, install it manually:
🎮 Step 4: Download CS:GO Dedicated Server
Create a directory for the CS:GO server:
Launch SteamCMD and install the server:
Once inside SteamCMD, run the following (replace YOURLOGIN with anonymous or your Steam credentials if needed):
This will download the CS:GO Dedicated Server into ~/csgo-ds.
⚙️ Step 5: Create a Startup Script
Navigate to your server folder:
Create a launch script:
Paste the following into it:
Replace YOUR_GSLT with your Game Server Login Token from https://steamcommunity.com/dev/managegameservers
Make the script executable:
🔒 Step 6: Open Firewall Ports
Enable required ports:
🚀 Step 7: Start the Server
Start your server with:
Or use screen to keep it running in the background:
To detach: Ctrl + A, then D
To reattach: screen -r csgo
🧠 Tips and Config
Your configuration files can be found under:
To create or modify server settings (e.g., hostname, RCON password, max players), edit this file:
Example contents:
🏁 You're Ready!
Your CS:GO server should now be live! Friends can connect using your server’s public IP address and port 27015.