Creating a Counter Strike 1.6 No-Steam Linux Server

Categories: Linux

cs 1.6Creating a personal server for your clan or group of friends is always good. you get to play what you want. In this tutorial i am gonna explain how to create a Counter strike 1.6 Nosteam linux server. Make sure to have around 1-2GB free disk space and an speedy internet connection. First of all, let’s create a separate directory. we call it hlds.

mkdir hlds
cd hlds

Next step would be to download all the essential’s we gonna need. Fire following commands.

wget http://www.steampowered.com/download/hldsupdatetool.bin
wget http://www.linuxcumsa.ro/download/engine.v15.tgz
wget http://ovh.dl.sourceforge.net/sourceforge/halflifeadmin/halflife-admin-2.50.60-linux.tar.gz

First one is the hldsupdatetool, second download is the patch and the last one is “adminmod + metamod”

Setting up the server
1. executing hldsupdatetool.bin

chmod +x hldsupdatetool.bin
./hldsupdatetool.bin

This shall show you agreement, just type yes and press enter. It will extract a new file named “steam”.

2. updating and downloading game data. execute following command

./steam -command update -game valve -dir .

Repeat the same command again. It shall download the game data.

3. Downloading and installing cstrike mod.. execute the following command just once

./steam -command update -game cstrike -dir .

Now, the data is up to date.

4. Patching. Execute the following command and it will patch the server to allow no-steam clients to connect.

rm -f engine_amd.so
rm -f engine_i486.so
rm -f engine_i686.so
tar xfvz engine.v15.tgz

5. Changing server.cfg
Move to /hlds/cstrike directory and delete server.cfg and create server.cfg again in same directory with following data.

hostname "Server Name"
mp_autokick 0
mp_autocrosshair 0
mp_autoteambalance 0
mp_buytime 2
mp_consistency 1
mp_c4timer 35
mp_fadetoblack 0
mp_falldamage 0
mp_flashlight 1
mp_forcecamera 3
mp_forcechasecam 2
mp_friendlyfire 1
mp_freezetime 0
mp_fraglimit 0
mp_hostagepenalty 0
mp_limitteams 6
mp_logfile 1
mp_logmessages 1
mp_logdetail 3
mp_maxrounds 0
mp_playerid 0
mp_roundtime 3
mp_startmoney 16000
mp_timelimit 0
mp_tkpunish 0
mp_winlimit 0
sv_aim 0
sv_airaccelerate 10
sv_airmove 1
sv_allowdownload 1
sv_clienttrace 1.0
sv_clipmode 0
sv_allowupload 1
sv_cheats 0
sv_gravity 800
sv_lan 1
sv_maxrate 7000
sv_maxspeed 320
sv_maxupdaterate 101
sys_ticrate 10000
decalfrequency 60
pausable 0
log on
decalfrequency 60
edgefriction 2
host_framerate 0
exec listip.cfg
exec banned.cfg
rcon_password PASSWORD

Please don’t forget to edit “server name” with your own server name which you desire and PASSWORD with the password you want to set.

6. Setting up adminmod and metamod

tar xfvz halflife-admin-2.50.60-linux.tar.gz

Install adminmod

cd Adminmod
./install_admin

Follow the instructions and install it.

7. Configuring adminmod

cd /hlds/cstrike/addons/adminmod/config/
nano adminmod.cfg

Change allow_client_exec to 1.
Save and close.

8. Adding admin

nano users.ini

add following line to the end of the file

yourusername:yourpassword:131071

Replace it with your own username and password which you desire.

9. Go in /hlds/cstrike directory and open liblist.gam with pico, nano or mcedit. Replace secure “1″ with secure “0″.

10. Starting the server

./hlds_run -game cstrike  +sv_lan 1 -nomaster +maxplayers 18 +map de_dust2

If you get any error related to libSteamValidateUserIDTickets_i386.so..

Error:Error:libSteamValidateUserIDTickets_i386.so: cannot open shared object file: No such file or directory

than go at following url and download libSteamValidateUserIDTickets_i386.so and place it in /hlds directory.

http://amxx.pl/post-a1559-libsteamvalidateuseridtickets-i386rar.html

Or else if you get any error related to metamod_i386.so file.

LoadLibrary failed on /hlds/cstrike/addons/metamod/dlls/metamod_i386.so: /hlds/cstrike/addons/metamod/dlls/metamod_i386.so: cannot open shared object file: No such file or directory

Download the file using following command and try again

cd /hlds/cstrike/addons/metamod/dlls
wget http://prdownloads.sourceforge.net/metamod/metamod-1.19-linux.tar.gz?download
tar xfvz metamod-1.19-linux.tar.gz
rm -f metamod-1.19-linux.tar.gz

Go play Go! ;D

2 Comments

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>