標籤彙整: Counter-Strike

Counter-Strike 1.6 Server ON Freebsd(English Version)

1. Install Linux emulator
2. Install hlds (by ports or not )
3. Play your CS !!! good luck ~

OK, first you need to do is to install Linux emulator .
Because the hlds is compiled on linux suse environment.
According to the freebsd manual for installation of Linux emulator
—–—–Linux emulator Installation By freebsd handbook ——–—

Linux binary compatibility is not turned on by default. The easiest way to enable this functionality is to load the linux KLD object (“Kernel LoaDable object”). You can load this module by typing the following as root:

# kldload linux

If you would like Linux compatibility to always be enabled, then you should add the following line to /etc/rc.conf:

linux_enable="YES"

The kldstat(8) command can be used to verify that the KLD is loaded:

% kldstat Id Refs Address    Size     Name 1    2 0xc0100000 16bdb8   kernel 7    1 0xc24db000 d000     linux.ko

 

10.2.1.1 Installing Using the linux_base Port
This is by far the easiest method to use when installing the runtime libraries. It is just like installing any other port from the Ports Collection. Simply do the following:

# cd /usr/ports/emulators/linux_base-fc4 # make install distclean

You should now have working Linux binary compatibility. Some programs may complain about incorrect minor versions of the system libraries. In general, however, this does not seem to be a problem.

 

Note: There may be multiple versions of the emulators/linux_base port available, corresponding to different versions of various Linux distributions. You should install the port most closely resembling the requirements of the Linux applications you would like to install.

————————– end —————————-

OK, When you installed the linux emulator,
you can use two way to install hlds.
one way is ports , the another is hlds_l.tar.gz.
But the hlserver-cs has been marked broken, So you only can use that hlds_l.tar.gz to install hlds.

1.
You need to get the hlds_l.tar.gz and nosteam 的engine(engine.v15.tgz)
2.
decompress the hlds_l.tar.gz and put into directory you wanna put
3.
decompress the nosteam 的engine(engine.v15.tgz) to replace engine_i686.so(choose your cpu type ) in the hlds directory

4.
editor your cstrike/server.cfg for CS
if you want open on Lan , just add this ‘sv_lan 0’ , for internet add this ‘sv_lan 1’
5.
run your CS server
./hlds_run -game cstrike +exec server.cfg +ip(your ip address) +port 27015 +maxplayers 16 +map de_dust -nomaster

PS:
nomaster means you dont wanna your server be added on master server list .
:(h):

Counter-Strike 1.6 Server On FreeBSD

前幾天雄雄間心中湧起想打cs 的念頭。

從大二後就幾乎沒打過cs , 突然很想回味一下

在網路上找找文章,看了一下知道原來要架cs server 有一個軟体(hlds)

上網找了找~~最新的好像是hlds_1120,不過這個似乎是在linux suse 下的環境 compile的

so要在bsd 上裝的話,就要裝linux emulator 了

在freebsd 中的manual 中有說該如何去裝linux emulator

閱讀全文