We assume that you already have the Linux server installed with CentOS and you're in the directory you'd like the SteamCMD folder to be containing your new SteamCMD based server.
- Make a new directory called SteamCMD
mkdir SteamCMDcd SteamCMD
- Download the SteamCMD update tool
- If you are running 64-bit linux you need to download 32-bit libs. Otherwise skip to step 4.
yum install glibc.i686 libstdc++.i686 ITo ensure we don't get a download failed error, let's allow the SteamCMD ports.
- iptables -A INPUT -p udp -m udp --sport 27000:27030 --dport 1025:65355 -j ACCEPT
iptables -A INPUT -p udp -m udp --sport 4380 --dport 1025:65355 -j ACCEPT
- Extract the contents of the SteamCMD .tar.gz archive
tar xvfz steamcmd_linux.tar.gz
- Now we're going to launch SteamCMD
./steamcmd.shYou'll see updates downloading and installing followed by Loading Steam#...OK.
To download most game servers you can login anonymously.login anonymous
- Now we set a directory for our first server to install in. We like to name after ports so called it 27020.
- Now we need to install the server by doing an app update command with the application ID of the server we want to install. The Counter-Strike 1.6 dedicated server has an application ID of 90.
app_set_config 90 mod cstrike
app_update 90 validateYou'll see the server download. Eventually you'll see Success! App '90' fully installed. Adding the word validate would verify that all files are correct.app_update 90 -beta beta validate
To install the HLDS Beta you must do:
You may now exit SteamCMDexit
- The server can be started in the same way as before. cd 27020./hlds_run -console -game cstrike +port 27015 +de_dust2 +maxplayers 32 -pingboost 1