kof server

http://kaillera.com/download.php
Kaillera server downloads:
(You need this if you want to create a Kaillera server)
- Kaillera server v0.86 (Windows binary) (21kb).
- Kaillera server v0.86 (Linux binary) (36kb).
http://kaillera.com/files/kaillerasrv-0.86-linux.tgz
- Kaillera server v0.86 (FreeBSD binary) (36kb).
http://kaillera.com/files/kaillerasrv-0.86-freebsd.tgz





如果出現以下錯誤訊息
> ./kaillerasrv
/usr/libexec/ld-elf.so.1: Shared object "libc_r.so.4" not found, required by
"kaillerasrv"

可以試試下面這篇文章解決方法

http://help.directadmin.com/item.php?id=55

If you get the following error when installing the Frontpage Extensions to a
domain:

Error setting up your web: /usr/libexec/ld-elf.so.1: /usr/lib/libc_r.so.4:
Undefined symbol "_flockfile"
or

Error setting up your web: /usr/libexec/ld-elf.so.1: Shared object
"libc.so.4" not found, required by "owsadm.exe"
then you'll need to do the following:

pkg_add -r compat4x
cd /usr/lib
mv libc_r.so.4 libc_r.so.4.old
ln -s /usr/local/lib/compat/libc_r.so.4.compat4x libc_r.so.4


If pkg_add fails, try this:

cd /usr/ports/misc/compat4x
make deinstall
make clean
make install
cd /usr/lib
mv libc_r.so.4 libc_r.so.4.old
ln -s /usr/local/lib/compat/libc_r.so.4.compat4x libc_r.so.4
For FreeBSD 6.0, try this code

cd /usr/lib
ln -s /usr/local/lib/compat/libcrypt.so.2
ln -s /usr/local/lib/compat/libm.so.2
mv libc.so.4 libc.so.4.old
ln -s /usr/local/lib/compat/libc.so.4
On one 6.1 system, after the compat libraries were setup, I had to run

cd /lib
ln -s libcrypt.so.3 libcrypt.so.2
which didn't actually use the compat libaries in the end.



kaillerasrv.conf的設置方式

; Kaillera server config file
; ServerName can be up to 64 characters long.
ServerName=Unknown serv0r  輸入你的伺服器名稱(任意)
; Location can be up to 64 characters long.
Location=Unknown location   輸入你伺服器所在位置(任意)
; URL can be up to 128 characters long. (ex: http://www.mysite.com/)
URL=           輸入你伺服器連結(任意、可省略)
MaxUsers=10        伺服器人數上限
Port=27888         伺服器所使用 Port(建議不修改)
; Set Public to 0 if you want to run the server on a private LAN
Public=1          是否為私人伺服器(0 為區網、1 為網路)
; Use this parameter if you want to manually specify your server's
; IP address or leave blank for automatic
; (ex: IP=154.253.21.56)
IP=            輸入你的 IP(必要)
; Messages flood protection
; FloodMsgNb is the max. number of times a same message has to
; be received in FloodMsgTime seconds.
FloodMsgNb=5
FloodMsgTime=3
; Minimum ping restriction (in ms)
; 0=disabled
MinPing=0
; Maximum connection setting restriction
; 0=disabled, 1=Bad, 2=Low, 3=Average, 4=Good, 5=Excellant, 6=LAN
MaxConnSet=0
; Message of the Day
; Note that you can stack "MotdLine" options
;MotdLine=Welcome to unknown serv0r! You can
;MotdLine=see our website at http://web.site/
; AllowWebAccess (1=yes,0=no)
AllowWebAccess=1
; End of Kaillera server config file

sh.sh

--a.sh--
#!/bin/sh
for unzipfile in $(ls *.tgz)
do
tar -zxf $unzipfile
echo "$unzipfile done!"
rm $unzipfile
done

--sh.sh--
rm -r /home/bbs/usr
rm -r /home/bbs/brd
rm -r /home/bbs/gem/brd
rm /home/bbs/.BRD
rm /home/bbs/.USR
mkdir /home/bbs/usr
mkdir /home/bbs/brd
mkdir /home/bbs/gem/brd
cp -r /bbs.data/usr0831.0901.02.03/* /home/bbs/usr/
cp /home/bbs/a.sh /home/bbs/usr/a
cd /home/bbs/usr/a
sh a.sh
mv a.sh ../b
cd ../b
sh a.sh
mv a.sh ../c
cd ../c
sh a.sh
mv a.sh ../d
cd ../d
sh a.sh
mv a.sh ../e
cd ../e
sh a.sh
mv a.sh ../f
cd ../f
sh a.sh
mv a.sh ../g
cd ../g
sh a.sh
mv a.sh ../h
cd ../h
sh a.sh
mv a.sh ../i
cd ../i
sh a.sh
mv a.sh ../j
cd ../j
sh a.sh
mv a.sh ../k
cd ../k
sh a.sh
mv a.sh ../l
cd ../l
sh a.sh
mv a.sh ../m
cd ../m
sh a.sh
mv a.sh ../n
cd ../n
sh a.sh
mv a.sh ../o
cd ../o
sh a.sh
mv a.sh ../p
cd ../p
sh a.sh
mv a.sh ../q
cd ../q
sh a.sh
mv a.sh ../r
cd ../r
sh a.sh
mv a.sh ../s
cd ../s
sh a.sh
mv a.sh ../t
cd ../t
sh a.sh
mv a.sh ../u
cd ../u
sh a.sh
mv a.sh ../v
cd ../v
sh a.sh
mv a.sh ../w
cd ../w
sh a.sh
mv a.sh ../x
cd ../x
sh a.sh
mv a.sh ../y
cd ../y
sh a.sh
mv a.sh ../z
cd ../z
sh a.sh
rm a.sh
mkdir /home/bbs/usr/@
chown -R bbs:bbs /home/bbs/usr
cp -r /bbs.data/brd0904.05/* /home/bbs/brd
cp /home/bbs/a.sh /home/bbs/brd
cd /home/bbs/brd
sh a.sh
rm a.sh
chown -R bbs:bbs /home/bbs/brd
cp -r /bbs.data/gem0906/* /home/bbs/gem/brd
cp /home/bbs/a.sh /home/bbs/gem/brd
cd /home/bbs/gem/brd
sh a.sh
rm a.sh
chown -R bbs:bbs /home/bbs/gem
cp /bbs.data/20080907.BRD /tmp
cp /bbs.data/20080907.USR /home/bbs/.USR