I'm installing a CS:GO server on CentOS 5.8, which requires a couple of work arounds. If you haven't already, you'll want to
create a user to install and run the server.
First off, I need to download the steamcmd software. You want to place this in its own directory, not the directory you will put the game. So I created /home/gamer/go/steamcmd.
Code:
mkdir /home/gamer/go/steamcmd
You'll also want to create a seperate directory in which to install the dedicated server.
Code:
mkdir /home/gamer/go/server1
Download the steamcmd software.
Code:
wget http://blog.counter-strike.net/wp-content/uploads//2012/04/steamcmd.tar.gz
Unzip it:
Code:
tar xfz steamcmd.tar.gz
Now start the SteamCMD software.
Code:
STEAMEXE=steamcmd ./steam.sh
If you get this error:
Code:
/home/gamer/go/steamcmd/: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.10
' not found (required by /home/gamer/go/steamcmd)
/home/gamer/go/steamcmd: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9'
not found (required by /home/gamer/go/steamcmd)
CentOS 5 has a problem with this, because it uses older libraries than CS:GO. You can fix this by placing libstdc++.so.6 in some directory of your choice.
Attachment:
libstdc++.so.6.bz2 [309.18 KiB]
Downloaded 1932 times
Then use this command to direct the software to the library:
Code:
export LD_LIBRARY_PATH=/the/directory/you/chose
Then re-run the command.
This should load a steam interface.
Code:
login anonymous
(NOTE: Occasionally, anonymous logins don't work and you will receive errors. If this happens, I have a steam account I created just for this purpose. I have no games on it and I have steamguard turned off. I would login by using "login username password" instead of "login anonymous".)
Now you'll install the dedicated server software.
Code:
force_install_dir /home/gamer/go/server1/
app_update 740 validate
(If you ever want to update your dedicated server, you'll need to do all of the above, except just use "app_update 740", without the validate at the end. "validate" tells it to make sure all of the files are exactly default, where as running the command without "validate" will only download new files.)
Now type quit to exit the steam client.
Go to whatever directory you installed the game in
Code:
cd /home/gamer/go/server1
You can now launch the server with your favourite flavor of start up command. For more information, see
this thread.
Code:
./srcds_linux -game csgo +game_type 0 +game_mode 1 +mapgroup mg_allclassic +map de_dust -ip 70.34.195.4 +port 27017
The available game types and game modes can be seen
here.
Check out
this thread for more advanced server configuration.
Here is a video showing how to install a CS:GO server as well as Metamod and Sourcemod.
[youtube]
[/youtube]