From ArchWiki
Revision as of 13:23, 29 January 2014 by Onny (talk | contribs) (Installation)
Jump to navigation Jump to search

This page describes how to install Valves HLDS (Half-Life Dedicated Server) for installing and running a game server for classic Half-Life 1 games.


First, install hldsAUR from the AUR.

Now we begin download the game files, in this example for Counter-Strike 1.6, by executing this command (where username and password is your steam one):

$ su hlds -C "/opt/hlds/steam -command update -game cstrike -dir /opt/hlds -username <username> -password <password>"


Of couse you can define the server settings in the game directory itself, for example by editing /opt/hlds/cstrike/server.cfg. Alternatively you could set the startup parameters in /etc/conf.d/hlds:

user=hlds # this setting won't work yet
workingdir=/opt/hlds # this setting won't work yet
params="-game cstrike -autoupdate +maxplayers 20 +port 27019 +map de_aztec"

Be sure you open or forwarded the port, e.g. 27019 UDP+TCP correctly!

Start the server

Starting the server is easy!

$ systemctl start hlds

To enable autostart, issue following command:

$ systemctl enable hlds