A dedicated server is designed to serve the needs of the whole network which contain thousands of computer connected to each other and communicate with each other. In a network, it is a single computer which is set aside to serve the need of the system. For e.g. In a network, there are many computers are dedicated to an internet connection, some are dedicated to scanner resources, few of them are dedicated to printer resources, some of them are serving as a firewall and others are doing some other job.
Thus in the whole network, all these computers are assigned a particular or specific task in the network and they all are working on them i.e. dedicated to their respective tasks. Thus, they all are known as dedicated servers, serving all the needs of the whole network.
Source dedicated server Linux is a tool that runs the components of the server of a game without the elements of a client. Server providers who wanted to serve many games from the one computer only, then for them source dedicated server is a good choice and it is mostly used by them. It allows the developers to run this server on their home computer.
How to install source dedicated server Linux?
As we all know that we require some kind of operating system to install the server, so here we will going to install Source dedicated server on operating system called Linux. But for this you must have the knowledge of Linux i.e. how to run the file, how to download the file on Linux and other functions.
Steps to install Source dedicated server on Linux
To install Source dedicated server on Linux, we will start with HLDSUpdatetool. First of all, you are required to download hldsupdatetool from the Valve web server. Then make a dir called srcds_l, and save hldsupdatetool in that dir and run it. But remember to check this when you have an uncompress error. Now write the following command
Mkdir srcds_l
cd srcds_l
wget http://www.steampowered.com/download/hldsupdatetool.bin
chmod +x hldsupdatetool.bin
./hldsupdatetool.bin
. /steam
In the next step down load the file which will take few hours which depend on the connection the server is using. After file is being downloaded, write the following command:
. /steam -command update -game “Counter-Strike Source” -dir
Now in the next step If you want to install a Half-Life 2 Death match server, then use “hl2mp” for the game switch. In the third phase, you will going to install source dedicated server for this you are required to first edit or create srcds_l/cstrike/cfg/server.cfg in the way you want it to be. Now after creating scrds we are ready to run the srcds.
To run the scrds write the following command . /srcds_run -console -game cstrike +map de_dust -maxplayers 16 -autoupdate and press enter. (-game hl2mp if it's a HL2DM server) Your srcds is ready to run Extra) Running srcds in the background (re-attachable) and for this we will make a script that will run the srcds in the background in a “screen “but for this, you will need to have screen installed for this. Thus, make a file called server.sh and put this in the following Command:
#! /bin/sh
echo “Starting Cs: Source Server”
sleep 1
screen -A -m -d -S css-server ./srcds_run -console -game cstrike +map de_dust +maxplayers 16 -autoupdate Next save the file, and to run this write the command
chmod +x server.sh
Now in the next step If you want to start your server, only run
server.sh.
It will start your srcd server in the background and to open it type:
screen -x css-server And in the last If you want to close it again press Ctrl+A+D, and it will detach the screen and keep it running in the background.