|
|
[1] 建立 BBS 的相关帐号
在安装 BBS 之前,以root 身份登陆
# vi /etc/passwd
bbsadm::9990:99:BBS admin and developer:/home/bbsadm:/bin/csh
bbs::9999:99:BBS user:/home/bbs:/home/bbs/bin/bbsrf
bbsuser::9999:99:BBS user:/home/bbs:/bin/csh
# vu /etc/group
bbs:*:99:bbs,bbsuser,bbsadm
# vi /etc/shells
/home/bbs/bin/bbsrf
#mkdir /home/bbsadm
#mkdir /home/bbs
#chown bbsadm.bbs bbsadm ; chown bbs.bbs bbs
再分别替 bbsadm bbsuser 设定密码
[2]
以 bbsadm login 在/home/bbsadm/下
$tar zxvf 3.0-20000220-SNAP.tar.gz
形成/home/bbsadm/bbs/目录。里面包含源程式
[3] 以 bbsadm login , 到 /home/bbsadm/bbs/bbssrc/ 目录底下
% ./configure
执行的过程如下画面:
..................................
Please fill data for your BBS
..................................
Home directory of BBS --> [/home/bbsadm/bbs] /home/bbs
BBS Source Code directory --> [/home/bbsadm/bbssrc]
UID of BBS --> [9999]
GID of BBS --> [99]
UID of BBS admin --> [9990]
The ID of your site --> [NoName]
The name of your site --> [火鸟系统 3.0]
The domain name of your site --> [some.where.on.earth]
The IP address of your site --> [127.0.0.1]
The Default board of your site, only change it if upgrading
from old system with different default board --> [sysop]
Maximum number of users --> [20236]
Maximum number of boards --> [256]
Maximum number of on-line users --> [256]
Show idle time of BBS users ? --> [Y]
PLEASE CHOOSE THIS CAREFULLY
Is libcrypt "DES" correct? --> [Y]
........................................
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Install.sh
creating include/config.h
creating include/chat,h
creating util/innbbsd/Makefile
creating util/mail2bbs/Makefile
creating util/local_utl/Makefile
creating include/site_conf.h
include/site_conf.h is unchanged
generating configure.inf
........................................................................
You may review the Makefile now. Then, type 'make' to build your system.
........................................................................
在 /home/bbsadm/bbs/bbssrc/ 下
$ make
==Making main program and relatve src==
-->lib
make[1]: Entering directory '/home/bbsadm/bbs/bbssrc/lib'
rm -rf *.a
-->lib/libBBS
make[2]: Entering directory '/home/bbsadm/bbs/bbssrc/lib/libBBS'
ar rv ../libBBS.a string.o html.0 mmdecode.o fileio.o dlm.o
a - string.o
a - html.o
a - mmdecode.o
a - fileio.o
a - dlm.o
ranlib ../libbbs.a
make[2]: Leaving directory '/home/bbsadm/bbs/bbssrc/lib/libBBS'
<--lib/libBBS
make[1]: Leaving directory '/home/bbsadm/bbs/bbssrc/lib'
<--lib
--> src
make[1]: Entering directory '/home/bbsadm/bbs/bbssrc/src'
echo "Generate version info.."
Generate version info..
sh ver.sh ../include/version.h
gcc -Wunuded -I../include -DSHOW_IDLE_TIME -DWITHOUT_CHROOT -DHAVE_VERSION_H -c bbsd.c
bbsd.c:324: nlist.h: No such file or directory
make[1]: ***[bbsd.o] Error 1
make[1]: Leaving directory '/home/bbsadm/bbs/bbssrc/src'
<-- src
echo "done."
done
-----------------------------------------------------------------
这里编译出错了,可是不知道要怎么改。以后要是继续以 root login , 在 /home/bbsadm/bbs/bbssrc 目录底下
执行
#make install
也可以生成,但是用telnet localhost 指令后,用bbs登陆,系统提示是没有/home/bbs/bin/bbsrf,然后自动推出。 |
|