ntroduction
What do you need to make your own counter-strike server on Linux?
- a computer with Linux o ssh acces
- root privileges
- a internet conection (speed at least 100kB/s metro and extern) throw OPTIC FIBER. .
- 1-2 GB HDD space
- wget, screen and a text editor (pico, nano or mcedit)
Downloading the files
First of all, create e directory.
- HldsUpdateTool
MiRROR1 - THX inVIDIA:
[code
wget http://ovh.dl.sourceforge.net/sourceforge/halflifeadmin/halflife-admin-2.50.60-linux.tar.gz
[/code]
Instaling the server:
1. Let's start with hldsupdatetool.bin
2. Now, we start to install the server:
3.Instaling the mod (counter-strike)
Patch-ing the server for NO-steam clients:
With the next command, you can make this:
In /usr/hlds/cstrike is a file, called server.cfg. Open that file with cu pico, nano, mcedit, vi
DELETE EVERYTHING from server.cfg and add the next cvar's :
AdminMod install
We have download halflife-admin-2.50.60-linux.tar.gz Extract it AnyWhere.
The next question is abbout default directory of hlds.. We write /usr/hlds si enter. Then we have to select the mod. Write 1 (for cstrike) and press ENTER. Then Y and ENTER to the next questions. That's all.
Minimal Configuration for AdminMod:
Go in /usr/hlds/cstrike/addons/adminmod/config
admin_bot_protection - if is 0 and we have bot's on the server, this cvar will let the admin to slay/ kick ban, to bot's.
admin_connect_msg - this is the message that will appeare to the player, in the middle of the monitor, after he connect's to the server.
admin_cs_restrict - we will put it on 1 to restrict the weapons in the game.
admin_debug - we are not interested in this, so let it 0
admin_fun_mode - this cvar will make the players to shine. So let it 0.
admin_fx - we will put change it in 1. Special effects
admin_gag_name - 0 or 1 . Witch you like..
admin_gag_sayteam - 0 or 1 . Witch you like..
admin_highlander - this must be 0, because if will change it in 1, only the "biggest" admin will have acces to commands.
admin_ignore_immunity - If is 1 the admins / moderators can kick, ban, slay each other.
admin_repeat_msg - The green message that will appear on the center every 5-10 minutes.
admin_quiet - if is 0, the commands will appear with the admin nick. If is 1, the commands will appear without admin nickname.
allow_client_exec - MUST BE 1 !. With this command you will force the player to execute the commands (quit..)
password_field - the most important cvar,. what we will write here, the admins must write in game-consol before connecting to the server. For example if we put _password, the admin gigi with the password gigi123 must write in the game-console gigi after that setinfo _password gigi123 before connecting to the server.
reserve_slots - Here we will write the number of reserved slots. when the server is full, the admin can connect to it.
reserve_type - we are not interested in this, so let it 0
You will see that we don't write all cvars because it's recommended to let them in the original form.
Adding / deleting admins
We have to open users.ini with wordpad. Here we have to write the admin names, passwords, and acces..For example we will create admin gigi and the password gigi123. In users.ini we will write this line
Secure server
Go in /usr/hlds/cstrike directory and open liblist.gam with pico, nano or mcedit. Replace secure "1" with secure "0".
Starting the server:
Go in l /usr/hlds and write the next command:
If we want to start the server once with the boot, write the next command's in /etc/rc.local
What do you need to make your own counter-strike server on Linux?
- a computer with Linux o ssh acces
- root privileges
- a internet conection (speed at least 100kB/s metro and extern) throw OPTIC FIBER. .
- 1-2 GB HDD space
- wget, screen and a text editor (pico, nano or mcedit)
Downloading the files
First of all, create e directory.
- Cod:
mkdir /usr/hlds
cd /usr/hlds
- HldsUpdateTool
- Cod:
wget http://www.steampowered.com/download/hldsupdatetool.bin
MiRROR1 - THX inVIDIA:
- Cod:
wget http://#/engine.v15.tgz
[code
wget http://ovh.dl.sourceforge.net/sourceforge/halflifeadmin/halflife-admin-2.50.60-linux.tar.gz
[/code]
Instaling the server:
1. Let's start with hldsupdatetool.bin
- Cod:
chmod +x hldsupdatetool.bin
./hldsupdatetool.bin
2. Now, we start to install the server:
- Cod:
./steam -command update -game valve -dir .
3.Instaling the mod (counter-strike)
- Cod:
./steam -command update -game cstrike -dir .
Patch-ing the server for NO-steam clients:
With the next command, you can make this:
- Cod:
rm -rf engine_amd.so
rm -rf engine_i486.so
rm -rf engine_i686.so
tar xfvz engine.v15.tgz
In /usr/hlds/cstrike is a file, called server.cfg. Open that file with cu pico, nano, mcedit, vi
DELETE EVERYTHING from server.cfg and add the next cvar's :
- Cod:
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 3
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 800
mp_timelimit 35
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
AdminMod install
We have download halflife-admin-2.50.60-linux.tar.gz Extract it AnyWhere.
- Cod:
tar xfvz halflife-admin-2.50.60-linux.tar.gz
- Cod:
cd Adminmod
./install_admin
The next question is abbout default directory of hlds.. We write /usr/hlds si enter. Then we have to select the mod. Write 1 (for cstrike) and press ENTER. Then Y and ENTER to the next questions. That's all.
Minimal Configuration for AdminMod:
Go in /usr/hlds/cstrike/addons/adminmod/config
- Cod:
cd /usr/hlds/cstrike/addons/adminmod/config/
- Cod:
nano adminmod.cfg
admin_bot_protection - if is 0 and we have bot's on the server, this cvar will let the admin to slay/ kick ban, to bot's.
admin_connect_msg - this is the message that will appeare to the player, in the middle of the monitor, after he connect's to the server.
admin_cs_restrict - we will put it on 1 to restrict the weapons in the game.
admin_debug - we are not interested in this, so let it 0
admin_fun_mode - this cvar will make the players to shine. So let it 0.
admin_fx - we will put change it in 1. Special effects
admin_gag_name - 0 or 1 . Witch you like..
admin_gag_sayteam - 0 or 1 . Witch you like..
admin_highlander - this must be 0, because if will change it in 1, only the "biggest" admin will have acces to commands.
admin_ignore_immunity - If is 1 the admins / moderators can kick, ban, slay each other.
admin_repeat_msg - The green message that will appear on the center every 5-10 minutes.
admin_quiet - if is 0, the commands will appear with the admin nick. If is 1, the commands will appear without admin nickname.
allow_client_exec - MUST BE 1 !. With this command you will force the player to execute the commands (quit..)
password_field - the most important cvar,. what we will write here, the admins must write in game-consol before connecting to the server. For example if we put _password, the admin gigi with the password gigi123 must write in the game-console gigi after that setinfo _password gigi123 before connecting to the server.
reserve_slots - Here we will write the number of reserved slots. when the server is full, the admin can connect to it.
reserve_type - we are not interested in this, so let it 0
You will see that we don't write all cvars because it's recommended to let them in the original form.
Adding / deleting admins
We have to open users.ini with wordpad. Here we have to write the admin names, passwords, and acces..For example we will create admin gigi and the password gigi123. In users.ini we will write this line
- Cod:
gigi:gigi123:131071
Secure server
Go in /usr/hlds/cstrike directory and open liblist.gam with pico, nano or mcedit. Replace secure "1" with secure "0".
Starting the server:
Go in l /usr/hlds and write the next command:
- Cod:
./hlds_run -game cstrike +ip ip.de.internet +sv_lan 1 -nomaster +maxplayers 18 +map de_dust2
- Cod:
screen -A -m -d -S hlds ./hlds_run -game cstrike +ip ip.de.internet +sv_lan 1 -nomaster +maxplayers 18 +map de_dust2
- Cod:
screen -r hlds
If we want to start the server once with the boot, write the next command's in /etc/rc.local
- Cod:
cd /usr/hlds
screen -A -m -d -S hlds ./hlds_run -game cstrike +ip ip.de.internet +sv_lan 1 -nomaster +maxplayers 18 +map de_dust2
- Spoiler:
Tutorials created by EnRg in exclusivity for http://www.mixrs.ro.tl/ !
This tutorial is verificated and functionality whit no problem !