This README was last updated: Sunday, August 25, 2013

These instructions assume you have a new, clean DOS 6.22 system which you
are going to use to install the MajorBBS v6.25.

These instructions have only been tested on the following platforms:

  DOS 6.22 running on real hardware
  DOS 6.22 running under VMware Workstation 9.0.2
  DOS 6.22 running under VirtualBox 4.2.16
  Windows 98SE running on real hardware
  
If you are setting this up under DOSBOX, Windows XP, FreeDOS, some other
version of MS-DOS, or on some other virtual machine, then you may encounter
problems which I couldn't foresee during my testing. I will test these
instructions on other platforms when I can.

Regarding the directory names that are used for the installation of your
MBBS - note that life is a LOT easier if you stick with the standard
directory names; don't get creative.

If you choose to use other directory names, you will have to edit all the
.BAT, .LNK, .MAK, .DEF, and .CFG files so that those files will use the
directory name you chose. It's a lot of wasted effort for nothing, so stick
with the standard directory names like C:\BBSV6, C:\BORLANDC, and C:\RUN286.

These directions assume the C: drive will be used for installation. If you
are using some other drive letter, you will need to substitute C: for
the drive letter you are actually installing to.


1. Before you do anything, you should make sure you have your CONFIG.SYS
   set up properly. When installing the MBBS, the installer will not finish
   if you don't have the following FILES line in your CONFIG.SYS:

   Edit your CONFIG.SYS and add the following line:

      FILES=127
  
   Reboot and continue with the next step.

2. Install the MBBS to C:\BBSV6

   Assuming this archive is mounted as D:, you can install the MBBS by
   typing the following commands:
   
      D:
	  CD \INSTALL\BBSV6
	  INSTALL.EXE

   Note that I have experienced a case where the installation will fail
   part way through. This seems to occur when installing MAJORBBS.EXE.
   I don't know why it happens, but when it does, I simply re-run
   INSTALL.EXE and it finishes.
   
   *** IMPORTANT ***
   When the installation finishes, it will ask for a serial number. When it
   does, just press the ESC key to get back to a DOS prompt. We need to
   copy a cracked version of GALGSBL.DLL over to the C:\BBSV6 directory in
   order to ensure we can use up to 256 nodes.
   
   Once you're at the DOS prompt, copy GALGSBL.DLL from the GSBLHACK
   directory to C:\BBSV6 and allow it to overwrite the existing
   GALGSBL.DLL.
   
      D:
	  CD \GSBLHACK
	  COPY GALGSBL.DLL C:\BBSV6
   
   Note: **this must be done at the time of installation before you
   ever type in an activation code.**
   
   If you type in an activation code and try to copy the GALGSBL.DLL over
   later, you will get a License Violation shortly after starting the
   BBS.
   
   Once the cracked GALGSBL.DLL has been copied over, you can finish
   installing the BBS by going to C:\BBSV6 and typing "BBS" at the prompt.
   
   C:
   CD \BBSV6
   BBS.BAT
      
   You will need to choose the modem set up and the BBS type.
   
   For the modem type, you can just press 1 2 3 4 to turn them all
   off (unless you actually have a physical modem you plan to use.)

   For the BBS type, PUBLIC is the most likely choice.
   
   Once the setup is complete, you can bring up the BBS and there won't be
   any kind of License Violation.
   
3. Install TCP210-E to C:\BBSV6

   Before we install TCP210-E, there is one very minor technicality we
   can take care of. When the TCP210-E installer finishes it, it will
   try to run a BAT file called WG.BAT. That is a Worldgroup thing and
   it doesn't exist for The MajorBBS v6.25. So before we install
   TCP210-E, it's a good idea to set up a simple redirect so that WG.BAT
   will "call" BBS.BAT instead. Here's all you have to do:
   
      C:
	  CD \BBSV6
	  ECHO BBS.BAT > WG.BAT
	  
   That's it. Now when the TCP210-E installer finishes, it will run
   WG.BAT which will in turn run BBS.BAT.
   
   Now, proceed with installing TCP201-E by typing the following:

      D:
	  CD \INSTALL\TCP210E
	  INSTALL.EXE

   Note that the installer will want to install TO C:\WGSERV by default.
   Be sure to change this C:\BBSV6
   
   Note that I have experienced a case where the installation will fail
   part way through. This seems to always occur when unzipping TCPLIB.DLL.
   I don't know why it happens, but when it does, I simply re-run
   INSTALL.EXE and it finishes. (One time it failed on me twice, but the
   third time I ran INSTALL.EXE it finished. I have not yet identified why
   this happens.) If you have problems getting past this step, try copying
   the TCP210E directory over to C:\INSTALL\TCP210E and run INSTALL.EXE
   from the C: drive instead. Perhaps the installer sometimes fails because
   the D: drive is a read-only media type?

4. Once TCP210-E is installed, you should be at the Major BBS main menu.
   If not, go to C:\BBSV6 and type BBS to allow the system to finish
   initializing the various TCP210-E files.
   
5. From the main menu, choose Option 1, Hardware Setup and set Option #2
   (Channel Group #1) to Telnet. Set Option #4 (Starting channel number)
   to 1. Set Option #5 (Number of channels) to a reasonable number of
   channels for your BBS. (Assigning lots of channels is just a waste of
   memory, so only assign as many as you need.) Leave channel groups 2
   through 16 set to NONE unless you have a good reason to set them
   otherwise.

6. Scroll down a way to Option 377 for System polling rate. (If you don't
   see it, Press F8 and search for POLRATE.) Set the System polling rate to
   38400. If you don't set the System polling rate, then even the local
   logon will be limited to a painfully slow 2400bps.

7. Scroll down to the TCPLIBM.MSG options and set the TCP/IP settings
   according to your local network.
   
   Note that if you're setting up the system inside of a VMWare session,
   you'll have to set the IP address for the subnet of your virtual
   network, and NOT the subnet for your regular network.
   
   For example, if your normal network has IP addresses such as
   192.168.1.1, this will not be the same IP address space that is used by
   your VMware virtual network.
   
   In order to find out what IP addresses your VMware virtual network is
   using, (under Windows 7), go to Start -> Control Panel -> Network and
   Internet -> View network status and tasks. Then, over on the far left
   where it says "Control Panel Home", click on Change adapter settings.
   
   Now locate the VMware Network Adapter that is associated with your
   VMware session, right click it and go to properties, then click on
   Internet Protocol Version 4 (TCP/IPv4) and then click the Properties
   button below.
   
   Make a note of the IP address. This IP address tells us what IP
   address space the VMware virtual network is using. This IP address will
   be the Gateway IP address that you need to enter in the TCPLIBM.MSG
   section (Option GATEWAY1).
   
   Now go back to the MBBS set up and type in an IP address that is in
   the same subnet as the VMware virtual network. If your VMware virtual
   network is using 192.168.56.1 as the IP address, then you can use
   192.168.56.2 (or 192.168.56.3, 192.168.56.4, and so on all the way out
   to 192.168.56.254).
   
   This IP address stuff can get a little technical, but there's no way
   around it. If you don't get it right, you won't be able to telnet
   into your BBS.
   
   Once you have your IP address figured out, go back to the TCPLIBM.MSG
   section and enter your IP address, local network mask (subnet), and for
   the Gateway IP address, type in the IP address that you got from the
   VMware Network Adapter TCP/IPv4 properties.

   For the DNS servers, use 8.8.8.8 and 8.8.4.4

   Once you have the IP address, local network mask, Gateway IP address,
   and the primary and secondary domain name servers set up, save and exit
   back to the main menu.
   
8. Go to Option 3, Security & Accounting. Here we have 2 activation codes
   that must be set. If you don't set these, you won't be able to telnet
   into the system.

   The first activation code enables the whole TCP/IP stack. The second
   activation code enables "incoming" (e.g. telnet) connections.

   Scroll down to the TCPLIBM.MSG section or press F8 and search for
   ACTCODE. This is Option #112.

   Set the activation codes as follows:
     Activation Code (Option #112): JVHHTKTB
     Activation Code for incoming option (Option #113): ZIR-YECK
     Activation Code for DMA Server: <not needed / I don't know what this
	 is for / I don't have an activation code for it anyway>  

   Once you have the activation codes set, save and exit back to the
   main menu.

9. In order for the BBS to communicate with the outside world, you have to
   have a PACKET driver loaded. The PCNTPK.COM file seems to do the trick
   under VMware.
   
   If you're not setting up the system under VMware, you may have to find
   a different PACKET driver than the one included in this archive. For
   example, when I setup the MBBS on a computer I have which runs DOS
   6.22 natively (it's not being emulated), I have to use a DOS PACKET
   driver for the network card that I have installed in that machine.
   (Which happens to be a RealTek 8139.) Refer to the following website
   if you need to locate a DOS PACKET driver for your network card.
   
   http://www.georgpotthast.de/sioux/packet.htm
   
   Regarding the PCNTPK.COM PACKET driver that can be used within a VMware
   session, that PACKET driver is available at the website listed above,
   but it's also the kind of file you want to keep locally as there is no
   guarantee you'll be able to find it online in the future.
   
   Copy the LIB\PCNTPK.COM from the "Master CD" to some location on your C
   drive. I like to put drivers/libraries in their own directory. I use
   C:\LIB, but you can use any directory you like.
   
   Once you've copied the PCNTPK.COM PACKET driver to your C: drive, put
   the following line at the end of your AUTOEXEC.BAT and then reboot:

   LH /L:1 C:\LIB\PCNTPK.COM INT=0x60

   Note LH assumes you also have DEVICE=HIMEM.SYS in your CONFIG.SYS
   If you don't have DEVICE=HIMEM.SYS in your CONFIG.SYS, add it, or
   use this instead in your AUTOEXEC.BAT:
   
   C:\LIB\PCNTPK.COM INT=0x60

   Note that in my tests, the installation of TCP210-E will cause VMware
   to crash the session if the PCNTPK.COM driver is already loaded. 
   
   If you've been following this README in order, then this won't have
   been a problem. But if you skipped ahead and are trying to load the
   PCNTPK.COM driver BEFORE you've installed TCP210-E, then know that you
   will encounter major problems when you try to install TCP210-E.
   
   Once you have put the PCNTPK.COM driver in your AUTOEXEC.BAT, your
   completed AUTOEXEC.BAT should look something like this:

   @ECHO OFF
   C:\DOS\SMARTDRV.EXE /X
   PROMPT $P$G
   PATH C:\DOS;C:\BORLANDC\BIN;C:\RUN286\BIN;C:\BBSV6\SRC
   LH C:\LIB\MSCDEX.EXE /D:MTMIDE01 /L:D
   LH /L:1 C:\LIB\PCNTPK.COM INT=0x60
   REM DOSKEY is optional. REM the line if
   REM you do not want it loaded at bootup.
   LH C:\DOS\DOSKEY.COM

   The completed CONFIG.SYS should look like this:

   DEVICE=C:\DOS\SETVER.EXE
   DEVICE=C:\DOS\HIMEM.SYS
   DEVICE=C:\DOS\EMM386.EXE NOEMS
   DEVICEHIGH=C:\LIB\MTMCDAI.SYS /D:MTMIDE01
   DOS=HIGH,UMB
   FILES=127
   BUFFERS=30
   FCBS=4,0
   STACKS=9,256

   I don't know what the ideal settings are for AUTOEXEC.BAT and
   CONFIG.SYS. There are some notes in the v6.25 document that say not
   to use EMM386, and the document says using DEVICE=HIMEM.SYS and
   DOS=HIGH is not necessarily a good idea. In my basic testing, I
   haven't seen any problems with EMM386 being in the CONFIG.SYS, nor
   have I seen any problems with HIMEM.SYS and DOS=HIGH. But keep in
   mind that if you have crashes or lock ups, these could be responsible.
   So if you experience crashes or lock ups, try removing EMM386 and
   the DOS=HIGH stuff.

   There are completed copies of the AUTOEXEC.BAT and CONFIG.SYS in the
   BOOT directory of this archive. For the sake of simplicity, you can
   copy those over to your C:\ drive as long as all the directory and
   file names are in the same locations.
   
      D:
	  CD \BOOT
	  COPY AUTOEXEC.BAT C:\
	  COPY CONFIG.SYS C:\

   Once you have the AUTOEXEC.BAT and CONFIG.SYS set up, reboot your
   system and bring up the BBS by going to C:\WGSERV and typing BBS.
   
      C:
      CD \WGSERV
      BBS.BAT
   
   When the BBS comes up, you should see a line in the Audit Trail that
   says "BBS UP: V6.25/X25/LAN-256"
   
   The -256 at the end is how many nodes you can support. If it says
   -2 or something other than -256, then there must have been some problem
   installing the GSBLHACK.
   
   You should also see a line that says "TCPLIB [2.10-E]". That line
   indicates that your TCP/IP "stack" is enabled. (Don't worry if you see
   something like "TCPPOP3 Disabled". That is just one of the services
   of TCP/IP. It doesn't mean TCP/IP isn't working, it just means that
   particular service hasn't been configured.)
   
   As long as your TCP/IP "stack" is up and running, you will be able to
   telnet into your BBS as long as you have all the IP address, subnet,
   gateway, and DNS stuff entered correctly.
   
   If everything went according to plan, you should be able to log in
   to the BBS locally and telnet in remotely.
   
   If you can log in locally but are unable to telnet in, the first thing
   you should check is your IP address, subnet, gateway, and DNS settings
   in the Hardware Setup.
   
   For most people, you can stop here. You're done!
   
   If you're a programmer and want to be able to edit the MBBS source code
   to make changes, or if you want to compile the MBBS "for the fun of it",
   then continue on to the next section.   
 
***********************************************************
Setting up a development environment for The MajorBBS v6.25
***********************************************************

   
1. Before you do anything, you should make sure you have the proper
   directories in your path. Edit the AUTOEXEC.BAT so that it includes:

      PATH=C:\DOS;C:\BORLANDC\BIN;C:\RUN286\BIN;C:\BBSV6\SRC

   Reboot and continue with the next step.
	  
2. Install Borland C++ 3.1 to C:\BORLANDC

   Assuming this archive is mounted as D:, you can install Borland C++ by
   typing the following commands:
   
      D:
	  CD \INSTALL\BORLANDC
	  INSTALL.EXE
	   
   Note that the Borland C++ installer defaults to A: as the source drive
   letter. You will need to change that to D:
   
   Also note that the installer will want to install to D:\BORLANDC by
   default. You will need to change that to C:\BORLANDC

   For the Install Options, you only need the Command Line and
   Turbo Assembler.
   
   For the Example Options, you don't need any.
   
   For the Windows Options, you don't need any.
   
   For the DOS Library Models, you only need LARGE and HUGE. All the other
   Library Models can be set to No.

4. Install Phar Lap 286 DOS Memory Extender to C:\RUN286
   Note that for the Phar Lap program, I can't find a regular
   installer version. You just have to copy the RUN286 directory from the
   source location to your C drive. To simplify this process, I have
   created an INSTALL.BAT that will copy the files for you. However,
   note that it WILL NOT WORK unless you are installing *TO* drive letter C.

  The automatic installation:
   
      D:
	  CD \INSTALL\RUN286
	  INSTALL.BAT

   If you did the automatic installation, you can skip to step 5 now.

   If you need (or want) to copy the files manually, read on.

   The manual installation:
   
   Use the following commands to "install" the Phar Lap 286 DOS Memory
   Extender:

      MKDIR C:\RUN286
      D:
      CD \INSTALL\RUN286
      XCOPY /E /V *.* C:\RUN286
	   
   Note that we are using XCOPY and not COPY. We need to copy files and
   directories, and that requires the use of the XCOPY command with the 
   /E switch. If you just use COPY (or if you use XCOPY without the /E
   switch), it will not preserve the directory structure. The /V switch
   is not absolutely necessary. It just verifies that each file is copied
   correctly.   

   If you're trying to install this inside of DOSBOX, or under some system
   other than DOS 6.22, you may need to use some command other than XCOPY
   in order to copy (and preserve) the file and directory structure.
   
   Note: If you want to clean up your C:\RUN286 directory a bit, you can
   optionally delete the unneeded directories:
   
      C:
	  CD \RUN286
	  DELTREE EXAMPLES
	  DELTREE DOCS
	  DELTREE BC2
	  DELTREE BC4
	
5. Install the MBBS SDK (v6.25 source code) to C:\BBSV6
   Note that the original INSTALL.BAT will *muck* up the installation
   unless you edit the INSTALL.BAT accordingly. By default, the original
   INSTALL.BAT wants to install by having you run "a:install", but no one
   uses floppy disks any more so it's not practical to install that way.
   
   So before you run the INSTALL.BAT file, you should make sure that the
   INSTALL.BAT makes sense for your particular set up.
   
   The INSTALL.BAT on my "Master CD" can be ran by going to the D:
   drive, then going into the INSTALL\MBBS_SDK directory and typing
   INSTALL.BAT.
   
      D:
	  CD \INSTALL\MBBS_SDK
	  INSTALL.BAT
   
   If you have the "Master CD" mounted as a different drive letter, then
   you will need to make the appropriate changes to get the MMBS_SDK
   installed properly.

6. The next thing we have to do is install Borland C Huge Model Support.
   This is a multistep process but can be done automatically by using the
   INSTALL.BAT file that is in the INSTALL\HUGEMODL directory on the
   "Master CD". 

      D:
	  CD \INSTALL\HUGEMODL
	  INSTALL.BAT

   Note that when you run the INSTALL.BAT it may say that certain files
   already exist. That is fine, just overwrite them.

   If you don't want to run the INSTALL.BAT file, then you need to do
   steps 7-10 by hand.

7.  Edit the C:\BORLANDC\BIN\TURBOC.CFG file, delete whatever it says
    and replace it with:
   
    -I\BORLANDC\INCLUDE;\RUN286\INC;\BBSV6\SRC
    -L\BORLANDC\LIB;\RUN286\BC3\LIB;\BBSV6\DLIB
   
8.  Edit the C:\BORLANDC\BIN\TLINK.CFG file, delete whatever it says
    and replace it with:
   
    -L\BORLANDC\LIB;\RUN286\BC3\LIB;\BBSV6\DLIB
   
9.  Unzip the PLPAT2.ZIP file to C:\RUN286\BC3\LIB

10. Go to the C:\RUN286\BC3\LIB directory and type:
       MKLIB H \BORLANDC\LIB

11. Once you've completed steps 7-10, either manually or by running the
    \INSTALL\HUGEMODL\INSTALL.BAT file, you then need to go to
	\BBSV6\SRC and type MAKEBBS.BAT in order to compile the BBS.
	
       C:
	   CD \BBSV6\SRC
	   MAKEBBS.BAT

	Note that if you happen to be installing this under Windows NT/XP*
	instead of DOS 6.22, when you run MAKEBBS.BAT, it will error when it
	reaches the 3rd make item - galp&qr
   
    Windows doesn't like the & character. To fix the problem you just
    have to edit \BBSV6\SRC\MAKEBBS.BAT and enclose the command in
    quotations like this:
   
    make -f"\bbsv6\src\galp&qr"
	
	* To the best of my knowledge, you can't run the MBBS under a true
	  32-bit environment like Windows NT/XP. I've tried it and haven't
	  been able to make it work.
	

   If everything went according to plan, you should be able to log in
   to the BBS locally and telnet in remotely.
   
   If you are confident that you did everything right, but you are still
   unable to get this to work, then I apologize that my documentation wasn't
   good enough.
   
   The End.
   
blixel@gmail.com