Howto Install Halflife 1.1.1.0 with
Counter-Strike 1.5 and
Day Of Defeat 3.1
and
Unreal Tournament
(incl. 2003 Free Dedicated and 2003 Demo) Servers
on
SME Server 5.1.2,
Debian Sarge
and
Debian "Testing"

Authors:  Da [CrT] Team
Frédéric Panes <contact@rencorp.net>

Jean-Philippe Souque <admin@gorgoyle.com>

Contributor:
  Vossey <http://www.vossey.com>
, ASU <http://ut.abfackeln.com>
Release supported: SME 5.1.2
License: Creative Commons Attribution-NonCommercial-ShareAlike

Copyright (C) 2006 "Frédéric Panes and Jean-Philippe Souque"
<contact@rencorp.net and admin@gorgoyle.com>.
Last updated: Monday, January 30, 2006 07:53 AM CEST



Problem:  You want to setup Counter-Strike 1.5, Day of Defeat 3.1 and Unreal Tournament servers on SME 5.1.2.
This howto hasn't been tested on earlier or later versions of SME or E-Smith: if you have, send us a mail with a few lines on what special things you did to make it work so that we can update this page!!!
Solution:
  Follow this HowTo...

If you've got any problem with this howto or want to give us feeback, please visit our forums.


STEP 1: HL, CS and DoD

This howto hasn't been tested on Debian Sarge or Debian "Testing".
DOWNLOADS
First of all you'll have to download a few files:

hlds_l_3110_full.bin (121Mb)

Mirror 1: hlds_l_3110_full.bin (ftp)
Mirror 2: hlds_l_3110_full.bin
(http)
Mirror 3: hlds_l_3110_full.bin (ftp)
Mirror 4: hlds_l_3110_full.bin (http)
Mirror 5: hlds_l_3110_full.bin (ftp)
Mirror 6: hlds_l_3110_full.bin (http)

cs_15_full.tar.gz (103 Mb)

Mirror 1: cs_15_full.tar.gz (http)

dod_v31_full.tar.gz (122 Mb)

OPTIONAL DOWNLOADS

HLDSPingBooster-1.0.tar.gz (2 kB)

cd1230ds.tar.gz (199 kB)

STEP 2: 

INSTALLATION
- Create an ibay with SME's Server Manager :
- Go to you Server Manager (http://your_server's_name/server-manager) then click on "Information Bays".
- Click on "Click here to create a new information bay". Call it whatever name you wish (we'll call it halflife), insert a small description, choose Everyone as a group then Write= Group, Read= Everyone in "User access via file sharing or user ftp". You do not need FTP or PHP to set up your server (leave them on None and Disabled.)

STEP 3: 

HALF-LIFE 1.1.1.0

- Copy hlds_l_3110_full.bin in the ibay you just created:
[root@e-smith /root]# cp hlds_l_3110_full.bin /home/e-smith/files/ibays/halflife/files

- Go to the ibay:
[root@e-smith /root]# cd /home/e-smith/files/ibays/halflife/files

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

- Untar hlds_l_3110.tar.gz:
[root@e-smith halflife]# hlds_l_3110.tar.gz
This will create a directory called "hlds_l" in your ibay.

- Copy libhlwon.so in "/usr/lib" and validate:
[root@e-smith halflife]# cp hlds_l/libhlwon.so /usr/lib

[root@e-smith halflife]# ldconfig

- Notify the system about Half-Life's path, put this line in the .bashrc of the launcher user:
[root@e-smith halflife]# export LD_LIBRARY_PATH=/home/e-smith/files/ibays/halflife/files/hlds_l:$LD_LIBRARY_PATH

- Copy HLDSPingBooster-1.0.tar.gz in the "hlds_l" directory.
[root@e-smith halflife]# cp HLDSPingBooster-1.0.tar.gz /home/e-smith/files/ibays/halflife/files/hlds_l

- Untar HLDSPingBooster-1.0.tar.gz :
[root@e-smith halflife]# tar -zxvf
HLDSPingBooster-1.0.tar.gz

STEP 4:  

COUNTER-STRIKE 1.5

- Copy cs_15_full.tar.gz in the "hlds_l" directory.
[root@e-smith halflife]# cp /root/cs_15_full.tar.gz /home/e-smith/files/ibays/halflife/files/hlds_l

- Go to your new "halflife" directory created:
[root@e-smith halflife]# cd hlds_l

- Untar cs_15_full.tar.gz :
[root@e-smith halflife]# tar -zxvf
cs_15_full.tar.gz
This will create a directory called "cstrike" here.

STEP 5:

DAY OF DEFEAT 3.1

- Copy dod_v31.tar.gz in the "hlds_l" directory.
[root@e-smith halflife]# cp /root/dod_v31.tar.gz /home/e-smith/files/ibays/halflife/files/hlds_l

- Go to your new "hlds_l" directory:
[root@e-smith halflife]# cd hlds_l

- Untar dod_v31.tar.gz :
[root@e-smith halflife]# tar -zxvf
dod_v31.tar.gz
This will create a directory called "dod" here.

CHEATING-DEATH

- Copy cd1230ds.tar.gz in the "hlds_l" directory.
[root@e-smith halflife]# cp /root/ cd1230ds.tar.gz/home/e-smith/files/ibays/halflife/files/hlds_l

- Go to your new hlds_l directory:
[root@e-smith halflife]# cd hlds_l

- Untar cd1230ds.tar.gz :
[root@e-smith halflife]# tar -zxvf
cd1230ds.tar.gz
This will create 3 files, cdmod_i386.so is the most important, you can delete the others.

- Copy cdmod_i386.so to the "hlds_l/cstrike/dlls" and "hlds_l/dod/dlls"directory.
[root@e-smith halflife]# cp cdmod_i386.so hlds_l/cstrike/dlls
[root@e-smith halflife]# cp cdmod_i386.so hlds_l/dod/dlls

- Make a copy of "hlds_l/cstrike/liblist.gam" and "hlds_l/dod/liblist.gam"
[root@e-smith halflife]# cp hlds_l/cstrike/liblist.gam hlds_l/cstrike/liblist.sav
[root@e-smith halflife]# cp hlds_l/dod/liblist.gam hlds_l/dod/liblist.sav

- Edit "hlds_l/cstrike/liblist.gam" with your favorite text editor and change the lines in order to obtain the following:
cdmod_chain "dlls/cs_i386.so"
gamedll_linux "dlls/cdmod_i386.so"

- Edit "hlds_l/dod/liblist.gam" with your favorite text editor and change the lines in order to obtain the following:
cdmod_chain "dlls/dod_i386.so"
gamedll_linux "dlls/cdmod_i386.so"

To start the server, type:
/home/e-smith/files/ibays/halflife/files/hlds_l/hlds_boost -game cstrike +max players 12 + map de_dust2

/home/e-smith/files/ibays/halflife/files/hlds_l/hlds_boost -game dod +max players 12 + map dod_caen2

To stop the server, type:
killall hlds

These commands must be typed from / (cd /): OUTSIDE your "halflife" directory.

Note
You can administrate the server under Windows with HLSW 0.42b (only if you want to :-p).

The most common error you can get when starting your server is:
Can't find booster.so: if this happens, edit hlds_boost (vi /home/e-smith/files/ibays/halflife/files/hlds_l/hlds_boost) and add in it the full path to booster.so (export LD_PRELOAD=/home/e-smith/files/ibays/halflife/files/hlds_l/booster.so).

Step 1:

UNREAL TOURNAMENT 2003 (Free Dedicated Server Version 2225)
This howto hasn't been tested on Debian Sarge or Debian "Testing".

DOWNLOADS
First of all you have to register here to get a CD Key.
Don't worry, it's free and legal...
Then go download the Linux Free Dedicated Server (249.68 MB !!!)
UT2003DedidatedServer-Linux.zip (www.FilePlanet.com)
UT2003DedidatedServer-Linux.zip (www.FileShack.com)
UT2003DedidatedServer-Linux.zip (www.3DGamers.com)

Step 2:

INSTALLATION
- Create an ibay with SME's Server Manager :
- Go to you Server Manager (http://your_server's_name/server-manager) then click on "Information Bays".
- Click on "Click here to create a new information bay". Call it whatever name you wish (we'll call it ut2003),
insert a small description, choose Everyone as a group then Write= Group, Read= Everyone in "User access via file sharing or user ftp".
You do not need FTP or PHP to set up your server (leave them on None and Disabled.)
- Copy UT2003DedidatedServer-Linux.zip to /home/e-smith/files/ibays/ut2003/files.
- Go to your server's directory: cd /home/e-smith/files/ibays/ut2003/files.
- Unzip UT2003DedidatedServer-Linux.zip: unzip UT2003DedicatedServer-Linux.zip
- Make ut2003lnxded.sh.bin script executable: chmod +x ut2003lnxded.sh.bin
- Start the script: ./ut2003lnxded.sh.bin (be patient: it takes ages!!!)
- Copy the CD key you've received by e-mail to your Unreal 2003 system folder (/home/e-smith/files/ibays/demo/files/ut2003/System) and name it cdkey.

Now you'll probably want to set up your server's name and the web administration :

- First edit your configuration file by typing:
pico /home/e-smith/files/ibays/ut2003/files/ut2003/System/UT2003.ini

- Then uncomment the following line (if it isn't already)
ServerActors=UWeb.WebServer

You've now got to configure some settings for the web admin (add any line that isn't already written):

Find the following sections:

[UWeb.WebServer]
Applications[0]=xWebAdmin.UTServerAdmin
ApplicationPaths[0]=/ServerAdmin
Applications[1]=xWebAdmin.UTImageServer
ApplicationPaths[1]=/images
DefaultApplication=0
bEnabled=True <= The default is False
Applications[2]=
Applications[3]=
Applications[4]=
Applications[5]=
Applications[6]=
Applications[7]=
Applications[8]=
Applications[9]=
ApplicationPaths[2]=
ApplicationPaths[3]=
ApplicationPaths[4]=
ApplicationPaths[5]=
ApplicationPaths[6]=
ApplicationPaths[7]=
ApplicationPaths[8]=
ApplicationPaths[9]=
ListenPort=5080 <= Or whatever port you want your web admin site to run on.
MaxConnections=30
ServerName=
ExpirationSeconds=86400

Find the following section:

[Engine.AccessControl]
AdminPassword=YOUR_PASSWORD <= This is you password for the web admin site.
KickToMenu=Xinterface.UT2NetworkStatusMsg
GamePassword=

Find the following section:

[Engine.GameReplicationInfo]
ServerName=YOUR_SERVER'S NAME
ShortName=UT2 Server
ServerRegion=0
AdminName=YOUR_SERVER_ADMIN'S_NAME <= This is the USERNAME of the server's admin site
AdminEmail=YOUR_SERVER'S@NAME.COM
MOTDLine1=Write here
MOTDLine2=Whatever you want:
MOTDLine3=This appears when people log in
MOTDLine4=On your server...

Add these settings if you don't want your server registered in the masterserver list.

[IpDrv.MasterServerUplink]
DoUplink=False
UplinkToGamespy=True
SendStats=True
ServerBehindNAT=False
DoLANBroadcast=False

Start your server by typing (ON ONE SINGLE LINE) :

bash ucc server DM-Antalus?Game=XGame.xDeathMatch?GameSpeed=1.00?WeaponStay=True?Translocator=
True?FF=0.00?GoalScore=25?TimeLimit=15?MaxLives=0?AutoAdjust=False?Mutator=
UnrealGame.MutLowGrav,XGame.MutZoomInstagib?GameStats=False?MinPlayers=0?MaxPlayers
=32?MaxSpectators=2?AdminName=Admin?AdminPassword=YOUR_PASSWORD?difficulty=1 -server -log=Server.log

If this command doesn't work on your system, replace bash ucc server by ./ucc-bin server

You can access the webadmin site at http://your_server: the port you chose at the ListenPort= section/ServerAdmin
(ex: http://192.168.1.52:5080/ServerAdmin)

/!\ Users have reported that in some cases this is not enough to setup your webadmin server: if you get stuck on a login/pass page after doing all the above when trying to access your server via http, do the following:

In ut2003.ini, under the [Engine.GameInfo] section add this line:

AccessControlClass=XAdmin.AccessControlIni

Then login into your webadmin http interface using:
username:Admin
password:Admin
(the access .ini file is in root/ut2003)

You may adjust these settings to your requirements...

Step 1:

UNREAL TOURNAMENT
This howto has been tested on Debian Sarge and Debian "Testing" (just forget about the ibay part...)

Problem:
You need to Set up Unreal Tournament Server on SME 5.1.2 (this howto hasn't been tested on earlier versions of SME or E-Smith.)

Solution: Follow this Howto

DOWNLOADS
First of all you'll have to download a few files:

ut-server-436.tar.gz (PlanetMirrors.com) : Beware this file's size is 88 Mb (!!!)

UT 451 Patch from UTPG (2.95 Mb) asu-0.6.tar.gz (224 Kb)

OPTIONAL DOWNLOADS (PATCHES)
UTPureRC6E * read warning below! IpDrv-436-20020820 (102 Kb) [2002-09-03] See http://ut.abfackeln.com/asu.html?page=news for details.

Old patches UTPure-RC6B-patch.tar.gz (306 kB) [2003-04-17] UTPure-RC59-patch.tar.gz (301 kB) [2002-09-03] * read warning below!

* Warning: UTPureRC59 and UTPureRC6E don't allow Linux or Mac clients unless they have downloaded and installed the UTPure files manually and cleared their cache files. These might be rumours as nobody reported us such problems.

OPTIONAL DOWNLOADS (UMODS)

Bonus Pack 1 (13.8 MB)

"Inoxx" Bonus Pack 3 (4.84 MB) Bonus Pack 4 (14.2 MB)

BDB MapVote 3.02 (0.09 MB)

STEP 2: 

INSTALLATION
- Create an ibay with SME's Server Manager :
- Go to you Server Manager (http://your_server's_name/server-manager) then click on "Information Bays".
- Click on "Click here to create a new information bay". Call it whatever name you wish (we'll call it unreal), insert a small description, choose Everyone as a group then Write= Group, Read= Everyone in "User access via file sharing or user ftp". You do not need FTP or PHP to set up your server (leave them on None and Disabled.)

- Copy ut-server-436.tar.gz in the ibay you just created:
[root@e-smith /root]# cp ut-server-436.tar.gz /home/e-smith/files/ibays/unreal/files

- Go to the ibay:
[root@e-smith /root]# cd /home/e-smith/files/ibays/unreal/files

- Untar ut-server-436.tar.gz:
[root@e-smith unreal]# tar zxvpf ut-server-436.tar.gz
This will create a directory called "ut-server" in your ibay.

- Copy asu-0.6.tar.gz in the "ut-server" directory.
[root@e-smith unreal]# cp /root/asu-0.6.tar.gz /home/e-smith/files/ibays/unreal/files/ut-server

- Go to your new ut-server directory:
[root@e-smith unreal]# cd ut-server

- Untar asu-0.6.tar.gz:
[root@e-smith ut-server]# tar zxvpf
asu-0.6.tar.gz

If you downloaded all the patches and Umods, put them in /home/e-smith/files/ibays/unreal/files/ut-server/Patches using the command cp ... /home/e-smith/files/ibays/unreal/files/ut-server/Patches BEFORE running ASU's tool.

You can't run UT Server as root : go to your Unreal ibay (cd /home/e-smith/files/ibays/unreal/files) then type:
chown -R nobody ut-server.

Go to your server's root (cd /) then type :
mkdir -p /.loki/ut
chown -R nobody.nobody /.loki

Finally run the command bash asu.sh from inside your ut-server directory : this will launch the ASU configuration tool which asks you all the questions it needs to configure your server (I assume you'll know how to answer these questions <;o)

To start the server, type:
/home/e-smith/files/ibays/unreal/files/ut-server/ucc.init start

To stop the server, type:
/home/e-smith/files/ibays/unreal/files/ut-server/ucc.init stop

To restart the server, type:
/home/e-smith/files/ibays/unreal/files/ut-server/ucc.init restart

These commands must be typed from / (cd /): OUTSIDE your "ut-server" directory.

Note
The most common errors you can get when starting your server are:

./ucc-bin: error in loading shared libraries: libSDL-1.2.so.0: canot open shared object file: No such file or directory: if this happens, go to /home/e-smith/files/ibays/unreal/files/ut-server/System and type ln -s libSDL-1.1.so.0 libSDL-1.2.so.0.

./ucc-bin: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory: if this happens, type rpm -Uvh ftp://rpmfind.net/linux/redhat/updates/7.1/en/os/i386/XFree86-libs-4.1.0-25.i386.rpm to get and install the shared libraries needed to start your server.

STEP 1: 

UNREAL TOURNAMENT 2003 (Demo Version 2206)
This howto hasn't been tested on Debian Sarge or Debian "Testing".

DOWNLOADS
- First of all you'll have to download UT2003-Demo-Linux.sh.bin (94.2 Mb) from one of the following (BUSY !!!) servers:

http://www.fileplanet.com/files/110000/112996.shtml
http://www.fileshack.com/file.x?fid=1088
http://www.3dgamers.com/games/unrealtourn2
ftp://ftp1.homelan.com/demos/Linux_UT2003/UT2003-Demo-Linux.sh.bin
ftp://ftp2.homelan.com/demos/Linux_UT2003/UT2003-Demo-Linux.sh.bin
ftp://ftp3.homelan.com/demos/Linux_UT2003/UT2003-Demo-Linux.sh.bin
http://www.fasterfiles.com
http://beyondunreal.com/dl.php?f=official/ut2003/UT2003-Demo-Linux.sh.bin

- Create an ibay with SME's Server Manager :
- Go to you Server Manager (http://your_server's_name/server-manager) then click on "Information Bays".
- Click on "Click here to create a new information bay". Call it whatever name you wish (we'll call it ut2003demo),
insert a small description, choose Everyone as a group then Write= Group, Read= Everyone in "User access via file sharing or user ftp".
You do not need FTP or PHP to set up your server (leave them on None and Disabled.)
- Copy UT2003-Demo-Linux.sh.bin to /home/e-smith/files/ibays/ut2003demo/files.
- Go to your server's directory: cd /home/e-smith/files/ibays/ut2003demo/files.
- Make UT2003-Demo-Linux.sh.bin script executable: chmod +x UT2003-Demo-Linux.sh.bin.
- Start the script: ./UT2003-Demo-Linux.sh.bin
- Answer the questions.

Now you'll probably want to set up your server's name and the web administration:

- First edit your configuration file by typing:
pico /root/.ut2003/System/UT2003.ini (if you run your server as root).

- Then uncomment the following line (if it isn't already)
ServerActors=UWeb.WebServer

You've now got to configure some settings for the web admin:

Find the following sections:

[UWeb.WebServer]
Applications[0]=xWebAdmin.UTServerAdmin
ApplicationPaths[0]=/ServerAdmin
Applications[1]=xWebAdmin.UTImageServer
ApplicationPaths[1]=/images
DefaultApplication=0
bEnabled=True <= The default is False
Applications[2]=
Applications[3]=
Applications[4]=
Applications[5]=
Applications[6]=
Applications[7]=
Applications[8]=
Applications[9]=
ApplicationPaths[2]=
ApplicationPaths[3]=
ApplicationPaths[4]=
ApplicationPaths[5]=
ApplicationPaths[6]=
ApplicationPaths[7]=
ApplicationPaths[8]=
ApplicationPaths[9]=
ListenPort=5080 <= Or whatever port you want your web admin site to run on.
MaxConnections=30
ServerName=
ExpirationSeconds=86400

Find the following section:

[Engine.AccessControl]
AdminPassword=YOUR_PASSWORD <= This is you password for the web admin site.
KickToMenu=Xinterface.UT2NetworkStatusMsg
GamePassword=

Find the following section:

[Engine.GameReplicationInfo]
ServerName=YOUR_SERVER'S NAME
ShortName=UT2 Server
ServerRegion=0
AdminName=YOUR_SERVER_ADMIN'S_NAME <= This is the USERNAME of the server's admin site
AdminEmail=YOUR_SERVER'S@NAME.COM
MOTDLine1=Write here
MOTDLine2=Whatever you want:
MOTDLine3=This appears when people log in
MOTDLine4=On your server...

Add these settings if you don't want your server registered in the masterserver list.

[IpDrv.MasterServerUplink]
DoUplink=False
UplinkToGamespy=True
SendStats=True
ServerBehindNAT=False
DoLANBroadcast=False

Start your server by typing (ON ONE SINGLE LINE) :

bash ucc server DM-Antalus?Game=XGame.xDeathMatch?GameSpeed=1.00?WeaponStay=True?Translocator=
True?FF=0.00?GoalScore=25?TimeLimit=15?MaxLives=0?AutoAdjust=False?Mutator=
UnrealGame.MutLowGrav,XGame.MutZoomInstagib?GameStats=False?MinPlayers=0?MaxPlayers
=32?MaxSpectators=2?AdminName=Admin?AdminPassword=YOUR_PASSWORD?difficulty=1 -server -log=Server.log

You can access the webadmin site at http://your_server: the port you chose at the ListenPort= section/ServerAdmin
(ex: http://192.168.1.52:5080/ServerAdmin)

You may adjust these settings to your requirements...



Copyright (C) 2007 "Frédéric Panes and Jean-Philippe Souque" <contact@rencorp.net> and <admin@gorgoyle.com>.
This howto is brought to you under the terms of the Creative Commons Attribution-NonCommercial-ShareAlike.