This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
operating_systems:freedos [2022/03/15 02:36] nanodano |
operating_systems:freedos [2022/03/21 23:53] (current) nanodano [Dealing with JemmEx out of memory error] |
||
---|---|---|---|
Line 29: | Line 29: | ||
- | ==== Use installer ==== | ||
+ | ==== Minimal manual installation ==== | ||
- | Recommended FULL install with source. The FULL install will give you the package manage `fdimples`. | + | Video on installing manually: [[https:// |
- | Download ISO from: | ||
- | |||
- | - On physical machine | ||
- | - In virtual machine - in VirtualBox, use the regular CD, not the Legacy one, but before you press " | ||
- | - Formatting hard disk | ||
- | - From within FreeDOS: `format C:` or `format C: /s` for bootable. | ||
- | - or: `fdisk` | ||
- | - If you re-install it won't wipe the existing data. | ||
- | - http:// | ||
- | - | ||
- | |||
- | ==== Manual installation ==== | ||
- | |||
- | Video on installing manually: https:// | ||
Steps: | Steps: | ||
Line 55: | Line 41: | ||
- Make the disk bootable and copy kernel with '' | - Make the disk bootable and copy kernel with '' | ||
- Optionally, install any desired packages by unzipping and copying them over | - Optionally, install any desired packages by unzipping and copying them over | ||
+ | |||
+ | < | ||
+ | # Partition the disk, create file system, make bootable | ||
+ | # and install the kernel.sys + command.com | ||
+ | fdisk | ||
+ | # Reboot after this doing fdisk! | ||
+ | format d: | ||
+ | sys d: | ||
+ | |||
+ | ## Example of how to " | ||
+ | C: | ||
+ | cd \PACKAGES\BASE | ||
+ | # `-x SOURCE/*` will exclude files in source directories | ||
+ | # `-d sets the destination directory, where unzipped files go | ||
+ | for %f in (*.ZIP) do unzip %f -x SOURCE/* -d d:\FreeDOS | ||
+ | </ | ||
+ | |||
+ | By performing those steps, you have a minimal bootable system. There will only be two files on the drive: | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | If you boot up and get a prompt, excellent. Type ''?'' | ||
Example steps: | Example steps: | ||
Line 68: | Line 77: | ||
* To install everything in a directory (omit -x if you do not want to exclude sources): '' | * To install everything in a directory (omit -x if you do not want to exclude sources): '' | ||
* | * | ||
+ | |||
+ | |||
+ | ==== Use installer ==== | ||
+ | |||
+ | |||
+ | Recommended FULL install with source. The FULL install will give you the package manage `fdimples`. | ||
+ | |||
+ | Download ISO from: | ||
+ | |||
+ | - On physical machine | ||
+ | - In virtual machine - in VirtualBox, use the regular CD, not the Legacy one, but before you press " | ||
+ | - Formatting hard disk | ||
+ | - From within FreeDOS: `format C:` or `format C: /s` for bootable. | ||
+ | - or: `fdisk` | ||
+ | - If you re-install it won't wipe the existing data. | ||
+ | - http:// | ||
+ | - | ||
+ | |||
+ | |||
==== Dealing with JemmEx out of memory error ==== | ==== Dealing with JemmEx out of memory error ==== | ||
Line 73: | Line 101: | ||
[[https:// | [[https:// | ||
- | Edit '' | + | Edit '' |
+ | |||
+ | Also refer to [[http:// | ||
+ | |||
+ | < | ||
+ | # Change from this | ||
+ | 1? | ||
+ | # to this | ||
+ | 1? | ||
+ | </ | ||
+ | |||
+ | ==== Dealing with unable to read hard disk error ==== | ||
+ | |||
+ | When you use '' | ||
- | or try modifying the -X=TEST to -X=c900-dfff | + | You can create one primary DOS partition |
===== How kernel boot works and fdconfig.sys ===== | ===== How kernel boot works and fdconfig.sys ===== | ||
Line 98: | Line 139: | ||
- | - `AUTOEXEC.BAT` - Put all your stuff here. Like your init scripts and bash profile in one | + | * '' |
- | - `COMMAND.COM` - The built-in shell. Akin to BusyBox or Bash. | + | * '' |
- | - `FDCONFIG.SYS` - Boot configuration, | + | * '' |
- | - `KERNEL.SYS` - The kernel binary itself. 48 KB! | + | * '' |
- | - `FDOS\` - In newer versions like 1.3rc5, '' | + | * '' |
- | - `FDOS\BIN\` - Executables | + | * '' |
Line 124: | Line 165: | ||
- | ===== Basic commands ===== | + | ===== Built-in |
+ | Built-in commands that come with '' | ||
+ | |||
+ | Enter: ''?'' | ||
+ | |||
+ | Built-in commands: | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | There are also built-in features like: | ||
+ | |||
+ | * Directory stack ('' | ||
+ | * Last directory ('' | ||
+ | * History ('' | ||
+ | * Tab completion | ||
+ | * Aliases ('' | ||
+ | * Enhanced input | ||
- `ver`, `vol`, `mem`, `cls`, `which`, `path` | - `ver`, `vol`, `mem`, `cls`, `which`, `path` | ||
Line 152: | Line 218: | ||
===== Batch scripting ===== | ===== Batch scripting ===== | ||
+ | |||
+ | Even in the most minimal install, you have '' | ||
+ | |||
+ | <code batch> | ||
+ | REM Add comments with REM. It stands for REMARK | ||
+ | for %f in (*.ZIP) do unzip %f -x SOURCE/* -d d:\FreeDOS | ||
+ | |||
+ | REM Turn off echo with: | ||
+ | @echo off | ||
+ | |||
+ | REM Set environment variables with set | ||
+ | set | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Mounting USB & CD drives ===== | ||
+ | |||
===== Get software ===== | ===== Get software ===== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
- | * [[https:// | ||
* [[http:// | * [[http:// | ||
Line 181: | Line 265: | ||
- Dialog | - Dialog | ||
- sqlite | - sqlite | ||
+ | - FDTUI (better than FDSHELL which runs at 100% cpu) - '' | ||
+ | - IMGEDIT '' | ||
+ | - pmge '' | ||
==== Installing manually in FreeDOS ==== | ==== Installing manually in FreeDOS ==== | ||
Line 229: | Line 316: | ||
Text Browser: Links C: | Text Browser: Links C: | ||
GUI Browser: Dillo C: | GUI Browser: Dillo C: | ||
+ | GUI Browser: Arachnae | ||
===== Programming ===== | ===== Programming ===== | ||
Line 235: | Line 322: | ||
=== Languages === | === Languages === | ||
- | - Lua: `C: | + | * Lua: '' |
- | - Assembly: | + | |
- | - BASIC: | + | |
- | - C: `bcc` (Bruce' | + | |
- | - Pascal: | + | |
- | == NASM == | + | == NASM hello world == |
- | Similar to the Linux hello world program except | + | Similar to the Linux hello world program except |
+ | |||
+ | == VGA programming == | ||
+ | |||
+ | Screen 13! How to do it in assembly with interrupt, and how to do it in BASIC with SCREEN 13. Where is the VGA memory location. It's as easy as writing to the memory location. | ||
== Lua == | == Lua == | ||
Line 250: | Line 341: | ||
== BASIC == | == BASIC == | ||
+ | |||
+ | = BWBASIC = | ||
+ | |||
+ | Bytewater must be run with a 32-bit protected mode DOS extender like '' | ||
+ | |||
+ | < | ||
+ | dos32a bwbasic.exe | ||
+ | </ | ||
+ | |||
+ | = FreeBASIC = | ||
https:// | https:// | ||
Line 265: | Line 366: | ||
``` | ``` | ||
- | == C == | + | == C/C++ == |
+ | |||
+ | |||
+ | |||
+ | = OpenWatcom = | ||
+ | |||
+ | * There is '' | ||
+ | * and '' | ||
+ | |||
+ | < | ||
+ | REM Without this env var, linker fails | ||
+ | set WATCOM=C: | ||
+ | |||
+ | REM wcc, wpp, wlink - compilers & linker | ||
+ | REM wcl - compile and link in one | ||
+ | wcl hello.cpp / | ||
+ | |||
+ | REM TO allow the omission of /I flag set INCLUDE | ||
+ | set INCLUDE=C: | ||
+ | |||
+ | REM Now you can simply compile & link with: | ||
+ | wcl hello.cpp | ||
+ | </ | ||
+ | |||
+ | = DJGPP = | ||
Make sure DJGPP is installed from the FreeDOS CD-ROM using `fdimples`. | Make sure DJGPP is installed from the FreeDOS CD-ROM using `fdimples`. |