SRCDS Steam group


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing HLDS
#1
Exclamation 
Thought I might post this, its not mine I got it from http://www.cstrike-planet.com/

Installing Counter-Strike 1.6 (HLDS)

First, lets create a directory where we will run the hldsupdatetool, run the following command:

Code:
mkdir hlds

Now we switch to the hlds we just created and download the hldsupdatetool.bin

Code:
cd hlds
wget http://www.cstrike-planet.com/dls/hldsupdatetool.bin

If all goes well you should now have the hldsupdatetool.bin in the srcds directory. Now we change the permission of hldsupdatetool.bin so we can execute it and extract the contents from hldsupdatetool.bin

Code:
chmod +x hldsupdatetool.bin
./hldsupdatetool.bin

Note: after you run ./hldsupdatetool.bin you will get a prompt to agree with the terms and conditions, simply type yes and hit enter.

If all goes well, you should not have two files in the srcds directory, the hldsupdatetool.bin which we downloaded earlier, and a steam file the updatetool generated, this is the file we will use to install Counter-Strike.

Note: if you receive a 'uncompress: command not found' message it means your server does not have uncompress installed. You have two options to easily work around this, try the following while logged-in as root:


Code:
ln -s /bin/gunzip /bin/uncompress

Then try to run ./hldsupdatetool.bin again. If that does not work, or you do not have root privileges you can download the binary file we have available:

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 1.6

Code:
chmod +x steam
./steam -command update -game cstrike -dir .

Note the period after -dir

Install times will vary anywhere between 15-30 minutes (~300MB) 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 <game name>
The HLDS mod you want to run

+maxplayers <number of players>
Amount of players to allow

+map <map name>
The map to start the server with

-port <port number>
The port number the server should run on. Can be left out if you plan on using the default port (27015).

-ip <ipaddress>
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 start the server the easy way. We want the server to run in the background, so we issue the following command:


Code:
./hlds_run -game cstrike -autoupdate +maxplayers 20 +map de_aztec > /dev/null 2>&1 &

If you are wondering what > /dev/null is; this will send no output, and the ending '&' will run the server in the background. This would be the most common way to start the server. Sometimes we like to see what is happening while the server is running, mostly for debugging purposes:

Code:
./hlds_run -game cstrike -autoupdate +maxplayers 20 +map de_aztec > hlds.log 2>&1 &
The above will start the server, send all output (logging) to a file called hlds.log and run in the background. Everything the server generates will be sent to hlds.log, very useful if you want to see any errors that are happening while the server is running.
Reply
#2
Can i do that? i am using Sftp and i the server running linux. i have downloaded putty. do you thing you can help me?
I have windows by me self. but the server i have running linux. so i thing i can do that. but dont know. want to help me pleas? add msn.
Reply
#3
You would do all this within putty.
these are all linux commands to be executed.
[Image: userbar_wow.jpg]
starting 9/24/2006 if your problem has been solved please edit your first post and add [solved] to the begining of the title. Thanks.
Reply
#4
I'm not sure on what you need. I don't really know what putty is.
Reply
#5
KevinIN72 Wrote:I'm not sure on what you need. I don't really know what putty is.

I know this is a old post but here...

PuTTY: a free telnet/ssh client
http://www.chiark.greenend.org.uk/~sgtatham/putty/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)