Home > games, howto, linux > Ubuntu Team Fortress 2 Server HOW-TO

Ubuntu Team Fortress 2 Server HOW-TO

September 22nd, 2008

Team Fortress 2 is a team-based first-person shooter multiplayer video game developed by the Valve Corporation. A sequel to Valve’s previous Team Fortress Classic, it was first released as part of the video game compilation The Orange Box on 10 October 2007.

For those of you trying to get a Half Life 2 Server up and running on Linux here is a Ubuntu tailor how-to guide on how to do that. With some resourcefulness this how to should work with most flavors of Linux.

Apt Prerequisite

zlibc
wget

Install

create a directory for the install “valve”
# mkdir valve

download the linux dedicated server package
# wget http://download.sourcekills.com/files/games/tf2/tf2.tar.bz2

extract
# tar -xjvf tf2.tar.bz2

update to the current version *your should do this periodically”
# cd tf2
# ./update

If it complains about: ./steam: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory you do not have zlibc installed

you may have to run the update command several times.

Create and Edit server configuration file
# wget http://www.chemlab.org/res/tf2cfg.txt -O orangebox/tf/cfg/server.cfg

*change the following config vars

hostname "Linux TF2 Server" //this is your server name
rcon_password "please change me" //this is your password for remote console

# nano orangebox/tf/cfg/server.cfg
Starting the Server

# cd ~/tf2/orangebox
# ./srcds_run -game tf -timeout 30 -autoupdate -debuglog tf2debug.log +map cp_dustbowl +port 27015 +maxplayers 24

Share and Enjoy:
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Furl
  • Print
  • StumbleUpon

games, howto, linux

  1. V3XED
    August 11th, 2009 at 10:32 | #1

    Hey, worked great till the step where i tried to run it.

    Got lots of errors (hundreds) like this
    *** ERROR *** Excessive sizelevel (1051) for element
    *** ERROR *** Excessive sizelevel (1052) for element
    *** ERROR *** Excessive sizelevel (1053) for element
    *** ERROR *** Excessive sizelevel (1054) for element
    *** ERROR *** Excessive sizelevel (1055) for element
    Segmentation fault

    and also ones that said stuff about “wrong bone weight”

    Help would be appreciated!

  2. Hoke
    February 6th, 2010 at 08:33 | #2

    Same goes here…. Hunndreds same errors! Has anyone solve this problem?

  1. No trackbacks yet.