Last update 29-Dec-2001
MBSE BBS Basic Installation
Introduction.
Before you compile and install MBSE BBS you must first setup the basic environment. If you don't do this, things will fail.
Step 1: planning the filesystems.
MBSE BBS is default installed in /opt/mbse. The default filesystem layout looks like this:
/opt/mbse Default MBSE_ROOT /opt/mbse/bin Binaries /opt/mbse/doc Generated sitedocs /opt/mbse/dutch/macro N/A /opt/mbse/dutch/menus Dutch menu files /opt/mbse/dutch/txtfiles Dutch ANSI files /opt/mbse/english/macro Default english macros, not yet. /opt/mbse/english/menus Default english menus /opt/mbse/english/txtfiles Default english ANSI files /opt/mbse/etc System configuration files /opt/mbse/fdb Files database /opt/mbse/ftp Default FTP root /opt/mbse/galego/macro N/A /opt/mbse/galego/menus Galego menu files /opt/mbse/galego/txtfiles Galego ANSI files /opt/mbse/home Users homedirectories /opt/mbse/home/bbs Newuser account /opt/mbse/html HTML documentation /opt/mbse/italian/macro N/A /opt/mbse/italian/menus Italian menu files /opt/mbse/italian/txtfiles Italian ANSI files /opt/mbse/log MBSE BBS logfiles /opt/mbse/magic Magic filerequest names /opt/mbse/sema Semafore files /opt/mbse/spanish/macro N/A /opt/mbse/spanish/menus Spanish menu files /opt/mbse/spanish/txtfiles Spanish ANSI files /opt/mbse/tmp Temp directory /opt/mbse/tmp/arc Temp archiver directory /opt/mbse/var Var root /opt/mbse/var/badtic Bad TIC files /opt/mbse/var/bso Binkley Style Outbound directory /opt/mbse/var/bso/inbound Protected inbound directory /opt/mbse/var/bso/outbound Default outbound directory /opt/mbse/var/bso/unknown Unprotected inbound directory /opt/mbse/var/mail JAM messagebase root /opt/mbse/var/mail/badmail Bad echomail /opt/mbse/var/mail/dupmail Duplicate echomail /opt/mbse/var/msgs *.msgs netmail directory (not yet in use). /opt/mbse/var/nodelist Nodelists /opt/mbse/var/ticqueue Queue for TIC filesDon't use UMSDOS or SAMBA filesystems for the bbs, stick by the standard Linux filesystems (ext2 or reiserfs) or ufs if you use FreeBSD. If you intent to make your bbs also accessible by FTP and WWW you must create the directory structure under the ftp user behind the pub directory. Read the ftp server doc for details. If you don't follow these guidlines, you will run into trouble later and have to spend a lot of time in correcting this error.
Step 2: Running the installation script.
If you are upgrading, proceed with step 4. If not, follow the next steps very carefully! The installation script must be run by root. It checks if there is a previous or failed installation on your system. If that's so the script will not run. In other words, you can only run this script once. The script makes backup copies of the system files it changes, these files will get the extension .mbse To run the installation script you need the archive mbbsebbs-0.33.nn.tar.gz. Unpack this archive on your system, in /tmp will do fine:
cd /tmp tar xfvz /path/to/the/mbsebbs-0.33.nn.tar.gzTo start the script type:cd mbsebbs-0.33.nn bash ./SETUP.shYes, use bash as shell here. On some systems root doesn't use bash as login shell, calling the script with bash forces the use of bash. The script does the following:Then the script will ask you to give a password for user mbse This password is for system maintenance and for you to make changes to the bbs. You will need that frequently but you should not make that password easy to guess of course. The script will then continue again:
- Create the group bbs
- Create the user mbse
- Create a .profile for user mbse
- Create and set owner of directory tree under /opt/mbse
- The user bbs is added.
- The password will be removed from user bbs This action will make changes in /etc/shadow (if you have that) otherwise in /etc/passwd. On FreeBSD it uses other tools to modify the master database. On NetBSD you have to do that manually, there are no tools to do that.
- If they don't exist in the file /etc/services the services fido, tfido and binkp will be added.
- If they don't exist in the file /etc/inetd.conf the internet protocols for the mailer will be added. The inetd is restarted to activate the changes. If your distribution uses xinetd instead of inetd, an include file for xinetd is added instead.
Step 3: Check the basic installation
The last screen of the script is about sanity checks. Perform those checks! If something is wrong, now is the time to fix it. Don't panic and remember the backups of the system files that are changed are in /etc with the extension .mbse i.e: those were the original files. The installation logfile is copied to /opt/mbse. If everythings is allright, then remove the directory /tmp/mbsebbs-0.33.nn:
cd /tmp rm -Rf mbsebbs-0.33.nn
Step 4: Install the basic packages.
Login as user mbse. Yes, very important, login as user mbse. While in mbse's home directory (/opt/mbse) unpack the distribution archives:
tar xfvz /path/to/mbsebbs-0.33.nn.tar.gzYou now have the subdirectory with sources in the right place. Next build the binaries and install them using the folowing commands:cd ~/mbsebbs-0.33.nn ./configure make su important, do not use "su -" password: enter root password here make install exitThe last part of the installation procedure shows you the location of the bbs startup script that is added to your system. Remember this one for a moment. Because this is your first time installation, example menus and example textfiles are installed. If they already exist on your systems (when you do an upgrade) they will not be installed again.Now start the bbs for the first time (still as root) by executing the startup script you just saw on the screen followed by a space and the word start. For example:
/etc/rc.d/init.d/mbsed startThis will start the mbtask daemon. After that the bbs will be opened for use. Check the file /opt/mbse/log/mbtask.log for startup problems. The first time mbtask is started on your system it will create a lot of new configuration files with default settings.
Step 5: (RedHat) startup problems.
From RedHat 6.1 (not the older versions) the behaviour of the su is changed. This may be true for other distributions since the end of 1999 and for Mandrake as well. The file
/etc/rc.d/init.d/mbsed
that is created by the setup script is different then before. The new command is su - instead of simply su. It might be that other new distributions also need the extra minus sign. If that's the case, please let me know and tell me how I can test what version it is.
Step 6: Ready.
Now you have shell scripts in ~/etc, most of them are called by cron, some are called during system startup and shutdown. You also have some default configuration files, these are ttyinfo, modems, fidonet networks. In the default (english) directory you now have default menu datafiles and ansi screens. These are copies of my test system so you have to edit them to build your own bbs.
Editing ansi screens can be done on a Linux system with duhdraw, this is available from 2:280/2802 as duhdraw.tgz (68 Kbytes). The binaries are included in this archive, if you compile it yourself it may give trouble so if the binaries work, use these.
Another editor is available from http://www.drastic.net/bmdraw/, you can find the tar.gz file in http://www.drastic.net/bmdraw/files/bmd022.tgz, it's about 36 Kbytes. This is also a thedraw clone for Linux. Note, at my system I needed to run it as root.
You may also want to edit ~/etc/header.txt and ~/etc/footer.txt, these files are the top and bottom of the newfiles/allfiles listings.Now the basic environment is finished, the next thing to do is configure the bbs.