Undefined Gaming LLC

Installing and configuring Linux dedicated servers for steam ( HLDS ) on Ubuntu 64 bit desktop edition

installation:
at the time of this writing, I'm using Ubuntu 10.04 LTS x64
burn an image from ubuntu.com to a CD or DVD and boot to it
Select install and it will ask you simple questions like time zone (location) & keyboard layout.

The part people get confused on is preparing the disk, most people would chose “erase and use entire disk” but lets go through “specify partitions manually” mainly because it is smart to create two partitions at this point. One partition for the OS and other for our files, this will protect our game servers if the OS gets messed up in a rt patch (more on that later).

In partitioning, you will need 2 partitions: swap & ext4 file system. (we will be adding a 3rd in this example for game servers later on, formated in fat32)

“Add” the first partition for the file system. Select “Primary”, size in this example is roughly 120 GB (for yours, you might get away with an 80 GB partition for the file system or you could split the drive in half (which is kinda what I'm doing). Location “Beginning”, Use as “Ext4”, Mount Point “/”

The swap partition is typically the same size as the amount of memory you have (eg. 1GB of RAM so 1GB for the swap partition). Some websites say to cap it at 2GB, but I'm going to do my own thing. I will be installing a 10 GB swap on a 250GB HD with 4GB of RAM. Why? Because I can :p

Choose add, then select type as primary, then in this example I set the size at 10000 MB, location beginning and the mount point option should be grayed out

and I'm doing an additional partition later after installation for the servers

enter your info,
fun tip: set your login name to “eat” and the computer name to “joes”, the command prompt will read “eat@joes”

after the reboot, go to Applications, Accessories, Terminal and type the following commands to set your firewall:
sudo ufw enable
sudo ufw default deny
sudo ufw logging on

and “sudo ufw status verbose” will show you what you did

the update manager probably popped up, do it.

Goto applications, ubuntu software center and search for gnome partition editor
then goto system, administration, GParted

select the unallocated drive space (in my case 111 GB) and add a new partition.

“primary”, “Fat32”, no mount point, and I'm labeling it “Steam”
click the green checkmark to apply all operations

optional, but helpful. Click the taskbar at the top and add the disk mounter to the panel, this is a quick way to mount the new “steam” partition. (add sticky notes & force quit too)

if you are using 64 bit linux you may need the 32 library, search synaptic for ia32-libs and add all the other stuff it pulls up

IMPORTANT!: DO NOT USE “SUDO” WHILE INSTALLING OR RUNNING STEAM, it's not necessary and opens you up for a kick in the pants, steam needs to be owned by the user and not the root

Make a folder where you want it (for us on the partition separate from the OS in case we mess up the rt patch) and name it “steam” (if you name it something different, replace the examples with your folder name).

in my case I need to run the following commands in terminal:
cd /media/steam/
mkdir steam

quick review, I changed directory to the steam partition and made a folder named steam

open a terminal window and change directory to the steam folder:

cd steam

download the linux HLDS tool from steampowered.com under tools. Either through your browser or in terminal by the command(installing steam via the terminal seems to work the best IMO):

wget http://storefront.steampowered.com/download/hldsupdatetool.bin

then run these commands to make steam executable and execute it

chmod +x hldsupdatetool.bin
./hldsupdatetool.bin

say yes
then run this command twice

./steam

we will be installing and updating games via a bash command.

type the following command while in the /media/steam/steam/ directory:

nano update.bin

nano will have created the file for you at your current location in terminal.
copy the following lines of games you would want and paste into your update.bin
(NOTE: Ctrl+Shift+C and Ctrl+Shift+V copies and pastes in linux terminal, Ctrl+C ends process then closes the terminal)

./steam -command update -game left4dead -dir .
./steam -command update -game left4dead2 -dir .
./steam -command update -game tf -dir .
./steam -command update -game alienswarm -dir .
./steam -command update -game orangebox -dir .
./steam -command update -game “Counter-Strike Source” -dir .
./steam -command update -game zps -dir .

Goldeneye source or The Hidden source are manual installs in the orangebox lol

IMPORTANT!!!, you need the period at the end, it means “at this level”. You could specify a different folder if you wanted one, say as a zombie mod and a gun game, then do the following commands

mkdir zombiehorde
mkdir gungame

then add the following to your bash command:

./steam -command update -game “Counter-Strike Source” -dir zombiehorde/
./steam -command update -game “Counter-Strike Source” -dir gungame/


To save and close nano:

hit Ctrl+X
hit Y for yes
hit Enter to save it as that file name

to make the bash command executable, in terminal type:

chmod +x update.bin

you are now ready to install or update your games with this command:

./update.bin




coming soon: server.cfg's, starting a game, and making the linux srcds run at 1000 fps using a real time kernel patch, once i get it to work right lol