CS 1.6 Linux Server Installation Tutorial (NoSteam)
-A computer with Linux installed (Fedora Core 4/5/6, Cent0s, or another distribution) and ssh access, with root privileges.
-For a server with 22 players we need:
-Processor 1 Gb
-512 MB RAM
-1-2 GB free space on your HDD;
-An internet connection of approximately 1-1.5 MB/s (download as well as upload); the more plug-ins you want to install the more bandwith you need, as well as more RAM.
-Routable IP ; forward port.
I recommend using PuTTy and WinSCP for the following steps:
1) Downloadin files for the server:
First, we create a new folder, i will use hlds
Enter the newly created folder
A) Download HLDSUpdateTool:
In /usr/hlds execute the following commands:
chmod +x hldsupdatetool.bin
AI) In case you receive an error regarding uncompress then enter this command:
ln -s /usr/bin/gunzip /usr/bin/uncompress
execute the command again:
chmod +x hldsupdatetool.bin
b) Download hltv and the valve core(game engine):
./steam -command update -game valve -dir .
After completing the update it will ask for the above command again. It will begin installing the necessary files for the Server. The download time varies depending on your external connection. At the end you should receive the following message:
HLDS installation up to date
c) Download the files necessary for Counter-Strike:
./steam -command update -game cstrike -dir .
It will begin installing the necessary files. The download time varies depending on your external connection. Once it's finished you should receive the following message:
HLDS installation up to date
2) Patching the server so it accepts both Steam and No-Steam clients
Download No-Steam engine
Click to download>
Execute these commands:
rm -rf engine_amd.so
rm -rf engine_i486.so
rm -rf engine_i686.so
tar xfv engine.v15.tgz
3) Configuring the server: server.cfg
Go to /usr/hlds/cstrike/server.cfg, delete everything and add:
hostname "The Name of the Server"
Write the name of the server instead of "The Name of the Server". Pay attention! It has to be between the quotation marks.
Instead of Password (last line) write your desired password.
ATTENTION! Don't tell this password to anyone else except the admins and the people you trust.
- mp_c4timer 35 - the timer for the bomb (in seconds), the default is 35, on the majority of the servers it's 30.
- mp_autoteambalance 0 - 0= no action will be taken; 1= if the teams are not balanced then the server will transfer players depending on their frags.
- mp_buytime 2 - the time in which a player can buy weapons (in minutes), modify this option as you wish
You're on your own if you try modifying anything else.
4) No Secure server
Go to /usr/hlds/cstrike/liblist.gam and search for: secure "1", replace 1 with 0, now it should look like secure "0"
5) Installing and Configuring Adminmod:
Download Adminmod + Metamod:
tar xfvz halflife-admin-2.50.60-linux.tar.gz
A new folder, Adminmod, will be created. To install Adminmod we need the be in the directory created from the archive:
The answer to the first question is Y.
You will be asked which is the HLDS folder. Answer with /usr/hlds.
You will be asked what mod you want to install adminmod for. Answer with 1.
To the following questions answer with Y.
- Go to /usr/hlds/cstrike/addons/adminmod/config/adminmod.cfg
In front of every line you will see an explanation in english.
admin_bot_protection - If it's set to 0 and you are playing with bots on the server then the admins will be able to slay, kick, ban etc the bots.
admin_connect_msg - This is the message a player will see in the middle of the screen once he's connected.
admin_cs_restrict - Preferably, set it to 1 so that you can restrict weapons in the game.
admin_debug - Leave it 0
admin_fun_mode - Preferably, leave it 0. This cvar makes the players shine in a certain color(glow blue).
admin_fx - Set it to 1. Special Effects.
admin_gag_name - 0 or 1 depending on which you preffer.
admin_gag_sayteam - the same.
admin_highlander - You should leave it 0. If you switch it to 1, only one admin, the highest, will have access to commands. For example,if there are 3 admins on the server the highest remains , and the other 2 will only be slots.
admin_ignore_immunity - Depends on your tastes. If it's set to 1, admins, moderators and other players with immunity can slay, kick, ban etc each other.
admin_repeat_msg - A message that appears in green on the screen every few minutes.
admin_quiet - If you write 0, the commands given by an admin will appear along with his nick. If you write 1 the commands will appear but instead of the admin's name will appear just "Admin" and if you type 2, the commands won't appear at all.
allow_client_exec - Definitely 1! With this you can force the players to execute any command (quit etc)
password_field - Probably the most important cvar. The admins will have to type in the console what you write here before connecting to the server. For example if you write _password, an admin X with the password x789 will have to write in the console name X and then setinfo _password X789 before connecting to your server.
reserve_slots - Allows the admins and other reserved slots to connect when the server is full.
reserve_type - Leave it 0. It's best. If you're curious about what it does check out the adminmod's manual.
Modify other lines only if you know what you're doing.
How to add/delete admins:
Open users.ini, an admin must be written like this name:password:access
-the code 1310701 is the maximum access and admin can have on the server. To calculate this code go here
Select what commands you want every class of admins to have.
6) Installing and configuring statsme:
After you finish downloading, extract statsme:
Go to /usr/hlds/cstrike/addons/metamod and open plugins.ini and add this line above all others, it's very important that it's the first:
Go to cstrike\addons\statsme, open statsme.cfg, look for the line sm_menupassword, modify r3wt with another password of your choice.
How to enable /rank and /top 10
-open statsme.cfg and at the line sm_storebyauth put 0 instead of 1
7) How to start the server:
For the LuST server i use screens, it's easy and simple, write:
screen -A -m -d -S hlds ./hlds_run -game cstrike +ip ip.de.internet +sv_lan 1 -nomaster +maxplayers 18 +map de_dust2