Koozali.org: home of the SME Server

Is It Possible To Run A HLDS On A SME Box?

Offline Paulus

  • *
  • 33
  • +0/-0
Is It Possible To Run A HLDS On A SME Box?
« on: June 12, 2007, 07:37:42 AM »
I was wondering if it is possible to run HLDS (Half Life Dedicated Server) on SME 7.1.3?

I wouldn't have a clue how to go about it  :wink:
SME Server 7.5.1
P4 2.0 GHz
512MB Ram
120GB Hard Drive

Offline kruhm

  • *
  • 680
  • +0/-0
Is It Possible To Run A HLDS On A SME Box?
« Reply #1 on: June 17, 2007, 11:25:36 PM »
"I wouldn't have a clue how to go about it "

you could always try searching. Took me about 5 secs to get a good starting point: http://forums.contribs.org/index.php?topic=7105.0

Offline Paulus

  • *
  • 33
  • +0/-0
Is It Possible To Run A HLDS On A SME Box?
« Reply #2 on: June 21, 2007, 02:48:34 AM »
Thanks for that kruhm  :D

That how to looks very good :) It's for SME 5.x but it will be interesting to see if it works for 7.1.3 :D

Thanks :D
SME Server 7.5.1
P4 2.0 GHz
512MB Ram
120GB Hard Drive

Offline Paulus

  • *
  • 33
  • +0/-0
Is It Possible To Run A HLDS On A SME Box?
« Reply #3 on: June 23, 2007, 09:40:36 AM »
I tried the HowTo (http://www.simsart.org/cybernews/howtos/Howto%20Install%20Unreal%20Tournament%20Server%20on%20SME%205.1.2.htm).

The first bit was fine, but when I get to:

- Make hlds_l_3110_full.bin executable:
[root@e-smith /root]# chmod 755 hlds_l_3110_full.bin, run it and accept the licence.

how do I run the file?
SME Server 7.5.1
P4 2.0 GHz
512MB Ram
120GB Hard Drive

mxkz

Is It Possible To Run A HLDS On A SME Box?
« Reply #4 on: July 08, 2007, 02:22:25 PM »
Hi,


type ./hlds_l_3110_full.bin

the ./ part tells it to execute.

mexxus

Offline Paulus

  • *
  • 33
  • +0/-0
Is It Possible To Run A HLDS On A SME Box?
« Reply #5 on: July 12, 2007, 02:18:20 PM »
Hi mxkz,

Thanks for your reply :D.

I was able to run the file :D. However when it says to untar the hlds_l_3110.tar.gz which was created when I ran the .bin file, the How To guide only has the file name. When I put it in, it says command not found.

So is there some extra things I need to type in? This is in the Untar hlds_l_3110.tar.gz section in step 3.
SME Server 7.5.1
P4 2.0 GHz
512MB Ram
120GB Hard Drive

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Is It Possible To Run A HLDS On A SME Box?
« Reply #6 on: July 12, 2007, 03:25:41 PM »
Try

Code: [Select]
man tar

and look at the examples.
Regards,
William

IF I give advise.. It's only if it was me....

mxkz

Is It Possible To Run A HLDS On A SME Box?
« Reply #7 on: July 13, 2007, 12:13:29 PM »
Hey,


From http://server.counter-strike.net/server.php?cmd=howto&show=linux

It all seems normal, you need to type the following in console

Quote
tar zxvf hlds_l_3110.tar.gz


Maybe you could look at the tutorial above. It is for CS 1.6

The tutorial I have been using is http://www.cstrike-planet.com/tutorial/1/5

But at the time of posting this message it is "down", but it contains valuable resources for both CS Source and CS 1.6.

-----
mexxus

Offline Paulus

  • *
  • 33
  • +0/-0
Is It Possible To Run A HLDS On A SME Box?
« Reply #8 on: July 13, 2007, 01:56:45 PM »
Hi mxkz,

Thanks for the links, i'll check them out :D

I found this tutorial: http://www.japje.nl/linux-steam-and-cs16-install-guide

However when I run the server, I get this error:

LoadLibrary failed on ./stargatetc/dlls/stc_i386.so: libstdc++.so.6: cannot handle TLS data
Host_Error: Couldn't get DLL API from ./stargatetc/dlls/stc_i386.so!
FATAL ERROR (shutting down): Host_Error: Couldn't get DLL API from ./stargatetc/dlls/stc_i386.so!

I know this mod works because I pay for a server at the moment and it runs it fine (linux server). Is there something I need to install on SME?
SME Server 7.5.1
P4 2.0 GHz
512MB Ram
120GB Hard Drive

Offline Paulus

  • *
  • 33
  • +0/-0
Is It Possible To Run A HLDS On A SME Box?
« Reply #9 on: July 17, 2007, 12:14:28 PM »
I tried starting up a normal Half Life server and also tried starting up a CZero server as well, but hlds just froze after trying to start the server and so the servers never started.

Can anyone help me??
SME Server 7.5.1
P4 2.0 GHz
512MB Ram
120GB Hard Drive

Offline Paulus

  • *
  • 33
  • +0/-0
Re: Is It Possible To Run A HLDS On A SME Box?
« Reply #10 on: September 18, 2007, 02:22:53 AM »
Sorry for reviving this post, but I though some people would like to know the outcome.

I have figured out how to run a hlds on sme. The way I have done it is not the way that was in the guide for sme but it was more of the way that you install it like in other distro's.

Anyway would anyone be interested in a contrib??
SME Server 7.5.1
P4 2.0 GHz
512MB Ram
120GB Hard Drive

Offline vincentmeek

  • *
  • 29
  • +0/-0
    • Triple Point Solutions
Re: Is It Possible To Run A HLDS On A SME Box?
« Reply #11 on: September 18, 2007, 04:04:33 AM »
We are always Intrested.  Post your results!
Vincent Meek
Network Consultant

Offline Paulus

  • *
  • 33
  • +0/-0
Re: Is It Possible To Run A HLDS On A SME Box?
« Reply #12 on: September 19, 2007, 04:52:21 AM »
OK here is my guide :D

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 :P

You will need to login as root to perform the following steps:

To make a user type:

Code: [Select]
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.

Next we need give our user an password. Type the following:

Code: [Select]
passwd hlds
A prompt will appear where you can give the user hlds a password.

** Now logout of root and login as hlds. We need to download the Linux hldsupdatetool.bin file. Do this by using the following command:

Code: [Select]
wget http://storefront.steampowered.com/download/hldsupdatetool.bin
Once it has finished downloading, issue the following command to make it an executable:

Code: [Select]
chmod +x hldsupdatetool.bin
** Now logout of hlds and login as root.
Navigate your way to the hlds user folder:

Code: [Select]
cd /home/hlds
We need to enable gunzip or something like that so we can run the hldsupdatetool. To do this, issue this command:

Code: [Select]
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:

Code: [Select]
./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:

Code: [Select]
./steam
The update shouldn't take to long depending on your internet connection. After hlds has updated you need to decide what game you want to install. For this how to I will just be installing a normal Half-Life server, but you are free to install a cstrike or czero etc... server if you so desire.

To update the server, issue the following command:

Code: [Select]
./steam -command update -game valve -dir /home/hlds
This will tell hlds to get all the files required for a normal Half-Life server. If you want to have a counterstrike server, all you need to do is change the -game valve to -game cstrike Or if you want condition zero: -game czero I don't know the commands for any other games, but they should be fairly easy to find using google.

Getting the game files may take some time, but after hlds has downloaded them, you'll be back at the prompt.

Before we start our server, we need to issue the following command:

Code: [Select]
export LD_LIBRARY_PATH=/home/hlds:$LD_LIBRARY_PATH
Now we can start our server. Use the following command to start your server. If you are running a different game or don't like the command I'm using, feel free to change it to suit your needs.

Code: [Select]
./hlds_run -game valve +map crossfire +maxplayers 4 +port 27015
Hopefully your server has started. If it has, you can go on to customising it :D

I hope you have found this guide to be very usefull  :) :D :-P

I welcome any feedback for this How To and also some solutions on how to run hlds in the background :D
SME Server 7.5.1
P4 2.0 GHz
512MB Ram
120GB Hard Drive

Offline haymann

  • *
  • 212
  • +0/-0
Re: Is It Possible To Run A HLDS On A SME Box?
« Reply #13 on: October 04, 2007, 10:57:10 PM »
Added how-to to the wiki. Hope you don't mind :-)

Offline haymann

  • *
  • 212
  • +0/-0
Re: Is It Possible To Run A HLDS On A SME Box?
« Reply #14 on: October 04, 2007, 11:08:19 PM »
Do you notice a difference in SME Server performance when running a game server as well? Or are you simply using SME as a game server, and not using the rest of SME's functionality? Maybe some time I'll get a chance to check for myself...