Difference between revisions of "SteamCMD"

From ArchWiki
Jump to: navigation, search
m (Add category.)
(Installation)
Line 3: Line 3:
  
 
== 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]]. Before configuring the server, we need to add an user with restricted rights which will be only used for HLDS:
 +
$ useradd hlds
 +
And then assign the permissions to the program directory:
 +
$ chown -R hlds:hlds /opt/hlds
 +
Now we change the user, switch the directory to ''/opt/hlds'' and begin download the game files, in this example for ''Counter-Strike 1.6'', by executing this command:
 +
$ su hlds && cd /opt/hlds
 
  $ ./steam -command update -game cstrike -dir .
 
  $ ./steam -command update -game cstrike -dir .
 +
 +
== Configuration ==
  
 
== Start the server ==
 
== Start the server ==

Revision as of 08:50, 3 January 2013

This page describes how to install 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. Before configuring the server, we need to add an user with restricted rights which will be only used for HLDS:

$ useradd hlds

And then assign the permissions to the program directory:

$ chown -R hlds:hlds /opt/hlds

Now we change the user, switch the directory to /opt/hlds and begin download the game files, in this example for Counter-Strike 1.6, by executing this command:

$ su hlds && cd /opt/hlds
$ ./steam -command update -game cstrike -dir .

Configuration

Start the server

After editing server.cfg, start the server using:

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

Be sure you forwarded the ports 1200 UDP, 27000 - 27015 UDP, 27020 - 27039 TCP correctly!