home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / os2csm.zip / OS2CSM.ENG < prev    next >
Text File  |  1999-11-20  |  11KB  |  352 lines

  1. user documentation            OS2CSM                      Veit Kannegieser
  2. ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  3.  
  4.  
  5. Introduction
  6. ════════════
  7.   During starting of NWDOS/DRDOS i use the program BBB. It modifies
  8.   the CONFIG.SYS file loaded in memory. On DRDOS this is very simple
  9.   (no memory protection, you must only know where it is and DRDOS
  10.   even allows to load an user executable before loading device drivers.
  11.   Using OS/2 this is not possible.. user programs are loaded late.
  12.   An workaround could be writing an Snooper driver
  13.   (\OS2\BOOT\SNOOP.LST in Version 4). But i have not enough experience
  14.   to do that. So i have written something like an boot sector virus:
  15.   attached to OS2LDR it installs an filter to the BIOS disk interface
  16.   and modifies the loaded data if OS2KRNL tries to load the config.sys
  17.   file. To be really sure that it is the config.sys i must insert unique
  18.   comments (REM's) on every sector of the config.sys file (all 512 Byte).
  19.   512CONF.EXE does the config.sys marking and MENUCOMP inserts the
  20.   handler code in OS2LDR.
  21.  
  22. requirements
  23. ════════════
  24.   ■ OS/2 4.0
  25.     i have not tested other versions
  26.  
  27.   ■ CGA/EGA/VGA/SVGA graphic card
  28.  
  29.   ■ HPFS file system on boot partition
  30.     or FAT floppy or boot partition
  31.     FAT/EXT2/.. not tested
  32.  
  33.  
  34. Install
  35. ═══════
  36.  
  37. preparation
  38. ───────────
  39.  
  40.   ■ make bakup \CONFIG.SYS and OS2LDR.
  41.  
  42.   ■ make sure that emergency boot disks or ALT-F1 works
  43.  
  44.   ■ copy \OS2LDR to OS2LDR.ORG in directory of this program
  45.  
  46.  
  47. Install steps
  48. ─────────────
  49.  
  50.   in the following text D: will mean the OS/2 boot drive and
  51.   I:\OS2CSM the directory of this program.
  52.  
  53.   1. Think (on paper) what things are worth to configure and what
  54.      values are needed
  55.  
  56.   2. paint background and all things that do not move with an
  57.      programs like TheDraw (TDRAW463.ZIP). i have included an
  58.      sample (MENU.BIN). without colours it looks like this:
  59.  
  60.      (select "SYSTEM VIO" font)
  61.  
  62.  
  63.   OS/2 Config.Sys MENU * Veit Kannegieser * 1999.11.17
  64. ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  65. ░░ Filesystems & Cache ░░ Network drivers ░░ Shell                   ░░░░░░░░░░
  66. ░░                     ░░ √ TCP/IP,MPTS   ░░   single CMD            ░░░░░░░░░░
  67. ░░ HPFS      200 KB    ░░ ∙ LAN           ░░   single FC/2           ░░░░░░░░░░
  68. ░░           800 KB    ░░ ∙ Novell        ░░   PManager + CMD        ░░░░░░░░░░
  69. ░░         2000 KB    ░░░░░░░░░░░░░░░░░░░░░  PManager + FC/2       ░░░░░░░░░░
  70. ░░                     ░░ add. drivers    ░░   PM + Workplace Shell  ░░░░░░░░░░
  71. ░░ FAT       100 KB    ░░ √ CD ROM        ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  72. ░░           500 KB    ░░ ∙ CD Writer     ░░ DOS                     ░░░░░░░░░░
  73. ░░         1000 KB    ░░ ∙ IOMEGA Z-100  ░░   PROTECTONY            ░░░░░░░░░░
  74. ░░                     ░░ √ 1,4 MB SVDisk ░░  DOS Support           ░░░░░░░░░░
  75. ░░ EXT2     off        ░░ ∙ LPTool        ░░   DOS+Windows Support   ░░░░░░░░░░
  76. ░░         read       ░░ √ Soundcard     ░░ ∙ Odin                  ░░░░░░░░░░
  77. ░░          read/write ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  78. ░░                     ░░ Mouse           ░░ ChkDsk                  ░░░░░░░░░░
  79. ░░ VFAT    off        ░░   none          ░░   disabled              ░░░░░░░░░░
  80. ░░          read       ░░   Logitech      ░░  autocheck             ░░░░░░░░░░
  81. ░░          read/write ░░  Mouse Systems ░░   forced                ░░░░░░░░░░
  82. ░░                     ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  83. ░░ FAT32   off        ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  84. ░░          read       ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  85. ░░          write      ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  86. ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  87.  1) command line  2) single memory hog  3) nice Network Desktop
  88.  
  89.  
  90.   3. edit MENU.TXT
  91.      MENU.TXT contains variable names, ranges and where they are
  92.      located on screen.
  93.  
  94.      example HPFS CACHE size:
  95.  
  96.      VAR HPFS 4 3 3 3 H
  97.  
  98.      VAR        tell MENUCOMP that an variable follows
  99.      HPFS ......variable HPFS
  100.      4 .........colomn 4 \ that means under
  101.      3 .........line 3   / the H from HPFS
  102.      3 .........3 values (100/800/2000)
  103.      3 .........default value is 3 (2000)
  104.      h .........jump with 'h' key to this mun item
  105.  
  106.  
  107.   4. edit D:\CONFIG.SYS
  108.  
  109.      IFS=D:\OS2\HPFS.IFS /CACHE:^HPFS:1:100^^HPFS:2:800^^HPFS:3:2000^ /CRECL:128 /AUTOCHECK:DGHI
  110.  
  111.      the general syntax is:
  112.  
  113.      ^variable_name:needed_value[,needed_value[..]]:character_string^
  114.  
  115.      ■ charcter string may not contain line breaks !
  116.      ■ for logical combination simply use additional hidden variables
  117.        and statments (described later)
  118.      ■ you may put even an entire line into the string:
  119.  
  120.        ^PROTECTONLY:2:PROTECTONLY=yes^
  121.  
  122.  
  123.      ■ there is also an second form (only yes/no):
  124.  
  125.        ?"Protectonly=yes"PROTECTONLY=yes
  126.  
  127.        general syntax:
  128.  
  129.        ?"Text on Screen"character_string
  130.  
  131.        it will only executed if you answer wit "Y".
  132.  
  133.  
  134.   5. inster MENU.TXT and MENU.BIN together with the handler code
  135.      into D:\OS2LDR:
  136.  
  137.      MENUCOMP.EXE D:\
  138.  
  139.      (D:\ is the rootdir where OS/2 boots from)
  140.  
  141.   6. put an uniqe remar to every sector of Config.sys:
  142.  
  143.      512CONF.EXE D:\
  144.  
  145.      (D:\ ist the place wher to read and write the CONFIG.SYS file.)
  146.  
  147.      This process must be repeated for every change to D:\CONFIG.SYS !
  148.      (edited by You,an Install program,..)
  149.  
  150.   7. System Shutdown and Reboot
  151.  
  152.   8. report me errors and success..
  153.  
  154.  
  155. special case FAT
  156. ────────────────
  157.  
  158.   If OS/2 is booted from floppy there is screen message (IBM text logo)
  159.   before the config is read. This will cause the computer to hang if
  160.   OS2SCM code is loaded in video memory. Workaround: use the included
  161.   OS2BOOT file (copy OS2BOOT_ to A:\OS2BOOT). It will reserve some memory
  162.   for OS2SCM in conventional memory. If there occur boot problems make sure
  163.   that OS2BOOT ist not stored fragmented - simples way to ensure this is
  164.   to copy it first onto that disk.
  165.  
  166.  
  167. unistall
  168. ════════
  169.  
  170.   restore CONFIG.SYS and OS2LDR from backup (you have done it ?)
  171.  
  172.   or
  173.  
  174.   copy back OS2LDR.ORG to D:\OS2LDR
  175.   and execute 512CONF.EXE D:\ /U
  176.   to remove the remarks from D:\CONFIG.SYS
  177.  
  178.  
  179. Keyboard functions of the Menu
  180. ══════════════════════════════
  181.  
  182.  
  183. Tab .......................... jump to next variable
  184.  
  185. Shift-Tab .................... jump to previous variable
  186.  
  187. up/down +/- .................. modify selected variable
  188.  
  189. Esc .......................... quit menu and do not remain in memory
  190.                                use this key if you intend to use Alt-F1
  191.                                to load an other config.sys or an
  192.                                install programm had modified the config.sys
  193.                                and the system would hang.
  194.  
  195. Return ....................... quit menu and install handler
  196.  
  197. Alt-F1/F2 .................... like Return key but puts Alt-F1/F2 int keyboard
  198.                                buffer for OS/2 recorvery menu
  199.  
  200. Alt-F5 ....................... view BIOS status screen
  201.  
  202. Ctrl or Scroll Lock .......... if you hold Ctrl down during boot process
  203.                                the result of the modification will
  204.                                displayed on screen.
  205.  
  206.  
  207. Tips
  208. ════
  209.  
  210.  ■ let old and working commands in config.sys:
  211.  
  212.    ≡ install programms will find them and will be happy without
  213.      understaning of lines like ^HPFS=1:...
  214.  
  215.    ≡ if you boot with an original OS2LDR or press Esc-key in the menu
  216.      you can at least boot your system (ignoing a lot of "errors"
  217.      in config.sys)
  218.  
  219.  ■ After every Install program that changes the config.sys
  220.    call 512conf to fix it. A good way to make that easier is to
  221.    to create an .CMD file like D:\CONFIG.CMD:
  222.  
  223.             @ECHO OFF
  224.             X:\Y\UTILS\512CONF D:\
  225.  
  226.   or if you create an boot disk with OS2CSM put at least 512CONF.EXE
  227.   on that floppy to have it available in every case you may need it.
  228.  
  229.  
  230.  ■ fixpacks, other changes to OS2LDR
  231.    since MENUCOMP will create OS2LDR based on OS2LDR.ORG in the
  232.    OS2CSM directory it is important to change OS2LDR.ORG if OS2LDR is
  233.    changed by a fixpack (OS2LDR and new OS2KRNL must match !) or
  234.    by Programs like PatchLDR:
  235.  
  236.    fixpack: allow overwrite with the service program and copy \OS2LDR
  237.             to OS2LDR.ORG, recreate \OS2LDR with MENUCOMP
  238.  
  239.    PatchLDR: rename OS2LDR.ORG to OS2LDR, apply PatchLDR, rename back
  240.              to OS2LDR.ORG
  241.  
  242.  
  243.  
  244. Syntax for MENU.TXT
  245. ═══════════════════
  246.  
  247. the sample MENU.TXT is commented...
  248.  
  249. * specify alternate MENU.BIN
  250.   MENU_BIN <filename> [ <rows> ]
  251.  
  252.   TheDraw only edits files with 25/50/100 lines, you can edit an 50 line
  253.   file and MENUCOM will only use 28 lines if you give the rows parameter
  254.   28 and 50 rows are only possible on VGA cards.
  255.  
  256. * create an visible menu variable
  257.  
  258.   VAR <varibale name> <column> <row> <upper limit> <default value> [<jump key>]
  259.  
  260.   For <upper limit> = 1 the variable is an boolean variable with
  261.   only valid values 0=false and 1=true. In all other cases the range
  262.   is from 1 to <upper limit>. The <jump key> part is not required.
  263.   You should think about the different keyboard layout at boot time.
  264.  
  265. * create an not visible variable
  266.  
  267.   HIDDEN <variable name> <upper limit>
  268.  
  269. * assignments and calculations
  270.  
  271.   <V> is variable (like HPFS) oder value (3,TRUE)
  272.  
  273.   STATEMENT                       <variable> := <expression>
  274.   STATEMENT  IF <condition> THEN  <Variable> := <expression>
  275.  
  276.   <condition> is :
  277.   *         <V>
  278.   *     NOT <V>
  279.   * <V> OR  <V>
  280.   * <V> AND <V>
  281.   * <V> =   <V>
  282.   * <V> <   <V>
  283.   * <V> >   <V>
  284.   * <V> <=  <V>
  285.   * <V> >=  <V>
  286.   * <V> <>  <V>
  287.  
  288.   <expression> is :
  289.   *         <V>
  290.   *     NOT <V>
  291.   * <V> AND <V>
  292.   * <V> OR  <V>
  293.   * <V> XOR <V>
  294.   * <V> +   <V>
  295.   * <V> -   <V>
  296.   * <V> =   <V>
  297.   * <V> <   <V>
  298.   * <V> >   <V>
  299.   * <V> <=  <V>
  300.   * <V> >=  <V>
  301.   * <V> <>  <V>
  302.  
  303.   a valid line woul be for example
  304.  
  305.   STATEMENT IF SHELL < 3 THEN DOS := 1
  306.  
  307.   the spaces are needed !
  308.  
  309.  
  310.  
  311. intended extenstions
  312. ════════════════════
  313.  
  314. Please tell me what you think !
  315.  
  316. Of course it would mutch better if there would be an snooper driver that
  317. patches the entire config.sys at once in memory...
  318.  
  319. If you want try yourself ... sources are available
  320. (autor.txt)
  321.  
  322. 512CONF,MENUCOMP:       Virtual Pascal 2.0 (OS/2)
  323. handler modules         A86                (real mode)
  324.  
  325.  
  326. History
  327. ═══════
  328.  
  329.   ≡ 1999.02.21
  330.   ■ RSPINST modifies '=' to ' ' if it appears more than one time in a line
  331.     -> sytax expects now ':'
  332.  
  333.   ≡ 1999.06.21
  334.   ■ timelimt option fixed
  335.   ■ "^PROTSHELL:3,4:PROTSHELL=D:\OS2\PMSHELL.EXE^" now possible
  336.  
  337.   ≡ 1999.06.22
  338.   ■ timelimit default value fixed
  339.  
  340.   ≡ 1999.07.08
  341.   ■ MENUCOMP can now load files with system/read only attributes
  342.  
  343.   ≡ 1999.11.10..1999.11.20
  344.   ■ calculated/hidden variables
  345.   ■ boolean variables
  346.   ■ 28/50 rows possible
  347.   ■ ALT-F5 to view BIOS status screen
  348.   ■ DOS Version of 512CONF and MENUCOMP
  349.  
  350. ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  351.  
  352.