Sign in to follow this  
Followers 0

How To Install A Counter-Strike Source Server On Ubuntu

1 post in this topic


2 GB of RAM and running Ubuntu.

Getting Started

Update the packages:

sudo apt-get update -y && sudo apt-get upgrade -y

Install these additional libraries:

sudo apt-get install lib32gcc1 libc6-i386

Add a new user for running the game server:

sudo adduser steam 

(For security purposes).
Login to the new user that we created:

su steam

Downloading SteamCMD

SteamCMD is a free tool created by Valve and used to download Game Server files easily.

As you are logged as the steam user, make sure you’re in /home/steam
Create a directory for SteamCMD:

mkdir SteamCMD

Navigate to the newly created directory and download the SteamCMD archive:

cd steamCMD && wget

Extract the archive:

tar -xvzf steamcmd_linux.tar.gz

Running SteamCMD

Now we get to the exciting bit, downloading the actual files that make the game server operate.


Login to Steam servers anonymously:

login anonymous

Set the install directory:

force_install_dir ./css/

Download the game files:

app_update 232330 validate 

(This may take a while).
Quit the SteamCMD console:


Running the CS:S server

Navigate to the CS:S Installation Directory:

cd css

Execute this command to run the server:

./srcds_run -console -game cstrike -maxplayers 20 - port 27015 +map de_dust2


Your CS:S server should be up and running! To connect to it use the IP

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0