How to Install Counter Strike Global Offensive Server on Linux (CentOS, Ubuntu, Debian)

0 comment

In this article, I will show you how to install counter-strike Global Offensive servers in Ubuntu, CentOS, and Debian. The 32-bit dependencies required for CSGO servers are different for each Linux distribution rest server installation process is the same for all Linux distribution.

To run server smoothly, I recommend following requirement for your Linux server:

Requirement For CSGO Server:

  • 2Gb Ram
  • 2 vCPU
  • 40 Gb Disk Space

Video Tutorial For Server Installation:

I will be using Digital Ocean cloud of 2Gb ram 2vcpu. It just cost 15$+tax for a month.

Register to Digital Ocean using this link https://m.do.co/c/65692b953be2 and get 100$ Free Credit for 60 Days.

Steps For Installation:

1. Installing dependencies for your Linux distribution.

For CentOS Users:

yum install epel-release
yum install wget unzip psmisc glibc.i686 libstdc++ libstdc++.i686 screen nano -y

For Ubuntu Users:

sudo dpkg --add-architecture i386
sudo apt update -y
sudo apt-get install wget unzip psmisc libstdc++6 libstdc++6:i386 lib32gcc1 screen nano -y

For Debian Users:

sudo dpkg --add-architecture i386
sudo apt update -y
sudo apt-get install wget unzip psmisc libstdc++6 libstdc++6:i386 lib32gcc1 screen nano -y

2. Download SteamCMD

cd /root
mkdir SteamCMD
mkdir csgoserver
cd SteamCMD
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz

3. Unzip SteamCMD

tar xvfz steamcmd_linux.tar.gz

4. Install SteamCMD and Counter-Strike Server

./steamcmd.sh

login anonymous 
force_install_dir /root/csgoserver/
app_update 740 validate

This can take some time nearly 15-20 minutes. If the download looks as if it has frozen, be patient. Once the download is complete, you should see this output:

Success! App '740' fully installed.
Steam>

Exit SteamCMD

quit

5. Create Server Start Script

Create start.sh file for startup script.

cd /root
nano start.sh

Copy Startup command to start.sh file.

Edit the screen command given below accordingly. You need to generate GSLT Token from steam and replace +sv_setsteamaccount “Your GSLT Token” in screen command line below.

cd /root/csgoserver/
screen -X -S "csgoserver" quit;
screen -X -S "csgoserver" stuff "^C";
fuser -k 27015/udp;
cd /root/csgoserver/;
screen -A -m -d -S csgoserver ./srcds_run -game csgo -console -usercon +map de_dust2 +mapgroup "mg_active" +ip 0.0.0.0 -port 27015 -maxplayers_override 10 +sv_setsteamaccount "Your GSLT Token" +game_type "0" +game_mode "1" -tickrate "128"
echo "==========Server has been booted=========="

save and exit the start.sh. To save and exit press ctrl+x and Y to save.

Give permission to script start.sh so that user can run the script.

chmod +x /root/start.sh

6. Allow server port to Linux Firewall:

It is necessary to turn on server port in Linux iptables firewall. If you do not open the port then you may not be able to connect your server.

iptables -I INPUT -p udp --dport 27015 -j ACCEPT

7. Start the server and enjoy xD

./start.sh

to open the console of the server type ‘screen -r’ and to exit from screen console press ctrl+a & ctrl+d . Do Not press ctrl+c to exit from console it will shutdown your screen.

To buy Counter-Strike Server Visit: TeaM AllStars Gaming INDIA

Tm. AllStars Gaming Community INDIA: https://www.facebook.com/groups/TmAllstarsgaming

Related Posts

Leave a Comment