home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / comm / bbs / 4d-bbsdemo / docs / text / 03.getting_started < prev    next >
Encoding:
Text File  |  1993-12-28  |  20.0 KB  |  522 lines

  1. Chapter 3:  Getting Started
  2.  
  3.  
  4.  
  5.  
  6. 3.1 Command Line Parameters (CLP)
  7.  
  8.     4D-BBS uses command line parameters (CLP) to allow you to customize
  9. its behavior to suit your needs right from startup!  CLPs are arguments
  10. used in normal DOS commands.
  11.  
  12.     4D-BBS also uses a configuration file that imitates the CLPs, however
  13. a CLP will always override the setting of the configuration file.
  14.  
  15.     All parameters are preceeded with a "/" or "-" and should be spaced
  16. apart BETWEEN THE PARAMETERS.  NO spaces should be between the "/" or "-"
  17. and the actual command itself.  CLPs CAN NOT be stacked by using a single
  18. "/" or "-" with multiple commands.
  19.  
  20.     A "#" following a CLP should be replaced by a numerical value, and a
  21. "$" should be replaced by a character string.  The "!" following a CLP
  22. indicates the CLP is a switch.  A blank or a "0" following the CLP is
  23. considered off, while a "1" is considered on.
  24.  
  25.     In the event a space is needed for a parameter, enclose JUST that
  26. parameter including the "/" or "-" within quotation marks.  The commands
  27. ARE case sensitive.
  28.  
  29. 3.1.1 CLP Descriptions
  30.  
  31.     CLP DESCRIPTION
  32.  
  33.     A!  Enter ARexx Port Server Mode, Wait for Commands
  34.  
  35. Brings the BBS up in WAIT mode and does NOT monitor the serial port.  This
  36. mode is used mainly as an ARexx server.  (Refer to Chapter 10.)
  37.  
  38. Example:  4D-BBS -A
  39.  
  40.     a$ ARexx Port Name
  41.  
  42. Allows you to change the base ARexx port name created when 4D-BBS is
  43. started up.  All ARexx doors and scripts should address this name if you
  44. want 4D-BBS to recognize the commands.  (Refer to Chapter 10.)
  45.  
  46. Example:  4D-BBS -aARexxName
  47.  
  48.     B# True Baud Rate of "/o" Call
  49.  
  50. Lets 4D-BBS know the true baud rate if different than the serial baud rate.
  51. Used for login and transfer time calculations.  This command only has an
  52. affect when used with the "b" CLP.
  53.  
  54. Example:  4D-BBS -o1 -b19200 -B2400 Range:  300-115,200
  55.  
  56.     b# Lock the Serial Baud Rate
  57.  
  58. Allows 4D-BBS and your modem to send information at a fixed serial rate.
  59. This is only needed for modems which have data compression capabilities.
  60. (Refer to Chapter 12.)
  61.  
  62. Without "/o" CLP:  Lock Serial Port at rate With "/o" CLP:  Serial Baud
  63. rate for call
  64.  
  65. Example:  4D-BBS -b38400 Range:  300-115,200
  66.  
  67.     C# Number of Last Callers Saved
  68.  
  69. Allows you to set the number of callers saved to the file "BBS:lastcall.t".
  70. If you have low memory try to keep this number as low as possible.
  71.  
  72. Example:  4D-BBS -C10 Range:  1-30
  73.  
  74.     c# Number of Bitplanes to Use (Colors = 2^#)
  75.  
  76. If you have low memory, run multiple lines, or are running on an
  77. unaccelerated Amiga, use "1" or "2" here not only to save memory, but to
  78. speed up the BBS.  This setting has NO affect on the user's color, as they
  79. will see the full set of colors.
  80.  
  81. Example:  4D-BBS -c2 Range:  1-4 (2-16 colors)
  82.  
  83.     D$ Filename of Directories Data File
  84.  
  85. A data file containing a list of alternative paths for 4D-BBS to use.  The
  86. order of the paths or assigns is as follows:
  87.  
  88. BBS Path or Assign FILE Path or Assign MENU Path or Assign TEXT Path or
  89. Assign USERS Path or Assign BOARDS Path or Assign DOORS Path or Assign
  90.  
  91. Example:  4D-BBS -DBBS:AltPaths.Dat
  92.  
  93.     d# Hang-up Behavior of BBS
  94.  
  95.         0:  Don't do anything to hang-up (used in a spawn mode)
  96.         1:  Drop DTR to hang up modem
  97.         2:  Use "+++,,,ATH" to hang-up modem
  98.  
  99.         Example:  4D-BBS -d1
  100.  
  101.     f$ Font to Use with 4D-BBS
  102.  
  103. You can use just about any font you wish with 4D-BBS.  It will look in your
  104. "FONTS:" directory and append the ".font" on the end if it is not already
  105. there.  If the requested font is already open in RAM, it will use it.  If
  106. not, it will open your diskfont and use it.
  107.  
  108. Example:  4D-BBS -fGraphics.font
  109.  
  110.     G$ Configuration File to Use
  111.  
  112. Instead of using the default "S:4D.Config" file, you can specify an
  113. optional file for 4D-BBS to get its configuration settings from.  The FULL
  114. path must be given.
  115.  
  116. Example:  4D-BBS -GS:4D2.config
  117.  
  118.     h!  Reset to System High Baud After Every Caller
  119.  
  120. This is mostly used in conjunction with the other serial and baud related
  121. CLPs.  When the BBS is running in continuous answer modem, it will reset
  122. BACK to the system high baud after each call when this parameter is given.
  123. Normally it will stay at the last caller's baud rate, until another call at
  124. a different baud rate comes in.
  125.  
  126. Example:  4D-BBS -h1
  127.  
  128.     H!  Hide Screen and Don't Make Active when Starting
  129.  
  130. Tells 4D-BBS to open its custom screen in the back, and NOT make it the
  131. active screen.  Normally used with "/o1" when being spawned by another
  132. program.
  133.  
  134. Example:  4D-BBS -H1
  135.  
  136.     I!  Open 4D-BBS in Iconified Mode Instead of Full Screen
  137.  
  138. This is a very handy memory saving option.  The user receives a slightly
  139. faster response time as local screens and windows are not updated.  A small
  140. title bar will appear to give you system status reports including on-line
  141. users name and their activity.  You can un-iconify 4D-BBS by quickly
  142. clicking the left then right mouse buttons while pointing in the small
  143. window.  The close gadget will completely shutdown the BBS, so be careful
  144. when using it.
  145.  
  146. Example:  4D-BBS -I
  147.  
  148.     K!  Turn Keyboard Input Off when 4D-BBS is Started
  149.  
  150. Allows you to switch off normal keyboard input, the AMIGA key commands, and
  151. function keys.  Your mouse or an ARexx script is the only way to turn
  152. keyboard input back on.
  153.  
  154. NOTE:  If you use the CLP of "-M" to switch your pull down menus OFF to
  155. save memory and do not have an ARexx script to turn your keyboard back ON
  156. 4D-BBS will not recognize keystrokes.  Use the option in "Defs" pull down
  157. menu to toggle this option.
  158.  
  159. Example:  4D-BBS -K1
  160.  
  161.     L# Number of Screen Lines to Use
  162.  
  163. Sets the number of displayable lines to the SysOp.  If your screen/window
  164. is not large enough 4D-BBS will increase the size.  A number greater than
  165. 32 will cause an interlaced screen to be opened.
  166.  
  167. Example:  4D-BBS -L50 Range:  20-60
  168.  
  169.     M!  Disable Pull-Down Menus
  170.  
  171. Saves memory by disabling the pull-down menus.  You cannot use the
  172. pull-down menus or the AMIGA keys if you set this CLP.  The function keys
  173. will NOT be disabled.
  174.  
  175. Example:  4D-BBS -M1
  176.  
  177.     m$ Replacement File for BBS:Modem.dat
  178.  
  179. In the event that you are running multiple modems, allows you to use a
  180. different modem data file without editing the same file for each change of
  181. modem.  Can also be used in a multi-line situation, when different modems
  182. are being used.  Will only be in effect is auto-detect is enabled in the
  183. configuration editor.
  184.  
  185. Example:  4D-BBS -mBBS:ModemUSR.dat
  186.  
  187.     N$ Forced User Name if Using "/o"
  188.  
  189. The string following N will be used as the user name, and the user will not
  190. be prompted for one.  The CLP "-P" is normally associated with this
  191. command.  If BOTH "-N" and "-P" are given with the "/o1" or "/os" CLP, and
  192. the name or password is incorrect, 4D-BBS will quit returning an error
  193. code.  If just "-N" and "/o1" or "/os" is given the user will be prompted
  194. for a password.  If the password is given incorrectly three times, 4D-BBS
  195. will quit returning an error.
  196.  
  197. In the event the BBS is spawned from another program (i.e.  the BBS is not
  198. responsible for responding to the phone line) a script can be written to
  199. automatically log you into the BBS using the "/os", "-N" and "-P"
  200. parameters.  This will function as pressing F10 for the SysOp local logon
  201. from the BBS wait screen.
  202.  
  203. If the user name contains a space in it, surround just this CLP with double
  204. quotation marks.
  205.  
  206. Example:  4D-BBS -os "-NJohn Doe" "-Pjane"
  207.  
  208.     o!  Logon Once Remote, Without a Waiting Screen
  209.     os Logon Once Local, Without a Waiting Screen (can also be -o2)
  210.  
  211. This is mainly used by a network front end program to call up 4D-BBS when a
  212. carrier is present.  4D-BBS will send the opening logon screen, and act as
  213. if it had responded to the phone.  Once the call is complete, the BBS will
  214. shut down, and return control to the calling program.
  215.  
  216. For a remote spawn, the calling program will need to pass the "-b" CLP to
  217. tell 4D-BBS what serial rate to use.  The "-B" CLP should also be passed to
  218. tell 4D-BBS what the true carrier rate is.
  219.  
  220. For a local spawn ("/os") 4D-BBS will not actually open the serial port.
  221. The serial I/O will not checked during the session, but everything else
  222. will function as a normal call.  (Refer to Chapter 14 for more information
  223. on Networking.)
  224.  
  225. Example:  4D-BBS -o1 -b19200 -B14400
  226.  
  227.     P$ Forced User Password if Using "/o" and "/N"
  228.  
  229. Works in the same way as the "-N" CLP and is the users password.  This CLP
  230. is ONLY used when BOTH "-o" and "-N" parameters are provided otherwise it
  231. is ignored.  See the N CLP for more information on this.
  232.  
  233. Example:  4D-BBS -os -NSysop -PNotell
  234.  
  235.     r!  Transfer types:  RZ/SZ Externals(0) or XPR Libraries(1)
  236.  
  237. Determines whether the BBS uses the XPR libraries when transferring files
  238. or the two external programs called RZ/SZ.  RZ/SZ can ONLY be used on
  239. serial port 0, but are written in 100% assembler and are very fast and
  240. efficient.  The XPR libraries give the BBS more flexibility and a wider
  241. range of transfer protocols to use.  They are not as efficient as RZ/SZ,
  242. but can be used on any serial port.
  243.  
  244. If you are running a multi-line BBS, you MUST use XPR libraries.
  245.  
  246. Example:  4D-BBS -r1
  247.  
  248.     S$ Set the Announce String
  249.  
  250. To get a quick message to the on-line user without entering into chat mode,
  251. you can use the pull-down menu command ANNOUNCE.  This command will first
  252. locate a file called "Tellem" in RAM.  This file can be anything, and if
  253. it's there it will be typed to the users screen.  If it is not found,
  254. 4D-BBS will send the string set by this CLP.
  255.  
  256. This function is primarily for users that do not have ARexx, as the ARexx
  257. "messqueue" command is a cleaner way to send messages to an on-line user.
  258.  
  259. The default string for this option is:  "System request -> BBS will be
  260. going down in a few moments."
  261.  
  262. Example:  4D-BBS "-SI'm Sorry, I can not chat with you right now."
  263.  
  264.     s$ Serial Device Name for 4D-BBS to Use
  265.  
  266. If you wish to use a serial device other than "serial.device" you can
  267. specify the particular device name here.
  268.  
  269. Example:  4D-BBS -sgvpser.device
  270.  
  271.     T# Time Added or Subtracted with F7/F8 or Menu Commands
  272.  
  273. When time is given to the on-line user via the function keys or pull-down
  274. menu commands, this number will represent the amount of time given or
  275. taken.  This number should always indicate a positive value.  The default
  276. is 10 minutes.
  277.  
  278. Example:  D-BBS -T15 Range:  1-99
  279.  
  280.     t# Inactivity Timeout Before Auto-Logoff
  281.  
  282. Allowable time the user can stay on-line without any activity is determined
  283. by this CLP.  The default is 4 minutes.
  284.  
  285. Example:  4D-BBS -t7 Range:  1-99
  286.  
  287.     U# Time Awarded to User for Uploads
  288.  
  289. When a user uploads a file to the BBS, user can be rewarded by being given
  290. extra time on-line for the upload.  This CLP allows you to set the number
  291. of extra seconds per Kilobyte uploaded the user is given.  This function is
  292. defaulted to "0", no reward given.
  293.  
  294. Example:  4D-BBS -U Range:  1-99
  295.  
  296.     u# Serial Unit Number
  297.  
  298. Allows you to use a unit other than "0".  This can be be used in
  299. conjunction with the "-s" CLP, but is not necessary.
  300.  
  301. Example:  4D-BBS -u2
  302.  
  303.     V# Verbose Listing of CLP Settings and System Information
  304.  
  305. Verbose can be used as a debugging mode.  4D-BBS will send additional
  306. information on the system status and defaults to the standard output.
  307. These can include 4D-BBS file locations, successful file opens, current
  308. window positions, size and positions of windows, fonts and font sizes
  309. currently open, errors in data files, menus, and other important system
  310. information.
  311.  
  312. If you are running 4D-BBS and redirecting output to the "NIL:" device,
  313. nothing will be echoed, since this suppresses output.  The number following
  314. the "V" parameter signifies the amount of information 4D-BBS will display.
  315.  
  316. If you are experiencing errors with 4D-BBS or getting erratic results from
  317. a function, enable this mode to see if any additional information is given
  318. to help you resolve the problem.  If you call for support on a problem, you
  319. will be requested to run the BBS in this mode to aid in problem solving.
  320.  
  321. Example:  4D-BBS -V1 Range:  0-9
  322.  
  323.     v!  Enable 4D-BBS Function Announcements
  324.  
  325. Tells 4D-BBS to "talk" about user activity.  The "SPEAK:" device must be
  326. mounted for this to work properly.
  327.  
  328. Example:  4D-BBS -v1
  329.  
  330. As many CLPs can be given as is necessary.  Please look through a few of
  331. the scripts located in your "RunScripts" directory for more examples of
  332. using CLPs.
  333.  
  334. NOTE:  If you are running multiple BBSs it is necessary to set each of them
  335. to a different serial unit if you are not logging on locally.  4D-BBS will
  336. handle changing the ARexx port name so it is a unique name.
  337.  
  338. 3.2 Set Up
  339.  
  340.     4D-BBS gives you the flexibility to customize most settings from
  341. within the BBS program.  The only files necessary to edit outside the BBS
  342. program are the menu files.  You can edit text files from inside the BBS
  343. program by using the text editor on the SysOp menu.  You may find it more
  344. convenient to use your favorite text editor rather than the editor built
  345. into the BBS program.
  346.  
  347. 3.2.1 Understanding the System
  348.  
  349.     4D-BBS can be broken down into 6 different sections with a directory
  350. or multiple directories to coincide with each section.  Although you can
  351. change these directory paths using the "/D" parameter or the configuration
  352. editor (see Appendix B), the default directory paths are:
  353.  
  354.         System Files Directory BBS:
  355.     * Message Bases Directory BOARDS:
  356.     * File Transfers Directory FILE:
  357.     * Text Files Directory TEXT:
  358.         Menus Directory MENU:
  359.     * Users Directory USERS:
  360.     * Doors Main Directory DOORS:
  361.  
  362.     Note:  As of V1.65 the "MAIL:" directory is no longer used, and the
  363. default directory for local mail is "BOARDS:Board_0/".
  364.  
  365.     Directories marked with an "*" indicate a sub-directory exists.
  366. (Refer to chapters 4-7 for more information on an individual directory.)
  367.  
  368.     Each of the above directories contain specific data files for that
  369. section.  In most cases, 4D-BBS will not execute if the first 6 directories
  370. and appropriate data files are not found.
  371.  
  372.     It is not necessary that all directories be located on the same
  373. device.  You may assign them to any kind of device:  floppy drives,
  374. external memory, hard disks, etc.  However, we DO NOT recommend you assign
  375. "BBS:" or "USERS:" to memory.  These directories contain important system
  376. and user data.  In the case of a power failure or system crash all these
  377. files would be lost.  It is recommended to assign "MENU:" to memory as it
  378. speeds up the menus.  4D-BBS does not update anything in the "MENU:"
  379. directory.
  380.  
  381. 3.3 Data/Text Files
  382.  
  383.     4D-BBS creates its own data files if you start from scratch, but the
  384. above directory paths are necessary.  In addition, you will need the
  385. following files.  Most files are supplied on the 4D-BBS disk.  You will
  386. need to modify several of these files in order to customize your BBS.
  387.  
  388.     Text:  READMSG.HELP Message reading commands
  389.     Text:  READMAIL.HELP Mail reading commands
  390.     Text:  EDITOR.HELP Message entry system commands
  391.     Text:  LOGON.TXT.ASCII Shown at logon before name entry
  392.     Text:  LOGON.TXT.ANSI Shown at logon before name entry
  393.     Text:  NEWUSER.TXT.ASCII Text sent to new user before registration
  394.     Text:  NEWUSER.TXT.ANSI Text sent to new user before registration
  395.     Text:  POSTNEWUSER.TXT.ASCII Text sent to new user after registration
  396.     Text:  POSTNEWUSER.TXT.ANSI Text sent to new user after registration
  397.     Text:  STATS.TXT.ASCII Shown at logon after name entry
  398.     Text:  STATS.TXT.ANSI Shown at logon after name entry
  399.     Text:  LOGOFF.TXT.ASCII Shown at logoff
  400.     Text:  LOGOFF.TXT.ANSI Shown at logoff
  401.  
  402.     Boards:  origin.dat Default random tagline file for Fido
  403.     Boards:  Board_#/origin.dat *Specific random tagline file for Fido sub
  404. #
  405.     Boards:  board_#/entry.txt *Text shown when user changes to sub #
  406.  
  407.     File:  Sect_#/FList.T *BBS stores file name and size for section #
  408.     File:  Sect_#/Entry.txt *Text shown when user changes to section #
  409.  
  410.     Users:  new-list New user name only
  411.     Users:  User-List All user names, locations, computers
  412.  
  413.     BBS:  Def_say.t Text strings for 4D-BBS
  414.     BBS:  Lastcall.t Last callers and last words
  415.     BBS:  Modemresp.dat Modem configuration
  416.     BBS:  Personal.menu Pull-down menu commands
  417.     BBS:  Sysdefs.d Default system parameters
  418.     BBS:  Systotal.Dat System totals information
  419.     BBS:  UserDefs.D Default users parameters
  420.     BBS:  Waitscreen.txt Text shown while waiting for caller
  421.     BBS:  XprSetup.dat XPR libraries configuration
  422.     BBS:  BoardDefs.d Default message base settings
  423.     BBS:  NetDefs.d Network address and information
  424.     BBS:  FileDefs.d Default file transfer settings
  425.  
  426.                                 *Path is default and definable in
  427. editors.
  428.  
  429.     The first 3 files are the help files, which do not require changes.
  430. The remaining files may be modified to suit your needs.  Examples are
  431. included on the 4D-BBS disk.  You may use these to begin with.
  432.  
  433.     Some files have two versions; one for users who log on in ANSI mode
  434. and one for users who log on in ASCII mode.  ".ANSI" files do not need ANSI
  435. sequences, but ".ASCII" files should have plain text only.  You can produce
  436. ".ANSI" files with an ANSI text editor such as ANSI Master.
  437.  
  438.     The "LOGON.TXT" files are visible to the user after their modem
  439. connects to the BBS and before the logon prompt appears.  "STATS.TXT"
  440. files, which usually show the user's statistics, are shown after the user
  441. has typed in their password.
  442.  
  443.     If you do not want these files to be shown, you may rename or delete
  444. them.  The BBS will continue without producing an error message if these
  445. files are not found.
  446.  
  447.     The "NEWUSER.TXT" file is shown to the user after they log on as "NEW"
  448. and before the user registration procedure starts.  This file is often used
  449. to explain your BBS and how the new user can sign up.
  450.  
  451.     "LOGOFF.TXT" file is shown when the user logs off.
  452.  
  453. 3.3.1 Waiting Screen
  454.  
  455.     This is not required at the time of set-up, but you can design a
  456. custom ANSI waiting screen in place of the default screen.  For this custom
  457. screen, call your file "waitscreen.txt" and place it in the "BBS:"
  458. directory.  Be sure to look at the section on embedded instructional codes
  459. (Appendix A6), which will be very useful for your waiting screen.  (Refer
  460. to Chapter 10 for more information regarding waiting screen commands.)
  461.  
  462.  
  463.  
  464. 3.3.2 External Transfer Libraries:  BBS:XPRSetup.dat
  465.  
  466.     This file is for the configuration of XPR libraries.  Each library is
  467. referenced in your "LIBS:" directory.  Normally case is significant in
  468. using libraries.
  469.  
  470.     The first line of the file is the NUMBER of XPR libraries your system
  471. has.  There is a maximum of 10 libraries.  After the first line, each
  472. library will have 2 lines.  The first line will be the name of the library
  473. as presented to the user.  The second line is a combination of the FULL
  474. library name, a space, and any initialization options which the library
  475. needs.  Refer to the individual library's documentation for a listing of
  476. the initialization options.  An example file would be:
  477.  
  478.     1:  7
  479.     2:  X-Compuserve
  480.     3:  xprquickb.library
  481.     4:  X-Kermit
  482.     5:  xprkermit.library
  483.     6:  Xmodem
  484.     7:  xprxmodem.library T0,C0,K0
  485.     8:  Ymodem-1K
  486.     9:  xprymodem.library OFile:Sect_0
  487.     10:  Ymodem-Batch
  488.     11:  xprymodem.library YB,OFile:Sect_0
  489.     12:  Ymodem-G
  490.     13:  prymodem.library YG,OFile:Sect_0
  491.     14:  Zmodem 1K
  492.     15:  xprzmodem.library T?,ON,B5,AN,DN,RN,SN,PFile:sect_0
  493.  
  494. 3.3.3 Keyfile for Registered Users
  495.  
  496.     Registered users will receive a keyfile with 4D-BBS.  This keyfile
  497. needs to be named "4D-BBS.Key" and placed into the "BBS:" directory.
  498.  
  499.     Without the keyfile, 4D-BBS will be locked into DEMO mode, allowing a
  500. maximum of 30 minute calls, 5 message bases, and 5 file transfer sections.
  501.  
  502.     Whenever a new version of 4D-BBS is released, install it according to
  503. the instructions which accompany it, and you will be set.  The updates
  504. should be freely available from any BBS.
  505.  
  506. 3.4 Executing the Program
  507.  
  508.     Use the "StartBBS" script which the installer created to run the BBS.
  509.  
  510.     Several scripts are also included in the BBS package.  These scripts range
  511. from SysOp one-time startup with workbench screen to normal continual wait
  512. mode.  It is best if you familiarize yourself with the CLP list explained
  513. earlier and write your own shell executable scripts.
  514.  
  515.     Think of the CLPs as a secondary configuration file:  you can alter
  516. how the BBS runs without having to go into the configuration editor.  You
  517. can look at a few of the scripts found in your "RunScripts" directory and
  518. review section 3.1, to better understand how to customize the execution of
  519. 4D-BBS.  Once you understand what parameters you use most frequently, you
  520. can use the configuration editor program to make these the default.  (For a
  521. quick reference to the CLPs, see Appendix A3.)
  522.