Difference between revisions of "Linux dedicated server"

From Team Fortress Wiki
Jump to: navigation, search
(add languages)
m
Line 4: Line 4:
  
 
  sudo apt-get install lib32gcc1 (for 64-bit platform)
 
  sudo apt-get install lib32gcc1 (for 64-bit platform)
  wget http://www.steampowered.com/download/hldsupdatetool.bin
+
  wget http://steampowered.com/download/hldsupdatetool.bin
 
  chmod +x hldsupdatetool.bin
 
  chmod +x hldsupdatetool.bin
 
  ./hldsupdatetool.bin
 
  ./hldsupdatetool.bin
 
  type yes
 
  type yes
  ./steam
+
  ./steam (twice)
 
  ./steam -command update -game tf -dir .
 
  ./steam -command update -game tf -dir .
  
Line 14: Line 14:
  
 
  cd orangebox
 
  cd orangebox
  ./srcds_run -game tf +map cp_badlands
+
  ./srcds_run -game tf -autoupdate -tickrate 66 -maxplayers 24 +map cp_badlands
  
 
== Tips ==
 
== Tips ==

Revision as of 09:40, 12 July 2010

Installation

sudo apt-get install lib32gcc1 (for 64-bit platform)
wget http://steampowered.com/download/hldsupdatetool.bin
chmod +x hldsupdatetool.bin
./hldsupdatetool.bin
type yes
./steam (twice)
./steam -command update -game tf -dir .

Starting

cd orangebox
./srcds_run -game tf -autoupdate -tickrate 66 -maxplayers 24 +map cp_badlands

Tips

  1. The Dedicated Server does not need superuser (root) privileges to install or run. Consider setting up a separate user account for the Dedicated Server (eg. hlds).
  2. If your server is running a 64-bit (AMD64) Linux OS, you might need to install some packages for 32-bit binary compatibility. Under Debian, a simple sudo aptitude install ia32-libs should do the trick.
  3. server.cfg goes in orangebox/tf/cfg. For more information on configuring your dedicated server, see Dedicated server configuration.
  4. Remember to open ports 27000-27015 from your firewall, if you have one.

See also