Teach you to quickly set up in Linux CS server


Note: Although this paper is cs1.4 version, but 1.5 and 1.6 set up with basically the same principle, we can make the appropriate changes.

First of all you have to download two files. Hlds_l_3109_full.bin cs_14_full.tar.gz, then that is installed is first necessary to unzip the files:

chmod + x hlds_l_3109_full.bin

./hlds_l_3109_full.bin

Option agreement will appear, enter "yes" on it, and will solve for hlds_l_3109_full.tar.gz file.

tar zxvf hlds_l_3109_full.tar.gz

Released HLDS_L directory (this is the server's entire catalog), to install CS1.4 model

tar zxvf cs_14_full.tar.gz

Release cstrike directory, then copy it to HLDS_L directories (if you are hlds_l directory inside the release cs_14_full.tar.gz file the following steps to save)

cp-a cstrike hlds_l / follow is to set the server.cfg file: (The following is already doing a good job, and can be directly copied into a)

sv_cheats 0

hostname "CSchina.net CS''Server" / / server name

mp_timelimit 45 / / change the map time

mp_c4timer 45 / / Countdown time bomb

mp_chasecam 0 / / is a fixed lens (if you choose an access server, only spectators at a fixed location, or not join the ranks of people are free to view)

mp_falldamage 1 / / height of anti-fall

mp_flashlight 1 / / if there are tactical flashlight

mp_footsteps 1 / / whether the sound of footsteps

mp_freezetime 4 / / the beginning of each set a fixed time to buy goods

mp_friendly_grenade_damage 1 / / whether the hand injury Leiyou Jun

mp_friendlyfire 0 / / whether the harm friendly

mp_autoteambalance 2 / / automatically adjust both the minimum restrictions on the number of differences

mp_roundtime 4 / / maximum time for each round number

rcon_password backup bin bin_old conf config crawler.tar.gz crawler_bin.tar.gz data eshow eshow_sitemap.html generate.sh google.html google.html.md5 log maint news: 10 news: 11 news: 12 news: 13 news: 14 news : 15 news: 16 news: 17 news: 18 news: 2 news: 3 news: 4 news: 5 news: 6 news: 7 news: 8 news: 9 outboundLinksMgr.sql seeds sitemap.html svn tasks tmp xml2dict-2008.6-tar . gz xml2dict-read-only / / server password, * part of the set for themselves

mp_limitteams 2 / / The two sides were automatically adjusted over N, N is the number

mp_tkpunish 1 / / whether punitive damage friendly

mp_mapvoteratio 0.2 / / vote ratio

mp_logfile 1 / / if the server log files left behind

log on / / start recording

mp_playerid 0 / / for all can be seen in the status bar owner's name; one can only see their own people for the name; 2 to see the name of any person; 0 is the default.



[Next]
mp_fadetoblack 0 / / character after the death of screen black, 0 is unchanged. 0 is the default.

mp_forcechasecam 0 / / free to watch after his death, one can see one of us, two to watch the camera angle. 0 is the default.

mp_buytime 90 / / time to buy items, such as mp_buytime 1.8 to 108 seconds that can be purchased. 1.5 minutes is the default.

mp_winlimit 17 / / When the number reached 17 in a Fang Shengli replacement map.

allow_spectators 1 / / allow the observers point of view, 0 is not allowed, 1 is allowed. 1 is the default.

mp_hostagepenalty 3 / / a specified time automatically kicked out of harm hostages more than three

cl_dynamiccrosshair 0 / /  whether to use dynamic crosshair, 0 not allowed, 1 is allowed. The default is 0.

mp_logmessages 1 / / Open the log server to download and install the latest patch, is currently 3.1.0.9c, the basic installation method and the same as above, to start directly after the cover, need to do now is to create a boot server shortcut file, or each time must enter a large section of the command, too much trouble.

The establishment of fast access to hlds_l directory startup file CS, open the editor, that can be easily, such as pico



pico cs Enter # / bin / bash /

. / Hlds_run-restart-game cstrike + port 27020 + maxplayers 20 + map de_inferno

Save Exit

This parameter is the play-restart the server process crashes in cs automatically restart when the role. Speaking of this reminds me one thing, I've met a friend, he himself made a linux server process probation programs (estimated at games or other software can use), in addition to the functions I mentioned above, it also can prevent malicious closed (such as other people get your op OP accidentally enter your password or exit shut down the server).

I've tested, and whether I used the op code input exit shut down the server or servers in the server which kill off all of the CS process, it will automatically restart the server process, unless you kill this guard program, if they can kill this program, estimate you have lost control of the server, most people will not shut down the process of their own so boring now!

Now the shortcut file is created for you, but now can not run, enter chmod + x cs change it fast startup file attributes (or else can not run)

Now you're done, and in hlds_l directory inside the input. / Cs & cs server can be started, and remember to add & parameters, or you quit cs server process when the system will automatically shut down.