rhl57.htm
来自「linux的初学电子书」· HTM 代码 · 共 2,354 行 · 第 1/4 页
HTM
2,354 行
<HTML>
<HEAD>
<TITLE>Red Hat Linux Unleashed rhl57.htm </TITLE>
<LINK REL="ToC" HREF="index-1.htm" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/index.htm">
<LINK REL="Index" HREF="htindex.htm" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/htindex.htm">
<LINK REL="Next" HREF="rhl58.htm" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/rhl58.htm">
<LINK REL="Previous" HREF="rhl56.htm" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/rhl56.htm"></HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080">
<A NAME="I0"></A>
<H2>Red Hat Linux Unleashed rhl57.htm</H2>
<P ALIGN=LEFT>
<A HREF="rhl56.htm" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/rhl56.htm" TARGET="_self"><IMG SRC="purprev.gif" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/purprev.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="Previous Page"></A>
<A HREF="index-1.htm" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/index.htm" TARGET="_self"><IMG SRC="purtoc.gif" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/purtoc.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="TOC"></A>
<A HREF="rhl58.htm" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/rhl58.htm" TARGET="_self"><IMG SRC="purnext.gif" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/purnext.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="Next Page"></A>
<HR ALIGN=CENTER>
<P>
<UL>
<UL>
<UL>
<LI>
<A HREF="#E68E438" >Installing DOSemu from Source Distributions</A>
<UL>
<LI>
<A HREF="#E69E556" >Building an Executable Version of DOSemu</A></UL>
<LI>
<A HREF="#E68E439" >Configuring DOSemu</A>
<UL>
<LI>
<A HREF="#E69E557" >Making a DOS Boot Floppy</A>
<LI>
<A HREF="#E69E558" >Configuring Parameters in /etc/dosemu.conf</A>
<LI>
<A HREF="#E69E559" >Getting DOSemu To Run for the First Time</A>
<LI>
<A HREF="#E69E560" >Configuring Disk Options</A>
<UL>
<LI>
<A HREF="#E70E28" >Accessing a Dedicated MS-DOS Disk or Partition</A>
<LI>
<A HREF="#E70E29" >How To Access Any Linux Directory from DOSemu</A></UL>
<LI>
<A HREF="#E69E561" >Creating Diskimages</A>
<UL>
<LI>
<A HREF="#E70E30" >Creating Floppy Image Files</A>
<LI>
<A HREF="#E70E31" >Accessing a Floppy Image Under DOSemu</A>
<LI>
<A HREF="#E70E32" >Creating Hard Diskimage Files Under Linux</A>
<LI>
<A HREF="#E70E33" >Accessing a Diskimage Under DOS</A></UL>
<LI>
<A HREF="#E69E562" >Configuring Video Options for the Virtual Consoles of Linux</A>
<LI>
<A HREF="#E69E563" >Using DOSemu from Other Than a Virtual Console</A>
<LI>
<A HREF="#E69E564" >Configuring Keyboards</A>
<LI>
<A HREF="#E69E565" >Configuring Serial Ports</A>
<LI>
<A HREF="#E69E566" >Configuring Printers</A>
<LI>
<A HREF="#E69E567" >Using Debug Parameters</A>
<LI>
<A HREF="#E69E568" >Other Configuration Parameters</A></UL>
<LI>
<A HREF="#E68E440" >Runtime Options of DOSemu</A>
<LI>
<A HREF="#E68E441" >Limitations of DOSemu</A>
<UL>
<LI>
<A HREF="#E69E569" >Notable Software That Won't Run Under DOSemu</A>
<LI>
<A HREF="#E69E570" >Hardware Limitations for DOSemu</A>
<LI>
<A HREF="#E69E571" >Performance Limitations</A>
<UL>
<LI>
<A HREF="#E70E34" >CPU Performance</A>
<LI>
<A HREF="#E70E35" >Disk Performance</A>
<LI>
<A HREF="#E70E36" >Video Performance</A></UL></UL>
<LI>
<A HREF="#E68E442" >Mouse Support</A>
<LI>
<A HREF="#E68E443" >Optimizing DOSemu</A>
<UL>
<LI>
<A HREF="#E69E572" >Using Garrot</A>
<LI>
<A HREF="#E69E573" >Other Optimization Suggestions</A></UL>
<LI>
<A HREF="#E68E444" >Sources for More Documentation About DOSemu</A>
<UL>
<LI>
<A HREF="#E69E574" >Where To Get More Information About DOSemu</A></UL>
<LI>
<A HREF="#E68E445" >How DOSemu Works</A>
<LI>
<A HREF="#E68E446" >A Brief History of DOSemu and Its Contributing Authors</A></UL></UL></UL>
<HR ALIGN=CENTER>
<A NAME="E66E57"></A>
<H1 ALIGN=CENTER>
<CENTER>
<FONT SIZE=6 COLOR="#FF0000"><B>57</B></FONT></CENTER></H1>
<BR>
<A NAME="E67E57"></A>
<H2 ALIGN=CENTER>
<CENTER>
<FONT SIZE=6 COLOR="#FF0000"><B>DOSemu</B></FONT></CENTER></H2>
<BR>
<P>DOSemu stands for DOS emulator. This is a bit of a misnomer, because DOSemu does not actually emulate MS-DOS. Instead, it provides an environment in Linux under which MS-DOS and MS-DOS applications can be run. DOSemu enables you to run MS-DOS sessions
<BR>
<UL>
<LI>On a virtual console
<BR>
<BR>
<LI>Within an xterm
<BR>
<BR>
<LI>As an X Window application
<BR>
<BR>
<LI>Over a serial or network connection
<BR>
<BR>
</UL>
<P>The development of DOSemu is not yet complete. A small but growing number of MS-DOS applications will run under DOSemu. The most impressive application reported to run under DOSemu is the real mode of MS Windows 3.0.
<BR>
<P>MS-DOS applications will not run as fast under DOSemu as they would under native MS-DOS, but most applications are fast enough. You have the added advantage of being able to run Linux and MS-DOS applications side by side.
<BR>
<P>The design of DOSemu will always cause some speed degradation, but the same design also provides the capability to virtualize a PC. The disk drives, serial ports, and memory configurations configured under DOSemu do not need to match the hardware that
actually exists on your PC.
<BR>
<BLOCKQUOTE>
<BLOCKQUOTE>
<HR ALIGN=CENTER>
<BR>
<NOTE>There are a few things you need to be wary of when you first start using DOSemu. DOSemu is considered to be alpha software. Major disk corruption is unlikely to happen when you run DOSemu, but you should take normal precautions. You should back up
anything valuable on your DOS and Linux hard-drive partitions before actually running DOSemu.
<BR>Although DOSemu is strictly user-level code, some unexpected results may occur. When you first configure and test DOSemu you should shut down any critical Linux applications and be prepared to reboot your machine. This may seem like an unnecessary
precaution for an experienced Linux user. However, my first attempt at DOSemu caused my modem to hang up because DOSemu reset the configured serial ports.</NOTE>
<BR>
<HR ALIGN=CENTER>
</BLOCKQUOTE></BLOCKQUOTE>
<BR>
<A NAME="E68E438"></A>
<H3 ALIGN=CENTER>
<CENTER>
<FONT SIZE=5 COLOR="#FF0000"><B>Installing DOSemu from Source Distributions</B></FONT></CENTER></H3>
<BR>
<P>DOSemu is available on some CD-ROM distributions and on most major Linux BBSs and FTP sites such as <A HREF="tppmsgs/msgs0.htm#72" tppabs="ftp://sunsite.unc.edu/">sunsite.unc.edu</A> (in directory /pub/Linux/system/Emulators/dosemu). The latest version available as of this writing
was 0.53pl39 (pre-release 0.53, patch level 39). DOSemu is dependent on the version of the Linux kernel installed. Version 0.52 will not work with kernels newer than 1.1.30, nor will version 0.53 work with Linux kernels prior to 1.1.30.
<BR>
<P>For the truly adventuresome, the latest development version of DOSemu is available on the Internet via anonymous FTP at <A HREF="tppmsgs/msgs2.htm#212" tppabs="ftp://dspsun.eas.asu.edu/pub/dosemu/">dspsun.eas.asu.edu/pub/dosemu/</A>. As with the development version of any software,
it is not as thoroughly tested, and may have some serious bugs. Stick to the released versions if at all possible.
<BR>
<P>The latest released version at the time of writing that is stable was /pub/linux/ALPHA/dosemu/dosemu0.60.4.tgz from <A HREF="tppmsgs/msgs0.htm#71" tppabs="ftp://tsx-11.mit.edu/">tsx-11.mit.edu</A>. Be cautious with later releases.
<BR>
<P>The DOSemu distribution needs to be installed in a directory under /usr/src. DOSemu will not build correctly if the distribution is installed elsewhere. A DOSemu distribution consists of a compressed tar file that is unpacked by a shell command such as
<BR>
<BR>
<PRE>
<FONT COLOR="#000080">bash# tar -zxvf filename.tar.gz</FONT></PRE>
<P>DOSemu is undergoing constant revisions. Review the QuickStart and other README files before proceeding.
<BR>
<BR>
<A NAME="E69E556"></A>
<H4 ALIGN=CENTER>
<CENTER>
<FONT SIZE=4 COLOR="#FF0000"><B>Building an Executable Version of DOSemu</B></FONT></CENTER></H4>
<BR>
<P>DOSemu is distributed as source code that needs to be compiled and linked before you use it. This is not a very complicated task because the process is automated. To build DOSemu, you need the following software installed:
<BR>
<UL>
<LI>GNU C compiler version 2.5.8 or later
<BR>
<BR>
<LI>GNU make
<BR>
<BR>
<LI>libc 4.5.21 or later
<BR>
<BR>
<LI>ncurses
<BR>
<BR>
</UL>
<P>To build DOSemu, log in as root, change directory (cd) to the directory created by unpacking the tar archive and type the following commands:
<BR>
<PRE>
<FONT COLOR="#000080">bash# make config
bash# make depend
bash# make most</FONT></PRE>
<P>The DOSemu distribution includes a reference manual written in TeX. If you have TeX installed and want to create a typeset version of the manual, use make everything instead of make most.
<BR>
<P>To properly compile DOSemu, you need to be logged in as root, and have approximately 12MB of virtual memory free. Use the top command to check how much free memory is available. You can increase the free memory by either installing an additional swap
file or by killing unnecessary processes. Fortunately, you only need excess memory to compile DOSemu.
<BR>
<P>The full build of DOSemu takes approximately 10 minutes on a 90 MHz Pentium. When the build is complete, you are ready to configure and run DOSemu.
<BR>
<BR>
<A NAME="E68E439"></A>
<H3 ALIGN=CENTER>
<CENTER>
<FONT SIZE=5 COLOR="#FF0000"><B>Configuring DOSemu</B></FONT></CENTER></H3>
<BR>
<P>DOSemu can be configured to boot MS-DOS from a floppy or hard drive. As when configuring a real PC, you usually start by booting from a floppy and work up to booting from a hard drive.
<BR>
<BR>
<A NAME="E69E557"></A>
<H4 ALIGN=CENTER>
<CENTER>
<FONT SIZE=4 COLOR="#FF0000"><B>Making a DOS Boot Floppy</B></FONT></CENTER></H4>
<BR>
<P>The simplest and safest way to initially configure DOSemu is by using a boot floppy. Create a bootable DOS floppy from your favorite DOS distribution. DOSemu supports MS-DOS Versions 3.3 through 6.22, as well as DR-DOS 6.0.
<BR>
<P>In addition to bootable DOS, the disk should have the following DOS files:
<BR>
<UL>
<LI>format.com
<BR>
<BR>
<LI>sys.com
<BR>
<BR>
<LI>DOS mouse driver for your mouse
<BR>
<BR>
<LI>A simple file editor such as edit, edlin, or ted
<BR>
<BR>
</UL>
<P>From the dosemu subdirectory, copy the following device drivers onto the floppy:
<BR>
<UL>
<LI>emufs.sys
<BR>
<BR>
<LI>ems.sys
<BR>
<BR>
<LI>cdrom.sys
<BR>
<BR>
</UL>
<P>From the command subdirectory copy the following file:
<BR>
<UL>
<UL>
<P>exitemu.com
<BR>
</UL></UL>
<BLOCKQUOTE>
<BLOCKQUOTE>
<HR ALIGN=CENTER>
<BR>
<NOTE>The easiest way to copy files from a Linux directory to an MS-DOS formatted floppy is to use the mcopy command. For example:
<BR>mcopy filename a:</NOTE>
<BR>
<HR ALIGN=CENTER>
</BLOCKQUOTE></BLOCKQUOTE>
<BR>
<A NAME="E69E558"></A>
<H4 ALIGN=CENTER>
<CENTER>
<FONT SIZE=4 COLOR="#FF0000"><B>Configuring Parameters in </B><B>/etc/dosemu.conf</B></FONT></CENTER></H4>
<BR>
<P>Everything you need to configure DOSemu exists in the file /etc/dosemu.conf. A user-specific configuration file can be created in a user's home directory named ~/.dosrc. Both of these files have the same format. I will refer to these files
interchangeably as dosemu.conf. A sample configuration file is in the examples/ subdirectory of the standard DOSemu distribution. Look for the file named dosemu.dist.
<BR>
<P>The example file is several hundred lines long. Most of this configuration file contains comments to help explain the configuration options. Anything to the right of a # character is a comment. A # in the first column means that the entire line is a
comment. Sample configuration lines for nearly all supported hardware and software options are contained in this file. Most DOSemu configurations can be expressed in 25 to 30 lines.
<BR>
<P>Configuration parameters in /etc/dosemu.conf have two basic formats. A parameter that needs just one value has the form parameter value. A parameter that needs multiple values has the form parameter { value1 value2 ... }.
<BR>
<BR>
<A NAME="E69E559"></A>
<H4 ALIGN=CENTER>
<CENTER>
<FONT SIZE=4 COLOR="#FF0000"><B>Getting DOSemu To Run for the First Time</B></FONT></CENTER></H4>
<BR>
<P>One way to configure DOSemu is to copy the example configuration file to /etc/dosemu.conf, and then edit the parameters based on information in the comments. Another way is to create a simple dosemu.conf file and add to it as needed. A bare-bones file
looks like the following:
<BR>
<PRE>
<FONT COLOR="#000080">timint on
keyboard { layout us keybint on rawkeyboard on }
video { vga console }
cpu 80486
bootA
floppy { device /dev/fd0 threeinch }</FONT></PRE>
<P>Use a text editor to make the following customizations to dosemu.conf based on your actual hardware:
<BR>
<UL>
<LI>Change the video line to cga, ega, or ma if you don't have VGA.
<BR>
<BR>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?