home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Complet / FreeDOS / fdbootcd.iso / FREEDOS / PACKAGES / BASE / DISK04 / SAMCFG / CONFIG.SYS next >
Text File  |  2004-01-23  |  11KB  |  294 lines

  1. This is a sample configuration for FreeDOS. You can find FreeDOS at
  2. http://www.freedos.org/ - it is open source and freeware.
  3.  
  4. A "beta 9" pre-release is out since mid 2003. 
  5. If you have beta 8, you can use the beta 9 files to update all "base" 
  6. packages in one go. This sample config makes use of new kernel features like ECHO. 
  7. As of 10 October 2003, current versions on http://freedos.sourceforge.net/ are:
  8. FreeCOM 0.82pl3 XMS swap and kernel 2032a FAT32 (with new SYS!).
  9. You can now boot from anywhere (even beyond 8 GB) and no refreshing
  10. of the boot sector is needed after resize / Ghost / PQ DriveImage...
  11.  
  12. We call FreeDOS "beta" because we want to provide almost everything
  13. that MS DOS 5.0 has before calling FreeDOS "1.0"... However, we already
  14. do have FAT32 support (MS DOS did not have this even in Win95a) and
  15. some other goodies that you may remember from MS DOS 6.22 ... :-).
  16.  
  17. If you have questions about this sample configuration, mail me:
  18. eric foobar coli.uni lalala sb.de
  19. (replace " foobar " by @ and " lalala " by - to get my real adress)
  20.  
  21. Provided below are versions for 
  22. *the global system configuration file called config.sys 
  23.  (or fdconfig.sys if you want, which prevents other 
  24.  DOS from executing the FreeDOS specific system configuration)
  25. *The system automation file Autoexec.bat
  26.  you may use another name like FDAUTO.BAT, to prevent other
  27.  DOS from executing your FreeDOS specific commands.
  28.  be sure to mention it in config.sys then:
  29.  SHELL=C:\COMMAND.COM /P=C:\FDAUTO.BAT
  30.  
  31. we provide both a multi-menu version and a simple version of both files.
  32.  
  33.  
  34. ******* fdconfig.sys or config.sys follows *******
  35.  
  36. rem FreeDOS opens fdconfig.sys if it exists. If not, it uses config.sys
  37.  
  38. files=50
  39. break=on
  40.  
  41. rem this could cause problems but normally does not
  42. stacks=0,0
  43.  
  44. rem needed for CD-ROM and RAMDISK - default is E: otherwise
  45. lastdrive=Z
  46.  
  47. rem buffers will be auto-tuned anyway, but this is still not wrong to say:
  48. buffers=20,0
  49.  
  50. rem will only trigger when UMB and/or HMA become active, so you can leave
  51. rem it there all the time:
  52. DOS=HIGH,UMB
  53.  
  54. rem internally, FreeDOS is most compatible to MS DOS 5.0
  55. rem to override the DOS version for a single command invocation,
  56. rem you can use CALLVER. There is no memory-wasting SETVER TSR in FreeDOS.
  57. VERSION=6.20
  58.  
  59. rem I assume that all files are in c:\fdos\bin.
  60. rem I assume that you have renamed all DR DOS stuff to be called DR*.*
  61.  
  62. rem First, try which of those XMS/HMA drivers works best. The "?"
  63. rem makes DOS ask you whether it should load the driver.
  64. ECHO Select Y for at most one of the next 4 drivers.
  65. ECHO FDXMS286 is for 286 (max 16 MB), FDXXMS allows more than 64 MB.
  66. DEVICE?=C:\fdos\bin\FDXXMS.SYS BIOS NUMHANDLES=64
  67. DEVICE?=C:\fdos\bin\HIMEM.EXE
  68. DEVICE?=C:\fdos\bin\FDXMS.SYS
  69. DEVICE?=C:\fdos\bin\FDXMS286.SYS
  70. rem DREMM386 has builtin himem... DEVICE?=C:\fdos\bin\DRHIMEM.EXE
  71.  
  72. rem UMBPCI can be found on http://www.uwe-sieber.de/ and enables
  73. rem hardware UMB, which is faster than using any EMM386.
  74. rem version 3.51 also works with almost all systems,
  75. rem except Vmware if using any AMD processor.
  76.  
  77. rem DREMM386 needs a 203x kernel: 64k RAM for init are not enough.
  78. ECHO Select at most one of the next 3 EMS/UMB drivers - UMBPCI is
  79. ECHO fastest but w/o UMB. WARNING: FD EMM386 is FD*XMS* incompatible.
  80. DEVICE?=C:\fdos\bin\UMBPCI.SYS
  81. DEVICE?=C:\fdos\bin\EMM386.EXE
  82. DEVICE?=C:\fdos\bin\DREMM386.EXE
  83.  
  84. rem If your CD-ROM drive did not come with a DOS driver, you have to
  85. rem use one of the free generic CD-ROM drivers out there or the
  86. rem experimental FreeDOS ATAPICDD.SYS
  87. ECHO Select Y now if you want CD-ROM support
  88. DEVICEHIGH?=C:\fdos\bin\ATAPICDD.SYS /D:CDROM001
  89. rem there are stable dos drivers, like vide-cdd.sys and mtmcdai.sys
  90. rem look at page: http://www.opus.co.tt/dave/utils.htm
  91.  
  92. rem this is a new invention - October 2003... the 12 means 12/4=3 MB
  93. rem CDRom read caching, 1 CACHE per loaded cdrom-driveR
  94. rem (a single driver can handle multiple drives, by the way)
  95. ECHO Select Y now if you want a CD-ROM cache:
  96. DEVICEHIGH?=C:\fdos\bin\CDRcache.SYS CDROM001 CDRCACH$ 12
  97.  
  98. rem XMSDSK can be found online in FURD19_u.zip together with EMSDSK
  99. rem and is freeware. TDSK versions: open source 2.3, freeware 2.4...
  100. ECHO Select which of the following two RAMDISKs you want - if any
  101. DEVICEHIGH=C:\fdos\bin\XMSDSK.EXE 2048
  102. DEVICEHIGH?=C:\fdos\bin\tdsk.exe 2048 512 144 1
  103.  
  104. rem install this to cache drive C only (can cache others, but for testing...)
  105. rem actually, C means "everything on the first harddisk" to LBAcache.
  106. rem give the FLOP option to LBAcache to enable floppy caching as well.
  107. rem ... the BUF 12 option sets the cache size to 12/4=3 MB.
  108. ECHO Please say N and do not load the cache now if you loaded DREMM386.
  109. DEVICEHIGH?=c:\fdos\bin\lbacache.sys buf 12 drv c
  110.  
  111. rem NANSI even makes screen output faster and allows extra functions.
  112. rem the /S option disables potentially dangerous keyboard macros.
  113. rem NANSI should be loaded after the HMA driver - CON may not move.
  114. DEVICEHIGH?=c:\fdos\bin\NANSI.SYS /S
  115. rem EECHO replaces the $ sign by the ESCAPE char - since kernel 2030.
  116. rem see the NANSI documentation for a list of possible escape strings.
  117. EECHO $[0;1;33;44m I hope this activated colors :-)
  118.  
  119. rem This driver gives you a MORE$ device. Now you can use
  120. rem "tree > more$ " instead of "tree | more"... If Ctrl-Break or
  121. rem Ctrl-C crashes when using MORE$, update your kernel to 2032a.
  122. rem MORESYS should be loaded after the HMA driver - CON may not move.
  123. rem I wrote > for the "greater" sign, because I am not sure if it
  124. rem would be okay to use that sign in comments...
  125. DEVICEHIGH=c:\fdos\bin\MORESYS.SYS
  126.  
  127. ECHO If you want to activate DR emm386 DPMI now, you must not have
  128. ECHO activated any other emm386 above and better no HIMEM either.
  129. DEVICE?=c:\bin\dremm386.exe DPMI=ON DMA=256 MULTITASKING=ON EXCLUDE=C000-C7FF EXCLUDE=F000-FFFF INT15=16384 VERBOSE
  130.  
  131. rem make sure that this is indeed the path to command.com before running this!
  132. rem note how the special /p option syntax is used to select fdauto.bat
  133. rem instead of autoexec.bat - this is useful if you dual-boot FreeDOS and
  134. rem MS DOS / Windows and both share the C: drive (e.g. use MetaKern boot menu)
  135. SHELL=c:\fdos\bin\command.com c:\fdos\bin /e:512 /p=fdauto.bat
  136.  
  137. ******* fdauto.bat (autoexec.bat) follows *******
  138.  
  139. @echo off
  140. prompt $p$g
  141. rem you can also have a path like: C:\FREEDOS\BIN;C:\BIN;C:\BAT;.......:
  142. path C:\FDOS\BIN;C:\BATCHES
  143. set HELPPATH=C:\FDOS\HELP
  144. set LANG=US
  145. set NLSPATH=C:\FDOS\NLS
  146.  
  147. rem if you want to use non-US keyboards (e.g. German keyboard layout),
  148. rem you can use MKEYB (small but flexible), KBD-EA2 (only for German) or
  149. rem KEYB (bigger but with macro functionality), ... - some of those are
  150. rem even available as .SYS drivers for early loading and even smaller
  151. rem memory footprint. MKEYB/KBD-EA2 are less than 1 kilobyte in RAM.
  152. rem KBD-EA2 also works around a bug in EDIT which affects AltGr usage.
  153.  
  154. rem PERUSE is a TSR program to display files, so probably
  155. rem the term "scrolling driver" is a bit misleading. It is
  156. rem freeware, you can download a copy from my site.
  157. c:\fdos\bin\choice /c:yn Load PERUSE scrolling driver?
  158. IF errorlevel 2 GOTO noperuse
  159. lh c:\bin\peruse.exe
  160. echo PERUSE loaded
  161. :noperuse
  162.  
  163. c:\fdos\bin\choice /c:yn Load MOUSE driver?
  164. IF errorlevel 2 GOTO nomouse
  165. lh c:\fdos\bin\ctmouse.exe /3 /V
  166. rem /3 for 3-button and /V for serial-before-ps2 search order
  167. echo CuteMouse driver loaded
  168. rem CuteMouse includes the EGA.SYS functionality as a bonus...
  169. :nomouse
  170.  
  171. rem this will fail automatically if no CDROM driver is loaded :-)
  172. if not exist CDRCACH$ goto normalcd
  173. echo Activating cached CD-ROM drive now.
  174. lh c:\fdos\bin\shsucdx.exe /D:CDRCACH$,N
  175. goto nomorecd
  176. :normalcd
  177. if not exist CDROM001 goto nomorecd
  178. echo Activating uncached CD-ROM drive now.
  179. lh c:\fdos\bin\shsucdx.exe /D:CDROM001,N
  180. :nomorecd
  181.  
  182.  
  183. c:\fdos\bin\choice /c:yn Load SHARE driver?
  184. IF errorlevel 2 GOTO noshare
  185. LH c:\fdos\bin\share.exe /L:20 /F:2048
  186. echo SHARE.exe driver loaded
  187. rem Yes, FreeDOS does have a SHARE driver. If you have problems with
  188. rem it, mail me. In Linux xdosemu DOS boxes and in network context,
  189. rem FreeDOS may cause problems with Clipper file locking, though.
  190. :noshare
  191.  
  192. echo Welcome at FreeDOS. Press enter to go on and see environment:
  193. rem another pause-like command is set /p variable=prompt which sets
  194. rem an environment variable to a value provided by the user.
  195. pause
  196. set
  197.  
  198. echo FreeDOS is now at your service :-)
  199.  
  200.  
  201. ******* THIS WAS THE MULTIPLE CHOICE VERSION *******
  202. ******* AUTOMATIC ONE-CHOICE VERSION FOLLOWS *******
  203.  
  204.  
  205. ******* fdconfig.sys or config.sys follows *******
  206.  
  207. rem You could use MENUCOLOR here for a full screen menu but
  208. rem I prefer a smaller menu. See kernel package config.txt...
  209.  
  210. MENU 1 Load FreeDOS with UMBPCI, caches and CD-ROM support
  211. MENU 2 Load FreeDOS with DR DOS EMS driver only
  212. MENU 3 Load no extra drivers at all
  213.  
  214. !files=50
  215. !break=on
  216. !stacks=0,0
  217.  
  218. lastdrive=Z
  219. buffers=20,0
  220. DOS=HIGH,UMB
  221. VERSION=6.20
  222.  
  223. 1?DEVICE=C:\fdos\bin\FDXXMS.SYS BIOS NUMHANDLES=64
  224. 1?DEVICE=C:\fdos\bin\UMBPCI.SYS
  225. 2?DEVICE=C:\fdos\bin\DREMM386.EXE
  226.  
  227. 1?DEVICEHIGH=C:\fdos\bin\ATAPICDD.SYS /D:CDROM001
  228. 1?DEVICEHIGH=C:\fdos\bin\CDRcache.SYS CDROM001 CDRCACH$ 12
  229.  
  230. rem 1?ECHO Enter Y to load an XMSDSK ramdisk:
  231. rem 1?DEVICEHIGH?=C:\fdos\bin\XMSDSK.EXE 2048
  232.  
  233. 1?DEVICEHIGH=C:\fdos\bin\LBAcache.sys buf 12 drv c
  234.  
  235. rem the 12? means that NANSI is loaded for both menu options 1 and 2.
  236. 12?DEVICEHIGH=X:\fdos\bin\NANSI.SYS /S
  237. 12?EECHO $[0;1;33;44m I hope this activated colors :-)
  238.  
  239. 1?DEVICEHIGH=X:\fdos\bin\MORESYS.SYS
  240.  
  241. 3?ECHO Booting FreeDOS without any drivers - consider at least HIMEM
  242. 3?ECHO because it allows FreeDOS kernel and shell mostly in HMA/XMS.
  243.  
  244. rem No need to use 1?shell=... 2?shell=... as fdauto.bat can
  245. rem know which menu option is selected by reading %config%.
  246. rem The ! means that even F5 does not skip it (I think...).
  247. !SHELL=C:\fdos\bin\command.com c:\fdos\bin /e:512 /p=fdauto.bat
  248.  
  249. ******* fdauto.bat (autoexec.bat) follows *******
  250.  
  251. @echo off
  252. prompt $p$g
  253. path C:\FDOS\BIN;C:\BATCHES
  254. set HELPPATH=C:\FDOS\HELP
  255. set LANG=US
  256. set NLSPATH=C:\FDOS\NLS
  257.  
  258. IF not "%CONFIG%"=="1" goto noperuse
  259. echo Load PERUSE scrolling driver?
  260. ? lh c:\bin\peruse.exe
  261. echo PERUSE loaded
  262. :noperuse
  263.  
  264. IF "%CONFIG%"=="3" goto nomouse
  265. lh c:\fdos\bin\ctmouse.exe /3 /V
  266. :nomouse
  267.  
  268. if not exist CDRCACH$ goto normalcd
  269. echo Activating cached CD-ROM drive now.
  270. lh c:\fdos\bin\shsucdx.exe /D:CDRCACH$,N
  271. goto nomorecd
  272. rem the above goto avoids double SHSUCDX loading.
  273. :normalcd
  274. if not exist CDROM001 goto nomorecd
  275. echo Activating uncached CD-ROM drive now.
  276. lh c:\fdos\bin\shsucdx.exe /D:CDROM001,N
  277. :nomorecd
  278.  
  279. IF "%CONFIG%"=="3" goto noshare
  280. LH c:\fdos\bin\share.exe /L:20 /F:2048
  281. :noshare
  282.  
  283. IF "%CONFIG%"=="3" echo The environment contents are:
  284. rem echo. displays an empty line...
  285. IF "%CONFIG%"=="3" echo.
  286. IF "%CONFIG%"=="3" goto nopause
  287. echo Welcome at FreeDOS. Press enter to go on and see environment:
  288. pause
  289. :nopause
  290. set
  291.  
  292. echo FreeDOS is now at your service :-)
  293.  
  294.