Difference between revisions of "SteamCMD"

From ArchWiki
Jump to: navigation, search
m (Add category.)
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:Gaming]]
 
[[Category:Gaming]]
This page describes how to install ''HLDS'' (Half-Life Dedicated Server) for installing and running a game server for classic Half-Life 1 games.
+
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.
  
 
== Installation ==
 
== Installation ==
First, install {{aur|hlds}} from the [[AUR]]. Then change the directory to ''/opt/hlds'' and begin download the game files, in this example for ''Counter-Strike 1.6'', by executing this command:
+
First, install {{AUR|hlds}} from the [[AUR]].
  $ ./steam -command update -game cstrike -dir .
+
 
 +
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>"
 +
 
 +
== Configuration ==
 +
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'':
 +
{{hc|/etc/conf.d/hlds|2=<nowiki>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"</nowiki>}}
 +
Be sure you open or forwarded the port, e.g. 27019 UDP+TCP correctly!
  
 
== Start the server ==
 
== Start the server ==
After editing ''server.cfg'', start the server using:
+
Starting the server is easy!
  $ ./hlds_run -game cstrike -autoupdate +maxplayers 20 +map de_aztec > /dev/null 2>&1 &
+
  $ systemctl start hlds
Be sure you forwarded the ports ''1200 UDP, 27000 - 27015 UDP, 27020 - 27039 TCP'' correctly!
+
To enable autostart, issue following command:
 +
$ systemctl enable hlds

Revision as of 17:39, 20 March 2014

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.

Installation

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>"

Configuration

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:

/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