中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net  论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

游客:  注册 | 登录 | 命令行 | 会员 | 搜索 | 上传 | 帮助 »
作者:
标题: [转载]freedos安装指南 上一主题 | 下一主题
fros
初级用户





积分 112
发帖 48
注册 2006-10-6
状态 离线
『楼 主』:  [转载]freedos安装指南

[转载]freedos安装指南

原始连接:http://fd-doc.sourceforge.net/wiki/index.php?n=FdDocEn.FdInstall

http://www.eviloctal.com/To get information about installing older versions of FreeDOS, go to FdDocEn.FdInstallBeta9 :-)…

If you do not have FreeDOS 1.0 yet, visit http://www.freedos.org/freedos/files/
For questions, check the FAQ at http://fd-doc.sourceforge.net/faq/cgi-bin/search.cgi
If you have a feature request, go to http://sourceforge.net/tracker/?group_id=5109&atid=355109
To report bugs, visit http://www.freedos.org/bugzilla/cgi-bin/query.cgi
You can also reach us via IRC, mailing lists, etc: http://www.freedos.org/freedos/lists/
Our SF page is at http://sourceforge.net/projects/freedos/
Browse the kernel and command.com sources here: http://freedos.cvs.sourceforge.net/freedos/ … Enjoy :-)

FreeDOS install How-to
What to Get
Known bugs
To Install
Installing on a PC
Installing on Linux DOSEmu
Installing on OS/2
Installing on MacBochs
After You Install
Gnu Free Documentation License

--------------------------------------------------------------------------------

What to Get
The FreeDOS distributions are available in several variants on:

http://www.freedos.org/freedos/files/

fdbasecd lets you install FreeDOS on harddisk. The functionality is
similar to what you know from MS DOS.

fdbasews contains everything from fdbasecd, plus all source code, plus
a pre-installed FreeDOS which you can run directly from CDROM. The whole cdrom is still smaller than 50 MB.

fdfullcd adds many extra programs like compilers and more utilities.
If you only want some of the extra programs, you can start with the base distro and download packages separately from the download area.

fdfullws also includes the source codes of all the extra programs.
It is better to download only the sources which you are interested in, to avoid the big download of fdfullws. Even heavy DOS users should be happy with the normal fdfullcd which is about 150 MB.

If your computer cannot boot from cdrom, or if the boot loader on the FreeDOS cdrom does not support your BIOS, then you will have to boot from an existing DOS or from diskette. We provide a special boot diskette which will automatically detect the FreeDOS cdrom and then change to that drive and start the installer. You can download the diskette from the same place as the ISO images. To create a diskette from the image, use FreeDOS DISKCOPY (which you can also download separately, for example from http://www.ibiblio.org/pub/micro ... 0/pkgs/dskcopyx.zip …) or the RAWRITE tool or a suitable tool for any operating system you already have. For example in Linux, you can use dd if=theimagefile of=/dev/fd0 to copy a diskette image to a formatted diskette in fd0 (DOS would call that the a: drive).

You can also boot the install cdrom on a computer which does support booting from that cdrom, and select the “create boot diskette” menu item in the install cdrom menu.

With the special boot diskette, you can even install on a PC which does not have a cdrom drive: Just copy the ISO image file (cdrom image) to a file called c:fdbootcd.iso and the installer boot diskette will “mount” that file. In other words, it will create a virtual cdrom in a virtual cdrom drive from it.

Known Bugs, Hints for Using FreeDOS 1.0
FreeDOS 1.0 has a few known bugs which are too small to upload updated ISO images yet. However, those bugs can be quite annoying if you do not know how to fix them yourself, so here is a list of bugs and bug fixes.

Note that FreeDOS can use c:\fdconfig.sys and c:\yourfreedosdirectory\fdauto.bat instead of c:\config.sys and c:\autoexec.bat - this is meant to make it easier to install FreeDOS and other DOS versions on the same C:, letting each of the two have a separate configuration. FreeDOS will look for fdconfig.sys first and will only use config.sys if fdconfig.sys is not present! The SHELL line in your config file is where alternative batch files instead of autoexec.bat can be linked.

(fd)config.sys contains a "SET lang=DE " line if you
install German FreeDOS. Note that there is a space after the DE and before the end of the line. This space confuses the translation library of many tools, so they will use the English default messages instead. Use EDIT to edit your config.sys and remove the space. Note that many tools simply do not support translated messages yet. Let us know which tools we should translate next.

(fd)config.sys is missing the usbaspi line if you installed
the usbdos package. Insert this line before the aspidisk or di1000dd line: 123?DEVICEHIGH=%dosdir%\DRIVERS\USB\usbaspi.sys

the HELP command only supports English language yet. You
should have a help.com file which always redirects to English.

to view big text files, use the LIST / LESS style tool PG,
which you can find in the EDITORS package set. The DRIVERS package set contains MORESYS, which allows you to view those multi-page help screens of some GNU tools easily: sometool --help >more$ works like sometool --help |more, only better ;-).

FASTHELP and MAKEROM seem to be incomplete, you may want to
download updated versions. The default FORTUNE cookie binary has issues with a self-checker, so you should get the updated version. You can remove the outdated FDFINDCD file.

there are updated versions of DEFRAG and MEM which are newer
than FreeDOS 1.0 - download those separately. The functionality of GS (GhostScript) and the PDF tools for DOS is still quite limited. Stay tuned for updated versions in the future.

CWSPARAM does not work because not the real CWSDPMI is included.
FreeDOS 1.0 contains HXRT DPMI in disguise instead.

the following packages need a working internet connection during
installation - you may want to wait with installing those until you got your FreeDOS internet configured properly. This will also make the initial installation a lot faster. CDRTOOL and DFL (indirectly), FPROT, ASPI, SCSI, USBDOS (this can also make install very slow as it scans the whole USB bus during install), VIA. With the exception of CDRTOOL (MEDIA), DFL (UTIL) and FPROT (UTIL), all those are in the DRIVER package set. See the FdDependencies page for more dependencies. For example many packages need CWSDPMI (and 386+ CPU).

if you have no internet, you may want to omit: WGET, FDSTPOP,
BSFLITE, LNXSMAL, LYNX, OPENXP, VNC, HXRT, WATTCP, ARACHNE, CRYNWR. However, LYNX, LNXSMAL, ARACHNE and HXRT are also useful in offline mode :-).

you can get a much shorter PATH when you write batch files
to call EMACS, SETEDIT, VIM, FBC and PACIFICC. In addition, you have to run EMACS from within its own directory the first two times anyway, to allow proper self-init of EMACS. Note that DOG contains many binaries, so it is not practical to remove DOG from the PATH and add wrapper batch files to call those. You may want to move many DRIVERS to the DRIVERS directory to keep the BIN directory short.

the OPENGEM GUI contains only very few programs in the default
install. You can get many closed source GEM apps from the internet: for example www.deltasoft.com(approve sites) and gem.shaneland.co.uk/fullversions.html

MKNOD, MKFIFO, CHOWN, CHGRP and SYNC have no effect. They are
only there to make Linux style scripts happy. TELNORG and TELNET are identcial, you can remove TELNORG. ZCAT and GUNZIP are just copies of GZIP: You can define ALIAS commands to save space.

to use HELPCFG to configure 4DOS 4HELP, you first have to
decompress 4HELP with UPX.

XHARBOUR (a free CLIPPER clone, 8 MB) needs the OWATCOM package:
That package needs at least 30 MB disk space. Other large packages are FPASCAL (free Pascal, 31 MB), KRAPTOR (11 MB), Image MAGICK (8 MB), free DOOM (21 MB), and VIM (consists of several packages, ca 20 MB). Without those packages, installing all other (more than 200) packages of the FULLCD needs less than 100 MB disk space.

the FULLCD includes all files from the BASEWS: This means you
can run a complete FreeDOS system directly from the cdrom and all source code of all base packages is included (11 MB). The FULLWS cdrom should not be used: It contains all available source code from all FULLCD packages. You should only download sources for selected non-base packages separately, not the whole FULLWS ISO. This saves our and your bandwidth. Make sure to use our mirrors :-).

the "load without drivers" option 4 is not available because
no config.sys line uses it. However, autoexec.bat uses it. To solve this, add the following line to config.sys: 4?ECHO No drivers loaded

if you do not need long file names, comment out the DOSLFN
line. This will also save DOS memory.

you (more or less) only need SHARE when you run Windows 3,
so you can save again some DOS memory by omitting SHARE. It should be possible to get 620 kB DOS memory free now :-).

Windows 3.0 and 3.1 must be run in STANDARD mode (type
WIN /S (unless you installed the unstablx package), and SHARE must be loaded. Otherwise Windows will crash as soon as you open a DOS box or DOS program in it.

If you have more than 256 MB RAM, you have to add a line
PageOverCommit=1 to your [386Enh] section in the system.ini of your Windows. If you have even more than 1 GB RAM, you will have to use the HIMEM “MAX” option to limit the amount of RAM visible to DOS to something which Windows can handle.

For the 386 Enhanced Mode of Windows 3.x, including the
special Windows for Workgroups 3.11 version, you will have to use the special experimental “2037 unstable” kernel and you must not load EMM386 (or load the Microsoft version).

If you are experiencing frequent crashes, try to boot
without EMM386. It can easily happen that EMM386 tries to give you UMB space at a location which is already in use by something like SCSI, SATA, USB, PCMCIA or a network card. Those are often not detectable with the standard “X=TEST” option to exclude invalid UMB space. In this case, you have to disable EMM386, find out which areas can be used for UMB, and add suitable X=from-to or I=from-to range options to the EMM386 lines in your config.sys; Note that the NOEMS option gives you 64 kB extra UMB space but disables EMS 3.2 support, so only EMS 4.0 compatible programs will be able to use EMS. See the “EMM386 /?” output for more information.

To Install
Installing on a PC
Boot from an existing DOS, from one of the cdroms, or from the special boot diskette. In the latter two cases, simply follow the menus to install DOS. In the former case, you will first have to make sure that the cdrom can be accessed. You can also use the ISO images directly instead of using a real cdrom. See above for details.

If your computer has no partitions with FAT filesystem yet, you will have to create one before you can install DOS. For example GPARTED which is included with many Linux distros and many Linux versions which can be run directly from CD or DVD (no installation of Linux on harddisk needed) can resize your existing NTFS Windows partitions to make space for DOS without having to reinstall Windows. FreeDOS will need one FAT type partition: This can be FAT12, FAT16 or FAT32, but FAT16 is clearly the recommended choice: FAT12 is too small and FAT32 is hard to boot from. You can use Windows or Linux to create and/or format the partition, if needed. Of course you can also use the FreeDOS install cdrom for that, but as this cdrom does not allow you to resize existing partitions, you should better use other tools. If you already do have a FAT partition, you can skip all the partition / format steps.

Most of the install process is guided by a menu system and should be self explanatory. The default source and target directories should be used. Note that DOS calls the first DOS compatible partition C: - this may not be the same as the first Windows partition, in particular with Windows XP or NT or 2000. When you booted from the install cdrom, the DOS A: drive will be a virtual boot diskette, and your actual diskette drive will be called B:. As soon as you boot from harddisk or diskette again, the virtual boot diskette will not be there any more, and your real diskette drive will be called A: again. If you install to a C: drive which already has another DOS or Windows 95/98 on it, the installer will often be able to automatically install a boot menu and keep FreeDOS configuration separate from the config and autoexec of the other DOS or Windows.

To be able to boot the installed FreeDOS from harddisk later, your DOS partition must either be the active / bootable one among your primary partitions or you will have to add a DOS menu item to your boot menu. For example Windows NT/2000/XP already includes a boot menu, as does Linux. In Windows, you have to edit boot.ini to create menu items. In Linux, you edit /etc/lilo.conf if you use LiLo or the menu.lst if you use GRUB. In the latter case, you will add something like:

title DOS # 0,3 is the GRUB way of saying /dev/hda4 rootnoverify (hd0,3) # optionally do: makeactive (flag partition as bootable) # select the boot sector of that partition chainloader +1 # this is implicit in non-interactive mode: boot

If you install by running setup.bat, you must make sure that SHSURDRV is in your PATH. You also have to start a recent version of FreeCOM (command.com). You can find such a file in freedos/setup/odin/command.com and (less recent) isolinux/buildcd/command.com on the cdrom.

Installing on Linux DOSEmu
This section needs your input… The general idea:

DOSEmu can boot from any real or virtual (diskimage) diskette drive when you do “xdosemu -A”. It can boot from a virtual harddisk with “xdosemu -C”. The latter can be either a special diskimage or simply a Linux directory. Put the ISO file into the Linux directory which simulates C: in your DOSEmu configuration, and boot DOSEmu with our special boot diskette, possibly just the diskimage of it. Then you can follow the normal install process to install FreeDOS on the simulated C: drive of DOSEmu. No partitioning nor formatting will be required, but you will have to convince the installer that the non-FAT C: drive is actually a working install target in some way. You can alternatively create a DOSEmu diskimage drive D: and install to that drive. Then you can swap the drive letters in the DOSEmu configuration at the appropriate time.

Installing on OS/2
This section might be outdated, but the general outline is still the same: You can install to anywhere by simply unzipping all zip files of the distro into a directory and using ZIP. Some parts are already up to date for FreeDOS 1.0, while others might not be.

Marty Peritsky (k3pbu @ arrl.net) writes:

OS/2 has the ability to run FreeDOS in a *Virtual DOS Machine* (VDM), which can be started from either a diskette or a diskette-image file. Before beginning the FreeDOS installation, you may want to review the OS/2 VDM documentation by doing the following: Double-click on the Information icon on your desktop; double-click on the Application Considerations icon; click on the *+* to expand the Application Compatibility topic; click on the *+* to expand the DOS Application Compatibility topic; read the sections entitled *Running a Specific Version of DOS* and *Creating a DOS Image from a Startup Diskette.*

To begin the installation process, start an OS/2 Command Prompt session. Create a directory called FDXFER, and move your .ZIP, files to it. Use your UNZIP program on those files. You can use the DISKCOPY program which is in one of the ZIP files to copy the special boot diskette image to a real diskette: DISKCOPY filename A: will do that, even in OS/2.

When the DISKCOPY operation is complete, enter the following commands:

COPY C:/OS2/MDOS/FSFILTER.SYS A:
COPY C:/OS2/MDOS/FSACCESS.EXE A:

Next, start the OS/2 System Editor, and add the following line to the top of the A:CONFIG.SYS file:

DEVICE=FSFILTER.SYS

Save the file, and exit the editor. On your desktop, double-click on the OS/2 System icon; double-click on the Command Prompts icon; double-click on the DOS from Drive A icon. A full-screen DOS session will start, booting from the A: FreeDOS diskette.

The following steps are optional, and will allow you to start FreeDOS from a diskette image.

To make the diskette image, open an OS/2 Command Prompt session, insert the FreeDOS boot diskette in drive A: and enter:

VMDISK A: C:FREEDOS.IMG

The VMDISK program will display a message, warning that the diskette may not be bootable. Ignore the message and proceed. Next, copy the DOS Full Screen object in your OS/2 Command Prompts folder to the desktop. In the desktop object you just created, open the DOS_Settings on the Session page, and type the full name and path of your boot image file (C:FREEDOS.IMG) under the Startup_Drive option. When you click on this icon, it will boot a FreeDOS session from the image file, which emulates the floppy drive.

If you need to access your physical A: drive after the image session has been started, run the FSACCESS.EXE program which exists on your image file and in the C:/OS2/MDOS directory. The command syntax is:

FSACCESS A:

Congratulations again! The optional part of the installation procedure is now complete.

Installing on MacBochs
This section might be outdated. Please let us know if it has to be updated.

David Batterham (drbatter @ socs.uts.edu.au) wrote the *MacBochs Easy Install* document, at http://members.xoom.com/macbochs/easy-install.html)

This simple install procedure will give you the MacBochs x86 PC emulator plus a pre-installed copy of FreeDOS, a completely free DOS-like operating system.


--------------------------------------------------------------------------------

GNU Free Documentation License

Copyright (c) 2001–2006 Jim Hall, Eric Auer

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.

2006-10-6 12:59
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
laohuya
初级用户




积分 150
发帖 18
注册 2004-7-5
状态 离线
『第 2 楼』:  

说中文吧!!!!!!!!!!!!

2006-10-6 21:23
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
fros
初级用户





积分 112
发帖 48
注册 2006-10-6
状态 离线
『第 3 楼』:  

这个,是freedos官方网站上的原话。。。
倘若要中文的,那就请翻译吧。。。
汗。。。

2006-10-6 21:49
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
GOTOmsdos
铂金会员

C++启程者


积分 5154
发帖 1827
注册 2003-7-18
状态 离线
『第 4 楼』:  

实际上DOS系统是不需要什么安装的(其实,就是安装的话,也就是复制文件,基本上不对硬件进行检测,只在CONFIG.SYS,AUTOEXEC.BAT里简单的配置一下)

可以直接把DOS文件复制到硬盘(把那个fdfullcd.iso解出来),只要你能进入DOS环境(一般用启动盘,或者已有了某种DOS系统了,要兼容的,),然后用他的程序就行了。

比如,已有了MSDOS7.1。。。

2006-10-6 21:54
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: