hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Hosting Security and Technology Tutorials : How-To: Install Half-Life Dedicated Server and its mods
Reply

Hosting Security and Technology Tutorials Tutorials related to server security or the like.
Forum Jump

How-To: Install Half-Life Dedicated Server and its mods

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 11-15-2004, 11:34 PM
CArmstrong CArmstrong is offline
Retired Moderator
 
Join Date: Aug 2003
Location: Pittsburgh
Posts: 3,475
Cool

How-To: Install Half-Life Dedicated Server and its mods


I know there are older guides, but this one is updated for CSource and the like. Enjoy



*************
HLDS Installation Walkthrough
by Chris 'CArmstrong' Armstrong
Operator, #hlds, GameSurge IRC
Location: http://hlds.amchrisarmstrong.com/wt.txt
Last Update: 10/17/2004
*************

INSTALLATION - LINUX

1) adduser hlds && passwd hlds
2) su hlds
3) cd ~
4) wget http://www.steampowered.com/download/hldsupdatetool.bin
5) chmod +x hldsupdatetool.bin && ./hldsupdatetool.bin
5a) If you see an error about not finding /bin/uncompress type ln -s /bin/gunzip /bin/uncompress && ./hldsupdatetool.bin
6) ./steam -command update -game gamename -dir ~/hlds -username yoursteamaccountgoeshere -password yourrealpasswordgoeshere
6a) Replace gamename above with cstrike for CS, tfc for TFC, dod for Day of Defeat, "counter-strike source" for CS (yes, you need the quotations)
7) The tool will probably update itself, and then begin downloading the files. Eat a snack or get off your behind for a bit, and take a walk. This can take awhile.

INSTALLATION - WINDOWS

1) Download and install http://www.steampowered.com/download...updatetool.exe
2) Start -> Run -> cmd <Enter> (or any other way of getting a command prompt)
3) cd C:\HLServer (or whatever path you installed to)
4) hldsupdatetool.exe -command update -game gamename -dir C:\HLServer -username yoursteamaccountgoeshere -password yourrealpasswordgoeshere
4a) Replace gamename above with cstrike for CS, tfc for TFC, dod for Day of Defeat, "counter-strike source" for CS (yes, you need the quotations)
4b) Also, if you installed to a different location than C:\HLServer, replace that above too
5) The tool will probably update itself, and then begin downloading the files. Take a break. This can take awhile.

----------

CONFIGURATION - LINUX (Half-Life 1 or its mods)

In Linux, text files are usually edited using pico or nano in the following manner:
pico filename
nano filename

For any file you need to edit here, use nano or pico followed by the entire path I give you to the file's location.

1) Edit ~/hlds/gamename/server.cfg (replace gamename with whatever you used before)
***This is where your server variables are stored. Reference the http://server.counter-strike.net config editor for easy coverage of the common ones.

2) Edit (nano or pico) ~/hlds/gamename/motd.txt (replace gamename with whatever you used before)
***This file contains the message people see when they first connect. HTML is acceptable and used by default.

3) Edit (nano or pico) ~/hlds/gamename/mapcycle.txt (replace gamename, as usual)
***This is a file containing the maps your server will play, one on each line.

CONFIGURATION - LINUX (Counter-Strike Source)

Same files as HL1, different locations:

1) Edit ~/hlds/cstrike/cfg/server.cfg
2) Edit ~/hlds/cstrike/motd.txt
3) Edit ~/hlds/cstrike/mapcycle.txt


CONFIGURATION - WINDOWS

Edit the files from the Linux section with Notepad. The files are in the same locations, just the main directory will be different (C:\HLServer instead of ~/hlds)

----------

STARTING THE SERVER - LINUX (Half-Life 1 or its mods)

1) cd ~/hlds
2) ./hlds_run -game gamename +maxplayers number +map ******* &
EXAMPLE: ./hlds_run -game cstrike +maxplayers 20 +map de_dust +ip 1.1.1.1 +port 27015 &
***Many more things can be specified here. See the http://server.counter-strike.net config editor for all possible options. Anything here takes precedence over settings in server.cfg

STARTING THE SERVER - LINUX (Counter-Strike Source)

1) cd ~/hlds
2) ./srcds_run -game cstrike +maxplayers 20 +map de_dust &
EXAMPLE: ./srcds_run -game cstrike +maxplayers 20 +map de_dust +ip 1.1.1.1 +port 27015 &
***Many more things can be specified here. See the http://server.counter-strike.net config editor for all possible options. Anything here takes precedence over settings in server.cfg

----------

FAQ

Q: How do I install AdminMod or MetaMod?
A: http://www.adminmod.org/help/online/ will walk you through this better than we can, including installing and configuring MetaMod. Also visit #adminmod

Q: How do I install AMXmod or AMXmodX?
A: AMXmod is no longer being developed. For AMXmodX, see http://www.amxmodx.org/doc/ and #amxmodx

Reply With Quote


Sponsored Links
  #2  
Old 12-15-2004, 04:04 PM
Mouse_103 Mouse_103 is offline
Newbie
 
Join Date: Mar 2003
Posts: 19
Thanks for tutorial

I plan to sell game servers

Reply With Quote
  #3  
Old 01-14-2005, 04:16 AM
Peruvianfinest Peruvianfinest is offline
Temporarily Suspended
 
Join Date: Jul 2004
Posts: 70
thanks , this is much shorter than i have found in other site ..i plan on getting a dedicated server for gaming (cs/dod/source) etc. This was very helpful.

Reply With Quote
Sponsored Links
  #4  
Old 01-14-2005, 04:23 AM
Peruvianfinest Peruvianfinest is offline
Temporarily Suspended
 
Join Date: Jul 2004
Posts: 70
for windows

-command update -game gamename -dir C:\HLServer -username yoursteamaccountgoeshere -password yourrealpasswordgoeshere


can you put an example of what to put
i get -command is not recognized as an internal or external command.

Reply With Quote
  #5  
Old 06-24-2005, 10:44 AM
Kris0r321 Kris0r321 is offline
New Member
 
Join Date: Jun 2005
Posts: 0
you havent put the HldsUpdateTool.exe in front of it, so its tryin to run the command on windows and not the update tool

Reply With Quote
  #6  
Old 06-24-2005, 01:41 PM
marketingmb marketingmb is offline
Disabled
 
Join Date: Jun 2005
Posts: 3
grea tutorial man! really helped!

Reply With Quote
  #7  
Old 06-24-2005, 01:43 PM
marketingmb marketingmb is offline
Disabled
 
Join Date: Jun 2005
Posts: 3
But i need help with an issue can anyone help via pm?

Reply With Quote
  #8  
Old 06-24-2005, 06:25 PM
Kris0r321 Kris0r321 is offline
New Member
 
Join Date: Jun 2005
Posts: 0
you can pm me if you want, ive installed hlds on both platforms

Reply With Quote
  #9  
Old 06-26-2005, 06:53 PM
Dafoe Dafoe is offline
New Member
 
Join Date: Jun 2005
Posts: 0
Re: How-To: Install Half-Life Dedicated Server and its mods

Quote:
Originally posted by Chris Armstrong

5a) If you see an error about not finding /bin/uncompress type ln -s /bin/gunzip /bin/uncompress && ./hldsupdatetool.bin
Hi everyone,

Im having trouble with step 5a)

I get the error:
hlds@serv:~$ ./hldsupdatetool.bin
bash: ./hldsupdatetool.bin: No such file or directory

although I´ve followed the step ln -s /bin/gunzip /bin/uncompress

gunzip seems to be installed:
hlds@serv:~$ whereis gunzip
gunzip: /bin/gunzip /usr/share/man/man1/gunzip.1.gz

Can anyone help me out PLZ!

Reply With Quote
  #10  
Old 07-18-2005, 01:04 AM
CArmstrong CArmstrong is offline
Retired Moderator
 
Join Date: Aug 2003
Location: Pittsburgh
Posts: 3,475
Dafoe, your error isn't due to uncompress. Either you never downloaded hldsupdatetool.bin or it isn't in the present directory when you're typing ./hldsupdatetool.bin

Reply With Quote
  #11  
Old 07-20-2005, 06:29 PM
AcuNett AcuNett is offline
** Server & Hosting Experts **
 
Join Date: Dec 2001
Location: Franklin, TN, USA
Posts: 1,310
Is it possible to have more than one cs server on a machine use the default 27015 port?

There's no point in using different IPs if they can't use the default port.

Reply With Quote
  #12  
Old 07-20-2005, 09:23 PM
AcuNett AcuNett is offline
** Server & Hosting Experts **
 
Join Date: Dec 2001
Location: Franklin, TN, USA
Posts: 1,310
I got it. Had to put +ip in front of all of them.

Reply With Quote
  #13  
Old 07-22-2005, 03:05 AM
Ogeres Ogeres is offline
Junior Guru Wannabe
 
Join Date: Jul 2005
Posts: 35
thank you very much

Reply With Quote
  #14  
Old 08-01-2005, 09:15 AM
gadji gadji is offline
New Member
 
Join Date: Aug 2005
Posts: 0
Does this only work on a local machine?

How would you do it if you wanted to install it on a webhosting package that you bought?

Reply With Quote
  #15  
Old 08-15-2005, 01:42 PM
KenThomp KenThomp is offline
Junior Guru
 
Join Date: Jul 2005
Location: Beverly Hills, CA.
Posts: 242
gadji, You can install with the above steps if you have a dedicated / VPS server that gave you SSH access.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host Milesweb Launches Dedicated Server Hosting in India Web Hosting News 2012-12-31 10:53:51
NetHosting Improves Security, Performance with Updated Cloud Hosting Solutions Web Hosting News 2012-08-30 13:49:41
Colocation America to Support Fedora Linux Project with Dedicated Server Web Hosting News 2012-08-17 09:49:26
Web Host 1&1 Enhances Dedicated Server Line with 32 Core, 64 GB RAM Server Web Hosting News 2011-12-20 15:30:05
Web Host Infinitely Virtual Releases Virtual Desktop Service Web Hosting News 2011-08-18 17:43:07


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?