Firebird Changyou Linux sky

Source: Internet
Author: User
Tags ftp site
Firebird Changyou Linux sky-Linux Enterprise Application-Linux server application information. The following is a detailed description. Summary
FirdBird BBS system is a common BBS system in China. It is easy to install, support many platforms, and easy to compile and modify. The latest version is 2.66M Simplified Chinese version, this version is released under GNU Public Licence and can be copied and modified at will. This article will introduce the author's experience in installing and maintaining the Firebird BBS system in Linux system for your reference only.

--------------------------------------------------------------------------------
By Wing, source: http: // 61.132.74.80
FirdBird BBS system is a common BBS system in China. It is easy to install, support many platforms, and easy to compile and modify. The latest version is 2.66M Simplified Chinese version, this version is released under GNU Public Licence and can be copied and modified at will. This article will introduce the author's experience in installing and maintaining the Firebird BBS system in Linux system for your reference only.

1. Install the Firebird BBS system

1. Before installation

First, you must consider whether the computer configuration is sufficient to cope with the increasing number of people on the site? In general, memory is the most important, followed by hard disks. About 32 MB of memory can be accessed by about 30 people at the same time, while articles in the letter and discussion area are about 1 ~ 2 kb. Therefore, hard disks with high speed and large capacity are the first choice.

1. 2. Obtain Software

Many sites in China have FireBird BBS system source code for everyone to download, such as Netease FTP site (ftp://ftp.netease.com/pub/bbs), file name is FirebirdBBS2-66M-GBCoded.tgz, file size is 776KB. After finding the file, upload it to the/home Directory through FTP and use the following command to expand the file:

Tar zxvf FirebirdBBS2-66M-GBCoded.tgz

After expansion, the bbsadm directory will be created under/home, containing all the source code and technical documents of the BBS system.

1. 3. Create a user

Before installing the BBS system, add the following three users to the system. You can directly use Vi to add the following content to the/etc/passwd file (or use the adduser command to add the content ):

Bbsadm: 9990: 99: BBS admin and developer:/home/bbsroot:/bin/csh
Bbs: 9999: 99: BBS user:/home/bbs/bin/bbsrf
Bbsuser :: 9999: 99: BBS user:/home/bbs:/bin/csh

1. 4. Set the BBS group user and shell program

To facilitate directory read/write permission management, edit/etc/group under Vi and add the following content:

Bbs: *: 99: bbs, bbsuser, bbsadm

Add/home/bbs/bin/bbsrf to/etc/shells.

Create the bbsadm and bbs directories in/home:

Chown bbsadm. bbs bbsadm
Chown bbs. bbs

1. 5. Set the BBS system environment

Log on to Linux from bbsadm and run cd CONFIG in the/home/bbs-src/directory;./configure

The execution process is as follows:

Home directory of BBS → [/home/bbs] → where the bbs directory is located
UID of BBS → [9999] → User ID of the bbs system
GID of BBS → [99] → system GID of bbs
ID of BBS admin → [9990] → system UID of bbsadm
The ID of your site → [NoName] → The English code of your site
The name of your site → [hibisocus Realm BBS] → your site name
The domain name of your site → [some. where] → your site domain name
The ip address of your site → [127.0.0.1] → your site IP address
Maximum number of users → [20236] → Maximum number of users
Maximum number of boards → [256] → Maximum number of open versions
Maximum number of on-line users → [256] → Maximum simultaneous launch

Number of students

Show idle time of BBS users? → [Y] → display idle time
........................................
Updating cache./config. cache
Creating./config. status
Creating Makefile
Creating config. h
Creating Install. sh

. Preparations before compiling the BBS system

Configure will generate necessary Makefile files. If it succeeds, you can find the Makefile in the bbs-src/directory. If necessary, you can use Vi to manually modify it.

Edit config. h under/home/bbs-src/and make some manual modifications to it before compilation. You can find chat. h in the same directory and change the port number and name of the chat room.

1. 7. Compile the BBS system

Execute make in/home/bbs-src/to start compilation. This process is about to run 1 ~ 2 minutes. If you follow the configuration described in this article, the four executable files bbs, bbsrf, chatd, and thread will be generated in the/home/bbs-src/directory. It indicates that the compilation of the BBS system has been completed.

. Install the BBS system

Log on to Linux as root and run the following command in the/home/bbs-src directory:

Make install
Make installchatd
Make installthread

So far, the installation is complete.

2. initialize the Firebird BBS system

   . Obtain SYSOP rights

Telnet to the BBS host and log on to the bbs host. The BBS Login screen is displayed. When the BBS system requires an ID, enter New to register a New user. Because a user named SYSOP has all rights, you must first register as SYSOP and set the password. Note: SYSOP must be fully capitalized.

Next, register an account for guest. This account is the account for accessing the BBS without entering the password. If you do not want to provide a guest account, skip this step and remember to add the guest account to the "unregistrable ID" list. Generally, the guest account can only be visited and cannot be spoken. Therefore, it does not have the function of posting articles or chatting.

2. Modify/home/bbs/etc/sysconf. ini

The following briefly describes the meaning of each option in sysconf. ini:

# Comment
BBSHOME = "/home/bbs" configure the home directory of BBS
BBSID = "MSIA" configure the ID of the BBS
BBSNAME = "" ← set the Chinese site name of BBS
BBSDOMAIN = "MSIA.pine.ncu.edu.tw" when setting the BBS
Domain Name
BBSIP = "140.115.210.77" configure the IP Address of the BBS
KEEP-DELETED-HEADER = 0 ← set the forum to be hacked

Whether to retain the title to be cut

EMAILFILE = "etc/mailcheck" if you add
# Do not send an Identity confirmation letter
# NEWREGFILE = "etc/newregister" if you prefix this line
# There is a three-day limit for new users to remove

Note: After modifying sysconf. ini, go to the BBS main menu and press shift + ′~ 'Or delete/home/bbs/sysconf. img to update system settings.

2. 3. Modify/home/bbs/etc/menu. ini

Text in % S-MAIN and % serves as background.

The following line is menu. the standard line in ini. If '#' is prefixed, it indicates that this line is forbidden to work. 'E' in the M-EGROUP indicates that this line represents the menu that can be entered by 'E) it indicates that the display starts from the 0 column of row 3rd; if it is (0, 0), it indicates that the last row is displayed; if it is followed by "0", it indicates that no permission is restricted and can be freely used; if this item is "PERM-BASIC", it indicates that you must have BASIC permissions to use it.

! M-EGROUP 3, 0, 0, "EGroup", "E) classification discussion area"

2. 4. Modify the/home/bbs/etc/mailcheck File

This file is the letterhead sent to the registrant during identity confirmation. If your site requires Identity confirmation, you must change it.

2. 5. Modify the/home/bbs/etc/newregister registration instruction file
Indicates the right after registration.

3. FireBird BBS system maintenance

There are some programs in home/bbsadm/bbs-src/local-utl that are not installed when installing the BBS system. You can refer to the following instructions to install these external programs, to help us complete some interesting work.

. Number of people on the site

Modify/home/bbsadm/bbs-src/Makefile, remove-DINVISIBLE, and re-make bbsrf.

Next, go to/home/bbsadm/bbs-src/local-utl and modify averun. c content, change the site name to your own Chinese site name, and then compile this program:

Gcc-o averun. c

Copy the compiled averun to/home/bbs/bin, create cron. bbs under/home/bbs/, and add the following content:

  
QUOTE:
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.