Installing Game-server Counter-Strike 1.6 on FreeBSD | [email protected]

counter strike 1.6 on freebsd

1) System preparation Install Linux emulator linux_base-fc10

# cd /usr/ports/emulators/linux_base-f10 && make install clean

Enter the startup strings of the linux emulator when the system boots

in /etc/rc.conf:
linux_enable=”YES” , В /etc/sysctl.conf:

compat.linux.osrelease=2.6.16 ,

And in /etc/fstab:
linproc /usr/compat/linux/proc linprocfs rw 0 0 next, we put commands:

mkdir -p /usr/compat/linux/proc mount /usr/compat/linux/proc /etc/rc.d/abi start /etc/rc.d/sysctl start

Add the following options to the kernel configuration
options DEVICE_POLLING options HZ=1000

Download these files
1) The server itself is hlds_l_1120_full.bin 424Mb
NoSteam – linux_server_nosteam_27.10.06_.zip 8mb

Unpack the archive, create a directory and update it.
# mkdir /usr/steam

Copy the hlds_l_1120_full.bin file to the created directory, then install the launch rights to it and launch it.
# chmod 700 hlds_l_1120_full.bin
# ./hlds_l_1120_full.bin

We answer the license question “YES.” After a while hlds_l_1120_full.tgz a file will appear that needs to be unpacked

# tar zxvf hlds_l_1120_full.tgz

The folder hlds_l you want to browse to
# cd /usr/steam/hlds_l/

Updating Steam

Put from under any user except root otherwise will not update!!!

#./steam -update[/color]

After starting, the system will write the following:
Checking bootstrapper version... Getting version 9 of Steam HLDS Update Tool Downloading. . . . . . . . . . . Steam Linux Client updated, please retry the command < br > If you do not have an account in the stimulus, you can create it, if necessary. But we don’t need to, so NoSteam will be below.

Counter-Strike Update < br > < code > # ./steam -command update -game strike -dir/ usr/steam/hlds_l A successful update message appears.

Verifying: /usr/steam/hlds_l\valve\valvecomm.lst Downloading: /usr/steam/hlds_l\valve\violence.cfg Verifying: /usr/steam/hlds_l\valve\xeno.wad

HLDS installation up to date

NoSteam If you start the server immediately and try to connect a client to it, an interesting Invalid CD key plate will appear. It must be removed To do this, unpack the contents of the file linux_server_nosteam_27.10.06_.zip replacing the original files
# tar zxvf linux_server_nosteam_27.10.06_.zip /usr/steam/hlds_l[/color]

Start We start not from the root user, but from another created user, because firstly it will be safer, and secondly, there will be fewer problems when starting the server!

# cd /usr/steam/hlds_l
# ./hlds_run -game cstrike -insecure -nomaster +sv_lan 1 +maxplayers 12 +map de_dust

If the output is without errors, then I congratulate you – the server up in order
Auto detecting CPU Using Pentium II Optimised binary.

Auto-restarting the server on crash

Console initialized. scandir failed:/usr/home/911/hlds_l/./valve/SAVE scandir failed:/usr/home/911/hlds_l/./platform/SAVE Protocol version 47 Exe version (cstrike) Exe build: 20:02:49 Oct 24 2006 (3651) STEAM Auth Server couldn’t exec language.cfg Server IP address scandir failed:/usr/home/911/hlds_l/./valve/SAVE

scandir failed:/usr/home/911/hlds_l/./platform/SAVE

couldn’t exec listip.cfg couldn’t exec banned.cfg Master server communication disabled. 0 fps — host(6401) sv( 0) cl( 0) gfx( 0) snd( 0) ents(101) You can also look as follows.

# sockstat |grep hlds 911 hlds_i686 2067 4 udp4 *:27015 *:* 911 hlds_i686 2067 7 udp4 *:* 911 hlds_i686 2066 4 udp4 *:27015 *:* 911 hlds_i686 2066 7 udp4 *:* 911 hlds_i686 2065 4 udp4 *:27015 *:* 911 hlds_i686 2065 7 udp4 *:*

game cstrike – the mode to run. -insecure – disables VAC -nomaster – the server does not log into the WON. + sv _ lan 1 – running in LAN mode + maxplayers – number of players

+ map de_dust – starting map

Run in background
# ./hlds_run -game cstrike -insecure -nomaster +sv_lan 1 +maxplayers 12 +map de_dust > /dev/null 2>&1 &[/color]
Or with logs, like that

# ./hlds_run -game cstrike -insecure -nomaster +sv_lan 1 +maxplayers 12 +map de_dust > hlds.log 2>&1 &



The main config of the server, all the main parameters of its operation are set here. See Cmds & amp; Cvars hlds_l/cstrike/motd.txt Here is the text of the message that is displayed when connected to the game. hlds_l/cstrike/mapcycle.txt List of cards in rotation in the game. want to add delete and duplicate as you like. hlds_l/cstrike/map/

Actually, the path where the maps are located

Startup scripts
/usr/steam/hlds_l/hlds_run -game cstrike -insecure -nomaster +sv_lan 1 +maxplayers 12 +map de_dust >/dev/null 2>&1 &

# chmod +x cs1.6.sh
# sh cs1.6.sh