home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / OS2 / O2ACEBB1.ZIP / OS2HELP.TXT < prev   
Text File  |  1994-02-10  |  13KB  |  301 lines

  1.     How to Configure a Board (MULTI-NODE!!!) under OS/2
  2.         with limited system resources. (Ram and CPU)
  3.             
  4.  
  5.  
  6.  
  7. 1. Notice 
  8.    ------
  9. This is just to say that in no means am I an OS/2 expert, and actually
  10. I just started learning it. However I have learned enough to figure out
  11. how to make a board with two high speed lines FLY under OS/2 and make it
  12. worthwhile for people with system setup's with at least my own. I can't
  13. guarantee that this will work or may or may not corrupt your system, but
  14. I will try my best.
  15.  
  16. 2. System Requirements
  17.    -------------------
  18. I have a 386dx40 (M321 Model) and 8 megs of Ram.  If you have less than this
  19. you are welcome to try this stuff, but i can almost guarantee that the
  20. performance will not be that great. If you have less than the above mentioned
  21. hardware, my advice is to use DESQview, and grab a copy of the other text 
  22. help file I wrote, called DVACEBB?.zip available on my system.
  23.  
  24. 3. Intro - My story
  25.    ----------------
  26. I feel I should let everyone in on how I came to this point. Having used
  27. DESQview for a long time, I wanted something more functional, something
  28. in which I didn't have to quit to dos every time I wanted to use a program
  29. that simply wouldn't function in DV, but since I have two nodes, and no Bus
  30. Mouse (a bit mouse, rather than serial) OS/2 seemed like a bit of a drag to
  31. get to know without one, and besides, my system isn't what you would call
  32. a ferrari. Eventually I said to heck with it and I tried OS/2. It's great
  33. the screens are a lot smoother than in DV, and the disk access really is
  34. great to the CPU. Unfortunately, I found that the communications programs
  35. that I use really don't like OS/2. My users complained of big three second
  36. pauses or general all around poor performance. So I went back to DV.  Then
  37. one day, after wishing I could get OS/2 to work for me, I set it up again
  38. and went to work on it. Now I can safely have two nodes loaded, play any
  39. OS/2 application with no slowdown to the CPU, run any os/2 friendly Dos
  40. program with virtually no slowdown, all the while maintaining the great
  41. 32 bit multi threaded multitasking of OS/2 that you simply can't expect from
  42. a Dos Task Switcher.  There are people out there who say OS/2 Sucks, as there
  43. are people that say DESQview sucks. Both of these programs are actually very
  44. good, and with the given time and care, they can be formed to work quite
  45. well depending on your system. These people obviously run something, and 
  46. when it "Doesn't work perfect after the first run" it sucks. These people
  47. are ignorant, and really should stick to Dos without multitasking. Enough
  48. blabber, to those of you that read all this, thanks. On to the good stuff.
  49.  
  50. Config.Sys Settings for OS/2
  51. ----------------------------
  52. Here are the settings of mine that I changed in OS/2 or added.
  53.  
  54. PRIORITY_DISK_IO=NO 
  55.  
  56. This makes sure that the disk drive doesn't hog the CPU when
  57. it's accessed, and gives the priority away to other things.
  58.  
  59. MAXWAIT=1
  60.  
  61. This defaults to 3, but it's a good idea to put it at 1, so that
  62. it will only put a thread on hold for that amount of seconds.
  63.  
  64. TIMESLICE=32,64
  65.  
  66. Not exactly sure how this one works, but it has to do with the
  67. amount of time the computer spends on each thread. This is the
  68. one that was recommended to me by OS/2 guru's (unlike me!)
  69.  
  70. Those are basically the main ones that have been changed. There are
  71. others that have been changed, but I will explain those in a little
  72. more detail a little further ahead.
  73.  
  74. Replacing the Default OS/2 Com Drivers
  75. --------------------------------------
  76.  
  77. Simple. Simply download the latest version of SIO*.* from my board, and
  78. unzip it in a dir, and simply rem out any lines with com or vcom in your
  79. config.sys and replace them with these ones..
  80.  
  81. DEVICE=c:\os2\com\sio.sys (Comx:LockedBaudRate) (Comx:LockedBaudRate)
  82. DEVICE=c:\os2\com\vsio.sys
  83.  
  84. These com drivers are well worth installing, as the ones that come with
  85. OS/2 aren't nearly as good.
  86.  
  87. Replacing the Presentation Manager as your Primary Shell
  88. --------------------------------------------------------
  89.  
  90. This is of special interest to persons who 1) don't have a mouse installed  
  91. for various reasons and 2) wanna save a SHITLOAD of memory and improve
  92. their performance rather dramatically. There are some disadvantages to 
  93. consider. Here are the pros and cons.
  94.  
  95. Advantages
  96. ==========
  97. 1. Takes a LOT less memory just to boot your computer up and go into OS/2.
  98. 2. Allows you to MUCH easier access certain things, like DOS SETTINGS, and
  99.    other stuff, without a mouse. All your DOS SETTINGS are included in text
  100.    files and whenever you want to make changes you edit the text file with
  101.    the settings and yer happening.
  102. 3. Seems to make everything run much smoother on a 8 meg 386dx40 system.
  103. 4. YES you can still run ALL PM OS/2 programs...
  104.  
  105. Disadvantages
  106. =============
  107. 1. Not as many ram consuming Icons.
  108. 2. No big pop up displays for editing stuff.
  109. 3. Loss of PM specific features (nothing too special)
  110. 4. One bug is that it seems to not you call batch files from in batch files
  111.    without exiting both batch files. I'm trying to solve this problem, and
  112.    at present, it doesn't matter, because for all the stuff I do like mail
  113.    and online events, I simply have OS/2 open up another dos window to do
  114.    all these things when the time comes. I will let anyone know when I 
  115.    figure this one out in a future update of this file.
  116. 5. Some people will say it looks too plain. Oh well. Tell it runs like SMOKE
  117.  
  118. To set MSHELL.ZIP (On my board, FREQ) is really simple. Simply dump it in the
  119. root directory, and edit this line in your config.sys
  120.  
  121. SET RUNWORKPLACE=C:\OS2\PMSHELL.EXE
  122.            to
  123. SET RUNWORKPLACE=C:\OS2\MSHELL.EXE
  124.  
  125. Dat's it!! 
  126.  
  127. OH!! Wait. There's more
  128.  
  129. Your going to need a program, that will let you start DOS SESSIONS from
  130. an OS/2 Command line. There's a slew of these. The one I use is called 4OS2,
  131. which is actually a command interpreter that replaces the CMD.EXE command
  132. as well. You can use either or. If you intend to use HSTART or STARTDOS (OS2
  133. programs that start dos sessions, you need to do nothing, cept read the dox
  134. on how to use those files) If you intend to use 4OS2 (my recommendation as
  135. it allows a slew of other features that are really nice for your OS/2
  136. prompts and batch programming, etc), then you would have to edit the follow
  137. ing lines in yer config.sys...
  138.  
  139. SET OS2_SHELL=C:\OS2\CMD.EXE 
  140.           to
  141. SET OS2_SHELL=C:\4OS2\4OS2.EXE
  142.  
  143.           and
  144.  
  145. SET COMPSPEC=C:\OS2\CMD.EXE
  146.           to
  147. SET COMPSPEC=C:\4OS2\4OS2.EXE
  148.  
  149. Of course I strongly recommend that you read up on 4OS2 and 4DOS in general.
  150.  
  151. Now that you've done all that, you simply reboot your computer and the thing
  152. will generate a default Mshell.ini (listing of the task selections you want
  153. in the mshell.ini) Here is what mine looks like...
  154.  
  155. Tomb #1 ; start /f /max /k /win /dos=c:\board1.sta c:\portal\os2port1.bat
  156. Tomb #2 ; start /f /max /k /win /dos=c:\board2.sta c:\portal\os2port2.bat
  157. Tomb #3 ; start /f /max /k /win /dos=c:\board3.sta c:\node3.bat
  158. Big Dos ; start /f /max /win /dos=c:\games.sta /k
  159. BaseBall Sim ; start f /max /win /c /dos=c:\4dos\tiny.sta /k c:\baseball
  160. Big Os2 ; 4os2
  161. Asteroids ; asteroid.cmd
  162.  
  163. The start is the 4OS2 Command that opens DOS sessions. You can read up
  164. on the various options with the HELP command in 4OS2. Currently taking
  165. Tomb #1 for example, it would start a foreground(/f),windowed(/w), to be
  166. kept after the application is run (/k) and with the dos settings specified
  167. in the file board1.sta file, and to run the batch file os2port1.bat as
  168. the task. (Note that you should make a batch file in yer root dir for the
  169. specified task here, as there seems no good way to get it to change to the
  170. proper directory in any other fashion, and some programs would get upset if
  171. their data files weren't in the current directory)The Dos settings file 
  172. looks like this:
  173.  
  174. board1.sta
  175.  
  176. DOS_AUTOEXEC=c:\Autoexe2.bat
  177. DOS_FILES=40
  178. DOS_DEVICE=C:\OS2\COM\VX00.SYS
  179. DOS_SHELL=C:\4dos\4dos.com c:\4dos
  180. DPMI_MEMORY_LIMIT=1
  181. XMS_MEMORY_LIMIT=1024
  182. EMS_MEMORY_LIMIT=200
  183. DOS_FCBS=16
  184. IDLE_SECONDS=0
  185. IDLE_SENSITIVITY=50
  186. VIDEO_ROM_EMULATION=1
  187. VIDEO_FASTPASTE=1
  188. VIDEO_RETRACE_EMULATION=1
  189.  
  190.  
  191. Note that some off the Yes/No settings are represented by 0 for no and
  192. 1 for yes.
  193.  
  194. That about it does it for dos sessions...to run Os/2 sessions you need only
  195. specify the command on the mshell.ini line, and not need to load start, since
  196. it loads the os window anyways. After you make changes to the mshell.ini
  197. file you MUST switch to the mini shell window, hit options and Update Mshell
  198. .ini file before any changes will take place..
  199.  
  200. Using Mshell
  201. ------------
  202.  
  203. Not much to it really. Hit O for options and you can use the print spooler,
  204. the Shutdown system, even open a generic os/2 prompt, and of course be able
  205. to update the ini file when you make changes. Use yer regular keyboard
  206. PM commands to move around the menus and stuff.
  207.  
  208. Optimizing your Dos Sessions
  209. ----------------------------
  210.  
  211. All of the Dos settings in my previous posted board1.sta are the ones I
  212. use and perhaps other should try and well as they seem to work rather
  213. nice for me. It's up to you if you wanna play with these or not.
  214.  
  215. Opening Dos Sessions from within other Dos Sessions
  216. ---------------------------------------------------
  217.  
  218. This is what you might have to do until one can figure out how to call
  219. batch files and have the window NOT close when the exit command is executed
  220. and dump all batch files immediately. For me, This is even better, because
  221. it lets me open up windows to do the maintenance or mail for me and the
  222. mailer goes back up. To do this, you would need once again a program that
  223. will let you use dos programs in dos sessions, and I use 4dos for many
  224. reasons because of this. Very similar to 4OS2 cept of course it has some
  225. rather specific dos functions. But you would call it in roughly the same
  226. way. Rather than saying call mail.bat or having your mail commands in
  227. your mailer's main batch file, simply have this line in yer :MAILIN label
  228.  
  229. :Mailin
  230. start /f /win /c /dos=c:\4dos\tiny.sta mail.bat(or online.bat,etc)
  231. goto start
  232.  
  233. what this would do is open up a foreground windowed session set to close
  234. when completed rather than sit there at the command line, and it would
  235. use the dos file tiny.sta for it's dos settings and run the mail.bat file.
  236. Also keep in mind that you should attempt to learn a bit about 4DOS, and
  237. you would get more out of this.
  238.  
  239. Running PM Programs
  240. -------------------
  241.  
  242. Simple. Open an Os/2 prompt. Run the program. Bingo. I do it all the time.
  243.  
  244. Editorial
  245. ---------
  246.  
  247. If you do all of the following you can get your system to run damn fine. Of
  248. course this might be a bit confusing to some, but you can get the hang of it.
  249. Also something that might not be obvious is the dos_device= line. In there
  250. you would point that to a file called vx00.sys that is where you installed
  251. the sio comm files earlier. This is the fossil for dos programs and is 
  252. required if you want fossil support for your dos programs. On another note,
  253. try and run as MANY os/2 programs as you can, such as an os/2 text editor
  254. ( I suggest Boxer/2 for OS/2 GREAT!!!!!), and as much as you can handle. I
  255. still run many dos programs, such as my mailer and bbs software, and these
  256. programs may not run quite as well as some os/2 similar programs but they
  257. are fine for me. Try and at least pick software that recognizes Os/2 exists
  258. and not totally brain dead to it. (HOG THE CPU> UGHGH) I STRONGLY urge you
  259. if you use external protocols to pick up a copy of a newer (febuary 1994)
  260. version of GSZ, as it was specifically optimized to work better under OS/2.
  261. (And i recommend using the HA SLOW option on the command line)
  262. Another thing to acquire is an OS/2 specific term program....here is a list
  263. of programs i recommend and programs I would look out for as they have
  264. caused me pain and trouble.
  265.  
  266. KEEPERS!
  267. ========
  268.  
  269. Renegade
  270. Portal of Power
  271. GSZ (Febuary or Later)
  272. Many RG Utils are being optimized for OS/2
  273. 4DOS (FOR MANY MANY REASONS!!)
  274. Boxer for Dos/Os2 (get a copy of each!! Grin)
  275. ANY OS/2 Program!! They run GREAT!! Take almost NO CPU TIME!!!
  276.  
  277. WOA!! Where did my CPU go!!!
  278. ============================
  279. Most online games
  280. BRE 9.55
  281. Usurper .002
  282. Tw2002 Beta 3
  283. Warlords of the Balance (fine on cpu..but has screwed com routines)
  284. Many Dos Graphic Programs...
  285.  
  286. OH well. I must have missed a few things. But I can't think of any
  287. other stuff to write about. So, if you have any problems or stuff that
  288. you think you can better this on or even have some new suggestions for
  289. me, then drop by my board and chat me.
  290.  
  291. Acererak (Neil D)
  292.  
  293. The Tomb of Horrors
  294.  
  295. (416)255-2164 / (416)255-2165
  296.  
  297. Fido (1:250/346,348)
  298. ItcNet (85:896/502)
  299. TeleNet (20:23/211)
  300. SillyNet (654/100/903)
  301.