Prerequisites
- OS: Ubuntu 20.04/22.04 LTS or Debian (Recommended).
- Root Access: You will need sudo privileges.
- Hardware: At least 2 CPU cores, 4GB RAM, and 50GB storage dedicated server.
Step 1: Install System Dependencies
Before we download any Counter-Strike Global files, we need to update the system and install the necessary libraries to run Steam servers.
Open your terminal and run:
sudo apt update && sudo apt upgrade -y
sudo apt install software-properties-common lib32gcc-s1 screen wget -y
Step 2: Create a Security User
It is unsafe to run game servers as the root user. We will create a dedicated user named cs2.
sudo adduser cs2
# Follow the prompts to set a password
sudo su - cs2
You are now logged in as the 'cs2' user.
Step 3: Install SteamCMD
Unlike the old days where you might find a direct button to "download counter strike 1.6", modern servers require SteamCMD.
Create a directory for SteamCMD:
mkdir ~/steamcmd && cd ~/steamcmd
Download and extract the tool:
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar -xvzf steamcmd_linux.tar.gz
Step 4: Download Counter-Strike 2 Server Files
Now we use SteamCMD to install the server. We will use App ID 730, which was originally for CS GO but now delivers the Counter-Strike 2 files.
Run the following command (this script automates the login and download process):
./steamcmd.sh +force_install_dir ~/cs2-server +login anonymous +app_update 730 validate +quit
Note: This download is large. If you have a slow connection, grab a coffee.
Step 5: Generate GSLT (Game Server Login Token)
To make your server public (visible in the cs game browser), you need a token from Valve.
- Visit the Steam Game Server Account Management page.
- Use App ID: 730.
- Memo: "Linux CS2 Server".
- Copy the generated login token.
Step 6: Create the Startup Script
We will use a script to launch the server inside a "screen" session, so it keeps running even if you disconnect from the terminal.
Navigate to the server executable folder:
cd ~/cs2-server/game/bin/linuxsteamrt64
Create the start script:
nano start_cs2.sh
Paste the following (Replace YOUR_TOKEN with your GSLT):
#!/bin/bash
./cs2 -dedicated +map de_dust2 +game_type 0 +game_mode 1 +sv_setsteamaccount YOUR_TOKEN -usercon
Save and exit (Ctrl+X, then Y, then Enter).
Make the script executable:
chmod +x start_cs2.sh
Step 7: Configure Basic Settings
Just like in Counter Strike Source or CS 1.6, you need a server.cfg.
Navigate to the config folder:
cd ~/cs2-server/game/csgo/cfg
nano server.cfg
Add your hostname and RCON password:
hostname "My Linux CS2 Server"
rcon_password "YourSecretPassword"
sv_lan 0
Step 8: Launching the Server
To start your server, return to the binary folder and run your script inside a screen session:
screen -S cs2 ./start_cs2.sh
To detach from the screen (leave it running in the background), press Ctrl+A then D. To resume the screen later, type screen -r cs2.
Troubleshooting Connectivity
If friends cannot connect, check your firewall (UFW) to ensure the gaming cs ports are open:
sudo ufw allow 27015/udp
sudo ufw allow 27015/tcp
Frequently Asked Questions (FAQ)
Can I use this guide to host a cs go or counter strike source server?
No. This guide is specifically for counterstrike 2 (the successor to counter strike global). While the method using SteamCMD is similar, the App IDs are different. For counter strike source (cs s), you would need AppID 232330. For counter strike go (cs go), you would need AppID 740. This guide uses AppID 730, which is strictly for the new cs 2.0 engine.
Is setting up a CS2 server harder than a cs 1.6 server?
It is actually smoother. In the days of cs 1.6 counter strike, you had to deal with the old HLDS (Half-Life Dedicated Server) tools. Modern game servers use SteamCMD, which automates the downloading and updating process. However, if you are looking to download counter strike 1.6 server files specifically to play old-school maps, you will need to look for a legacy HLDS tutorial.
Why can't my friends see my steam server?
If your server is running but friends can't join, it is usually a Port Forwarding issue. Unlike a simple LAN cs game, a dedicated internet server requires you to open UDP/TCP ports (usually 27015) on your router. Without this, your gaming cs session will remain offline to the public.
Is counter strike go 2 the same as cs go 2?
Yes. Users search for the game using many names, including cs go 2, counter strike go 2, or simply cs 2.0. They all refer to Counter-Strike 2. This tutorial works for all of them.
Can I run a cs strike 1.6 map on this server?
Not directly. Counter strike 2 uses the Source 2 engine, which is much more advanced than the GoldSrc engine used in cs 1.6. While community modders are working on remaking classic maps (like de_dust2 from cs 1.6 counter), you cannot simply copy and paste old .bsp map files into your new cs2 game folder.
Why Choose Fit Servers Dedicated Servers?
Tired of VPS limitations? Upgrade to Fit Servers dedicated servers for unbeatable performance:
- High Performance Hardware: Latest AMD EPYC CPUs, NVMe SSDs, 128-512 GB DDR5 RAM – perfect for 50+ players/mods.
- Gaming Optimized: Pre installed Ubuntu, DDoS protection up to 10 Tbps, 10 Gbps unmetered bandwidth.
- Scalable & Affordable: Instant provisioning, no overselling starts low, scales easy.
- Uptime Guarantee: 99.99% with redundant power/network.
Get Your Dedicated Server Now at Fit Servers – Experience the power of hardware that keeps pace with your ambition zero lag, total control.
Discover fitservers Dedicated Server Locations
fitservers servers are available around the world, providing diverse options for hosting websites. Each region offers unique advantages, making it easier to choose a location that best suits your specific hosting needs.