Installing Counter-Strike: Source (SRCDS)
First, lets create a directory where we will run the hldsupdatetool, run the following command:
code:
mkdir srcds
code:
cd srcds
wget http://www.cstrike-planet.com/dls/hldsupdatetool.bin
code:
chmod +x hldsupdatetool.bin
./hldsupdatetool.bin
If all goes well, you should now have two files in the srcds directory, the hldsupdatetool.bin which we downloaded earlier, and asteam file the hldsupdatetool generated, this is the file we will use to install Counter-Strike: Source.
code:
ln -s /bin/gunzip /bin/uncompress
code:
wget http://www.cstrike-planet.com/dls/steam
|
Now that you have the steam binary file, Type the following command to begin installing CS Source
code:
chmod +x steam
./steam -command update -game "Counter-Strike Source" -dir .
By now, the Counter-Strike Source install should have started:
Install times will vary anywhere between 30-60 minutes depending on your server connection speed and how congested the Steam network is. Once setup has finished it will display a "HLDS installation up to date" message. Now we are ready to start the server.
Counter-Strike command line options
Below is a list of options you can use when starting up the server.
-console
Initializes console mode
-autoupdate
Automatically update the server when Steam updates are released
-game
The HLDS mod you want to run
+maxplayers
Amount of players to allow
+map
The map to start the server with
-port
The port number the server should run on. Can be left out if you plan on using the default port (27015).
-ip
Useful if you have multiple IPs and want to assign a particular IP to the server.
There are a couple of ways to start the server; for simplicity we will go the easy way. We want the server to run in the background, so we issue the following command:
code:
./srcds_run -game cstrike -autoupdate +maxplayers 20 +map de_aztec > /dev/null 2>&1 &
code:
./srcds_run -game cstrike -autoupdate +maxplayers 20 +map de_aztec > srcds.log 2>&1 &
Page 6.
On the next page we'll cover CS 1.6 on Linux.
0 komenti juaj ::
Post a Comment