Last update 17 Feb 2025

MBSE BBS Basic Installation

WARNING!

You MUST install MBSE in /opt/mbse and set MBSE_ROOT to /opt/mbse.

IF YOU ATTEMPT TO INSTALL MBSE IN ANY OTHER DIRECTORY OR FORCE MBSE_ROOT TO ANOTHER DIRECTORY, YOU ARE ON YOUR OWN!

We, the MBSE Development Team, will not provide any support for you if you do this, so please DO NOT ASK.

Introduction

Before you compile and install MBSE BBS, you must first setup the basic environment. If you don't do this, things will fail.

To compile and install MBSE BBS, most distributions have installed all needed packages. If important packages are missing then the configure script will tell you. There are also less important packages which if missinng still let you compile MBSE BBS, but you will miss some features. Here is a short list of these packages:

  1. zlib: on some distributions, you also need zlib development. When you have zlib installed, then in mbcico, extra code will be compiled in the Hydra and Binkp protocol drivers that will allow the PLZ extension. In the BinkP protocol, GZ compression will be enabled as well.
  2. bzlib: on some distributions, you need to install bzlib2 development to add support for BinkP BZ2 compression.
  3. GeoIP: allows logging of the origin of the network connections by country and continent. You need at least GeoIP 1.4.3 to compile without errors. See www.maxmind.com.
If you use Gentoo, Ubuntu, or Devuan, please read the appropriate README. The Ubuntu README may be useful for Debian users.

 

Step 1: Planning the Filesystem

MBSE BBS is by default installed in /opt/mbse. See Filesystem Hierarchy Standard for more info. The default filesystem layout looks like this:

/opt/mbse                       0775  Default MBSE_ROOT
/opt/mbse/bin                   0770  Binaries
/opt/mbse/etc                   0770  System configuration files
/opt/mbse/etc/dosemu            0750  DOSemu configuration files
/opt/mbse/ftp/pub               0755  Default FTP root for download areas
/opt/mbse/home                  0770  Users' home directories
/opt/mbse/home/bbs              0770  New user account
/opt/mbse/html                  0755  HTML documentation
/opt/mbse/log                   0770  MBSE BBS logfiles
/opt/mbse/share/doc             0750  Generated site docs
/opt/mbse/share/doc/html        0750  Generated HTML site docs
/opt/mbse/share/doc/tags        0750  Generated area tags
/opt/mbse/share/int             0750  Base for language files
/opt/mbse/share/int/macro/de    0750  German template macros
/opt/mbse/share/int/macro/en    0750  English template macros
/opt/mbse/share/int/macro/es    0750  Spanish template macros
/opt/mbse/share/int/macro/fr    0750  French template macros
/opt/mbse/share/int/macro/gl    0750  Galego template macros
/opt/mbse/share/int/macro/nl    0750  Dutch template macros
/opt/mbse/share/int/macro/zh    0750  Chinese template macros
/opt/mbse/share/int/menus/de    0750  German menu files
/opt/mbse/share/int/menus/en    0750  English menu files
/opt/mbse/share/int/menus/es    0750  Spanish menu files
/opt/mbse/share/int/menus/fr    0750  French menu files
/opt/mbse/share/int/menus/gl    0750  Galego menu files
/opt/mbse/share/int/menus/nl    0750  Dutch menu files
/opt/mbse/share/int/menus/zh    0750  Chinese menu files
/opt/mbse/share/int/txtfiles/de 0750  German ANSI screens
/opt/mbse/share/int/txtfiles/en 0750  English ANSI screens
/opt/mbse/share/int/txtfiles/es 0750  Spanish ANSI screens
/opt/mbse/share/int/txtfiles/fr 0750  French ANSI screens
/opt/mbse/share/int/txtfiles/gl 0750  Galego ANSI screens
/opt/mbse/share/int/txtfiles/nl 0750  Dutch ANSI screens
/opt/mbse/share/int/txtfiles/zh 0750  Chinese ANSI screens
/opt/mbse/tmp                   0770  Temp directory
/opt/mbse/tmp/arc               0770  Temp archiver directory
/opt/mbse/var                   0770  Var root
/opt/mbse/var/arealists         0750  Areamgr arealist files
/opt/mbse/var/badtic            0750  Bad TIC files
/opt/mbse/var/boxes             0770  Base for nodes fileboxes
/opt/mbse/var/bso               0770  Binkley-style outbound directory
/opt/mbse/var/bso/outbound      0770  Default outbound for main AKA
/opt/mbse/var/dosemu            0770  Base for DOS drives (doors)
/opt/mbse/var/dosemu/c          0770  DOS drive C:
/opt/mbse/var/fdb               0770  Files database
/opt/mbse/var/inbound           0750  Protected inbound directory
/opt/mbse/var/magic             0750  Magic file request names
/opt/mbse/var/mail              0770  JAM message base root
/opt/mbse/var/msgs              0770  *.MSG netmail directory
/opt/mbse/var/nodelist          0750  Nodelists
/opt/mbse/var/queue             0750  Queue for before outbound
/opt/mbse/var/rules             0770  Echomail area rules files
/opt/mbse/var/run               0770  PID files of running programs
/opt/mbse/var/sema              0777  Semaphore files
/opt/mbse/var/ticqueue          0750  Queue for TIC files
/opt/mbse/var/unknown           0750  Unprotected inbound directory

Use ext4 for Linux or UFS if you use FreeBSD. If you intend to make your BBS 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

First, if you use FreeBSD, install the psmisc package. This will make sure that MBSE BBS is stopped properly if you shutdown your computer. Also if you use FreeBSD 5.0 or later make sure that you mount procfs, see man procfs for details. If you don't mount procfs, you cannot add new users to the BBS and existing BBS users cannot change their passwords. As sysop, you can't change passwords too.
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-1.1.7.tar.bz2. Unpack this archive on your system, in /tmp:

cd /tmp
tar xfvj /path/to/the/mbsebbs-1.1.7.tar.bz2
To start the script type:
cd mbsebbs-1.1.7
bash ./SETUP.sh
Ubuntu users should do:
cd mbsebbs-1.1.7
sudo bash ./SETUP.sh
Yes, 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:
  1. Create the group bbs
  2. Create the user mbse On Ubuntu this user is added to the admin group.
  3. Create a .profile for user mbse
  4. Create and set owner of directory tree under /opt/mbse
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:
  1. The user BBS is added.
  2. 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.
  3. If they don't exist in the file /etc/services the services fido, tfido and binkp will be added.
  4. 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 everything is all right, then remove the directory /tmp/mbsebbs-1.1.7:

cd /tmp
rm -Rf mbsebbs-1.1.7

 

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 xfvj /path/to/mbsebbs-1.1.7.tar.bz2
You now have the subdirectory with sources in the right place. Next build the binaries and install them using the following commands:
cd ~/mbsebbs-1.1.7
./configure [--enable-optimize] [--enable-newsgate] [--enable-gdkdel]
make
su        important, do not use "su -"
password: enter root password here
make install
exit
Ubuntu users should do:
cd ~/mbsebbs-1.1.7
./configure [--enable-optimize] [--enable-newsgate] [--enable-gdkdel]
make
sudo make install
Important: it seems logical to use the --enable-newsgate option but it isn't. When you do, the mbnntp program is disabled and you cannot serve echomail as news to your users via internet. But you can gate echomail to the internet. Independant of your choice, you can allways make internet news available for your BBS users. Only use --enable-newsgate if you really need to gate echomail to the internet.

To support Chinese the DELete key needs to be changed because it conflicts with one of the characters. If you want to use Chinese, use --enable-gbkdel to configure.

The 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 start

Ubuntu users should run: sudo /etc/init.d/mbsebbs start

This 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: 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 various default configuration files. In the default language (English) directory, you now have default menu datafiles and ANSI screens. These are copies of the main test system so you have to edit them to build your own BBS.

Editing ANSI screens can be done on a Linux system with one of the following packages:

  1. TheDraw: TheDraw runs well under DOSemu, DOSbox, or DOSbox-X. The dev team uses TheDraw under DOSemu for their own BBSes.
  2. duhdraw: The Github repo for duhdraw is at https://github.com/mtatton/duhdraw. It has not been updated in a very long time. No binaries are available for download.
  3. TetraDraw TetraDraw's source code is at https://tetradraw.sourceforge.net/. There is a binary for FreeBSD at https://www.freshports.org/editors/tetradraw/. When Sean tried to use it, that binary segfaulted.

You may also want to edit ~/etc/header.txt and ~/etc/footer.txt as 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.

 

Back to IndexBack to Index