Make sure you read the entire thread as updated information and frequent issues will be added below.
If you have any questions or comments please post a new thread about it.
Valid solutions to common problems will be added to this thread.
Ok, here you go for all you people wanting to install the server on your linux box.
STEP 1 Login to your shell
login to you ssh shell with something like
putty as root!
STEP 2 Make a User to Run your server
first make a user to run your server.
shell> useradd hlds
shell> usermod -d /home/hlds hlds
(you may change /home/hlds to where you want to install hlds, if its on another drive)
shell> mkdir /home/hlds
shell> chown hlds /home/hlds
shell> chmod 777 /home/hlds
STEP 3 Download and Install Steam
shell> cd /home/hlds
shell> su hlds
hlds@shell> wget
http://www.steampowered.com/download/hldsupdatetool.bin
Wait for it to download.
hlds@shell> chmod +x hldsupdatetool.bin
hlds@shell> ./hldsupdatetool.bin
Now follow the help and install Steam and then update the steam server as you would for Half-Life Death Match.
Try to install this to /home/hlds, it will ask you
for those getting stuck the command to type is..
hlds@shell> ./steam -command update -game episode1 -dir /home/hlds
[size=1]
Updated 24/08/2011 to reflect new Source Engine modes[/red]
that will update steam, if it asks you to retry the command, or takes less than 5 mins to complete the function, then try it again.
It will take about 30 - 40 mins for this bit
STEP 4 Download and Install the Hidden Package
hlds@shell> cd /home/hlds
hlds@shell> wget
http://taligari.lincoln.ac.uk/fun/HSB4a-serverfull.zip
Wait for it to download
hlds@shell> unzip HSB4a-serverfull.zip
it will uncompress and it's in the right place
STEP 5 Server Config
Edit you /home/hlds/hidden/cfg/server.cfg
to do this type
hlds@shell> vi /home/hlds/hidden/cfg/server.cfg
press insert to start editting and type ESCAPE > : > wq
to save!
STEP 6 Start you server! - With a auto respawn script
make the start script.
hlds@shell>vi startserver.sh
now copy this code into the vi windows, just press INSERT then right click with the mound on the window when you have the code in the copy buffer.
Code:
#!/bin/bash
while true
do
/home/hlds/srcds_run -game hidden -maxplayers 9 -tickrate 66 +port 27015 +map hdn_docks +exec server.cfg
echo "server crashed on `date`" > last_crash.txt
done
now save it.
and to start your server just type
hlds@shell> sh startserver.sh
now that it works press CTRL-C to exit the server, this will shutdown the server and return you to your shell, now we want to run the server in a screen so that we can let it run when we logout of the server shell. to do this type
hlds@shell> screen -m -d -S HIDDENSERVER sh startserver.sh
Now you are all done!
Happy Server Admininistration
[NOTES]
*** If you wish to start more than one server - change (+port 27015) to (+port <another number>) and +exec server.cfg to +exec server2.cfg and write a new config file for that server.
**cp server.cfg server2.cfg (will make a copy of your main servers server config)
*if you dont have screen for any reason, on deb linux you can "apt-get install screen", it will install automatical
on some versions of linux you have to include a path as well.
or it has to be in the bash dir.
try doing /home/hlds/steam -command help
That may work :P