Play classic games under Linux system CS1.5 server setup

  
                  First you have to download two files.hlds_l_3110_full.bin cs_15_full.tar.gz The next step is to install the first file to extract the file: chmod +x hlds_l_3110_full.bin First you have to download two files.hlds_l_3110_full.bin cs_15_full.tar. Gz Next is the installation, the first is to extract the file: chmod +x hlds_l_3110_full.bin Execution: ./hlds_l_3110_full.bin At this point, the protocol option will appear, enter "yes", and will solve hlds_l_3110_full.tar. Gz file. Enter tar zxvf hlds_l_3110_full.tar.gz Unzip and release the HLDS_L directory (this is the entire directory of the server) Start installing CS1.5 mode tar zxvf cs_15_full.tar.gz Release the cstrike directory, then copy it to the HLDS_L directory ( If you release the cs_15_full.tar.gz file in the hlds_l directory, save the following steps) cp -a cstrike hlds_l/followed by setting the server.cfg file is already done, directly copied into it) -------------------------------------------------- -------------------- sv_cheats 0 hostname "CSchina.net CS'Server " //Service Name mp_timelimit 45 //Change map time mp_c4timer 45 //Bomb countdown time mp_chasecam 0 //Whether to fix the lens (If you choose 1 to enter the server, you can only watch at a fixed location, otherwise people who have not joined the team can watch it freely) mp_falldamage 1 //High altitude drop kill mp_flashlight 1 //Is there a tactical flashlight mp_footsteps 1 //Is there any footsteps mp_freezetime 4 //Each station starts to fix the item time mp_friendly_grenade_damage 1 //Is it a friend of mine mp_friendlyfire 0 //Is it friendly mp_autoteambalance 2 //Automatically adjust the minimum difference between the two parties mp_roundtime 4 //Maximum number of times per round rcon_password **** //Server password, * Part set mp_limitteams for yourself 2 //Both sides automatically adjust if they exceed N, N is the number mp_tkpunish 1 //Whether to hurt the friendly army to punish mp_mapvoteratio 0.2 //vote ratio mp_logfile 1 //whether the server left the record file log on //start recording mp_playerid 0 //for everyone in the status bar can see the name of everyone; 1 for only see To the name of oneself; 2 to see To name anyone. 0 is the default. Mp_fadetoblack 0 //The screen turns black after the character dies, and 0 is unchanged. 0 is the default. Mp_forcechasecam 0 //You can watch it at will after death, 1 can see your own person, 2 can see the camera angle. 0 is the default. Mp_buytime 90 //The time of purchase can be purchased. For example, mp_buytime 1.8 is 108 seconds and can be purchased. 1.5 minutes is the default. Mp_winlimit 17 //When a party wins 17 times, the map is replaced. Allow_spectators 1 //Allow observer angles, 0 is not allowed, 1 is allowed. 1 is the default. Mp_hostagepenalty 3 //In the specified time, the hostage is more than three people automatically kicked out cl_dynamiccrosshair 0 //Whether to use dynamic sight, 0 is not allowed, 1 is allowed. The default is 0. Mp_logmessages 1 //Open log -------------------------------------------- -------------------------------- Download and install the latest server patch, the installation method is basically the same as above, after expansion Direct coverage (this step is optional). Now all you have to do is create a shortcut file to start the server, otherwise you will have to enter a large number of commands each time, which is too much trouble. Enter the hlds_l directory to create a shortcut startup file CS, open the editor (anything can be, such as vi). Vi cs Enter #/bin/bash/./hlds_run -restart -game cstrike +port 27015 +maxplayers 20 +map de_dust (can add -nomaster cancel won authentication, add +sv_lan 1 can be added in LAN) Save and exit. -restart this The parameter is to automatically restart when the cs server process is down. Ok, the shortcut file has been created, but it can't run now. Enter chmod +x cs to modify the properties of the shortcut file (otherwise it can't run). Now that you're done, type ./cs& in the hlds_l directory to start the cs server. Remember to add the & parameter, otherwise the cs server process will automatically close when you exit the system.
Copyright © Windows knowledge All Rights Reserved