Playing a classic game CS1.5 server setup in Linux

Source: Internet
Author: User

◆ Download and install

First, you need to download two files.

. Hlds_l_3110_full.bin
Cs_15_full.tar.gz

The next step is the installation. The first step is to decompress the file:

# Chmod + x hlds_l_3110_full.bin

Run:

#./Hlds_l_3110_full.bin

The protocol option is displayed. Enter "yes" and the hlds_l_3110_full.tar.gz file will be released.

Input

# Tar zxvf hlds_l_3110_full.tar.gz

Decompress and release the HLDS_L directory (this is the entire directory of the server)

Start CS1.5 Installation

# Tar zxvf cs_15_full.tar.gz

To release the hosts file, save the following steps)

# Cp-a cstrike hlds_l/

Set server Parameters

After the above installation is complete, set the server. cfg file. The following figure shows what has been done. You can copy it directly. You need to adjust the detailed settings separately. each item is followed by a detailed comment.

-----------------------------------------------------------------------
Sv_cheats 0

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

Mp_timelimit 45 // map change time

Mp_c4timer 45 // bomb countdown time

Mp_chasecam 0 // whether the camera is fixed. If option 1 is selected, you can only watch the video at a fixed location after entering the server. Otherwise, you can watch the video without joining the team)

Mp_falldamage 1 // falling from a height to kill

Mp_flashlight 1 // whether there is a tactical flashlight

Mp_footsteps 1 // whether footsteps exist

Mp_freezetime 4 // set the time for each purchase

Mp_friendly_grenade_damage 1 // do you want to detect the damage caused by shoulei Youjun?

Mp_friendlyfire 0 // Do You Want To Hurt Youjun?

Mp_autoteambalance 2 // automatically adjust the minimum number of people difference between the two parties

Mp_roundtime 4 // maximum time per round

Rcon_password ***** // server password, which is set by yourself in the * Section

Mp_limitteams 2 // if both parties exceed N persons, the system automatically adjusts the value N to a number.

Mp_tkpunish 1 // Do You Want To Hurt Youjun's punishment?

Mp_mapvoteratio 0.2 // voting rate

Mp_logfile 1 // whether the server leaves a record file

Log on // start record

Mp_playerid 0 // The Name Of all people can be seen in the status bar; 1 is the name of only one person; 2 is the name of no one. 0 is the default value.

Mp_fadetoblack 0 // The screen turns black after the death of the character, and 0 remains unchanged. 0 is the default value.

Mp_forcechasecam 0 // after death, you can view it at will. 1 can view your own, 2 can view the camera angle. 0 is the default value.

Mp_buytime 90 // time when you can purchase an item. For example, if mp_buytime 1.8 is 108 seconds, you can purchase an item. The default value is 1.5 minutes.

Mp_winlimit 17 // when a party wins 17 times, change the map.

Allow_spectators 1 // The Observer angle is allowed. 0 is not allowed, and 1 is allowed. 1 is the default value.

Mp_hostagepenalty 3 // within the specified time when more than three persons are automatically kicked out

Cl_dynamiccrosshair 0 // whether to use a Dynamic Quasi-star, 0 is not allowed, 1 is allowed. The default value is 0.

Mp_logmessages 1 // open log

----------------------------------------------------------------------------

Install the latest patch plug-in and set startup

Download and install the latest server patch. The installation method is basically the same as above. You can directly overwrite it after it is expanded (this step is optional ).

Now you have to create a shortcut file to start the server. Otherwise, you have to enter a large command every time, which is too troublesome.

Go to the hlds_l directory to create the quick Startup File CS and open the Editor (which can be any one, such as vi.

# Vi cs

Input

#/Bin/bash/

./Hlds_run-restart-game cstrike + port 27015 + maxplayers 20 + map de_dust

// You can add-nomaster to cancel won authentication, and add + sv_lan 1 to the LAN)

: Qw // Save the disk and exit.

-The restart parameter is used to automatically restart the cs server when the process is down.

OK. The shortcut file has been created, but it cannot be run now. Enter

# Chmod + x cs

Modify the attributes of the Quick Start file (otherwise it cannot be run ). Now we have finished it. enter it in the hlds_l directory.

#./Cs &

You can start the cs server. Remember to add the & parameter to the backend to run it without occupying a console.) otherwise, the cs server process will be automatically disabled when you exit the system.

Related Articles]

  • How to configure DNS server in Linux
  • Create a friendly Shell prompt in Linux
  • Restrict Linux users to their own directories on the FTP server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.