Half-Life Dedicated Server
From SME Server
Jump to navigationJump to search
The following How-to will help you setup your SME Server to be a Half-Life Dedicated Server for games like Half-Life, Counter-Strike: Source, etc...
Creator
Paulus - Wiki entry "stolen" from this thread.
Create new user
First off we are going to make a user called: hlds. It is better if we don't run our server as root, but rather we run it as a normal user, just so that their is less chances of a security breach.
To create a new user you will need to login as root to perform the following steps:
- Enter this from the command line
adduser hlds
This will make a new user on our server with the username as hlds. You can choose a different username if you so wish, but making it hlds will clearly show what the user account is used for. - A prompt will appear where you can give the user hlds a password. Type the following:
passwd hlds
Of course you can choose a different password if you so desire... - Now logout of root and login as hlds.
Install hldsupdatetool.bin
- Enter this from the command line:
wget http://storefront.steampowered.com/download/hldsupdatetool.bin
- Once it has finished downloading, issue the following command to make it an executable:
chmod +x hldsupdatetool.bin
- Now logout of hlds and login as root.
- Navigate your way to the hlds user folder:
cd /home/hlds
- We need to enable gunzip or something like that so we can run the hldsupdatetool. To do this, issue this command:
ln -s /usr/bin/gunzip /usr/bin/uncompress
- Now logout of the root account and log back in as hlds.
- To run the hldsupdatetool, issue this command:
./hldsupdatetool.bin
- Say yes the the licence agreement. The hldsupdatetool will uncompress and extract some files. We now need to run the updater so it can update itself. To do this, type:
./steam
The update shouldn't take to long depending on your internet connection.