⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch62.htm

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTM
📖 第 1 页 / 共 5 页
字号:


<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->










<font face="Arial,Helvetica" size="-1" color="#006666">

<b>Linux</b></font><p>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">











 

















<H1></H1>







<UL>



	<LI><A HREF="#Heading1">- 62 -</A>



	<UL>



		<LI><A HREF="#Heading2">DOSemu</A>



		<UL>



			<LI><A HREF="#Heading3">CAUTION</A>



			<LI><A HREF="#Heading4">Installing DOSemu from Source Distributions</A>



			<UL>



				<LI><A HREF="#Heading5">Building an Executable Version of DOSemu</A>



			</UL>



			<LI><A HREF="#Heading6">Configuring DOSemu</A>



			<UL>



				<LI><A HREF="#Heading7">Making a DOS Boot Floppy</A>



			</UL>



			<LI><A HREF="#Heading8">TIP</A>



			<UL>



				<LI><A HREF="#Heading9">Configuring Parameters in /etc/dosemu.conf</A>



				<LI><A HREF="#Heading10">Getting DOSemu to Run for the First Time</A>



				<LI><A HREF="#Heading11">Configuring Disk Options</A>



			</UL>



			<LI><A HREF="#Heading12">CAUTION</A>



			<UL>



				<LI><A HREF="#Heading13">Creating Diskimages</A>



			</UL>



			<LI><A HREF="#Heading14">TIP</A>



			<UL>



				<LI><A HREF="#Heading15">Configuring Video Options for the Virtual Consoles of Linux</A>



				<LI><A HREF="#Heading16">Using DOSemu from Something Other Than a Virtual Console</A>



				<UL>



					<LI><A HREF="#Heading17">FIGURE 62.1.</A>



				</UL>



				<LI><A HREF="#Heading18">Configuring Keyboards</A>



			</UL>



			<LI><A HREF="#Heading19">CAUTION</A>



			<LI><A HREF="#Heading20">TIP</A>



			<UL>



				<LI><A HREF="#Heading21">Configuring Serial Ports</A>



				<LI><A HREF="#Heading22">Configuring Printers</A>



			</UL>



			<LI><A HREF="#Heading23">CAUTION</A>



			<LI><A HREF="#Heading24">Netware Support with DOSemu</A>



			<UL>



				<LI><A HREF="#Heading25">Using Debug Parameters</A>



				<LI><A HREF="#Heading26">Other Configuration Parameters</A>



			</UL>



			<LI><A HREF="#Heading27">Runtime Options of DOSemu</A>



			<LI><A HREF="#Heading28">Limitations of DOSemu</A>



			<UL>



				<LI><A HREF="#Heading29">Notable Software That Wont Run Under DOSemu</A>



				<LI><A HREF="#Heading30">Hardware Limitations for DOSemu</A>



				<LI><A HREF="#Heading31">Performance Limitations</A>



			</UL>



			<LI><A HREF="#Heading32">Mouse Support</A>



			<LI><A HREF="#Heading33">Optimizing DOSemu</A>



			<UL>



				<LI><A HREF="#Heading34">Using Garrot</A>



				<LI><A HREF="#Heading35">Other Optimization Suggestions</A>



			</UL>



			<LI><A HREF="#Heading36">Sources for More Documentation About DOSemu</A>



			<UL>



				<LI><A HREF="#Heading37">Where to Get More Information About DOSemu</A>



			</UL>



			<LI><A HREF="#Heading38">TIP</A>



			<LI><A HREF="#Heading39">How DOSemu Works</A>



			<LI><A HREF="#Heading40">A Brief History of DOSemu and Its Contributing Authors</A>



			<UL>



				<LI><A HREF="#Heading41">Portable DOS Emulation with Bochs</A>



				<LI><A HREF="#Heading42">Installing and Running Bochs</A>



			</UL>



			<LI><A HREF="#Heading43">Summary</A>



		</UL>



	</UL>



</UL>







<P>



<HR SIZE="4">







<H2 ALIGN="CENTER"><A NAME="Heading1<FONT COLOR="#000077">- 62 -</FONT></H2>



<H2 ALIGN="CENTER"><A NAME="Heading2<FONT COLOR="#000077">DOSemu</FONT></H2>



<P><I>by Robert Pfister and Kamran Husain</I></P>



<P>IN THIS CHAPTER</P>







<UL>



	<LI>Installing DOSemu from Source Distributions



	<P>



	<LI>Configuring DOSemu



	<P>



	<LI>Netware Support with DOSemu



	<P>



	<LI>Runtime Options of DOSemu



	<P>



	<LI>Limitations of DOSemu



	<P>



	<LI>Mouse Support



	<P>



	<LI>Optimizing DOSemu



	<P>



	<LI>Sources for More Documentation About DOSemu



	<P>



	<LI>How DOSemu Works



	<P>



	<LI>A Brief History of DOSemu and Its Contributing Authors



</UL>







<P><BR>



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







<UL>



	<LI>On a virtual console



	<P>



	<LI>Within an <TT>xterm</TT>



	<P>



	<LI>As an X Window application



	<P>



	<LI>Over a serial or network connection



</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.</P>



<P>MS-DOS applications don't 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.</P>



<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 configured under DOSemu do not need to match the hardware on your PC.







<DL>



	<DT></DT>



</DL>











<DL>



	<DD><A NAME="Heading3 



<HR>



<FONT COLOR="#000077"><B>CAUTION: </B></FONT>You need to be wary of a few things



	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 disk



	partitions before running DOSemu. Although DOSemu is strictly user-level code, some



	unexpected results might occur. When you first configure and test DOSemu, you should



	shut down any critical Linux applications and be prepared to reboot your machine.



	This might seem like an unnecessary precaution for an experienced Linux user. My



	first attempt at DOSemu, however, caused my modem to hang up because DOSemu reset



	the configured serial ports. 



<HR>







</DL>







<H3 ALIGN="CENTER"><A NAME="Heading4<FONT COLOR="#000077">Installing DOSemu



from Source Distributions</FONT></H3>



<P>DOSemu is available on some CD-ROM distributions and on most major Linux BBSs



and FTP sites, such as <TT>sunsite.unc.edu</TT>. 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.64 with vm86plus does not



work with kernels before 2.0.0.</P>



<P>For the truly adventurous, the latest development version of DOSemu is available



on the Internet via anonymous FTP at <TT>dspsun.eas.asu.edu:/pub/dosemu/</TT>. As



with the development version of any software, it is not as thoroughly tested, and



it might have some serious bugs. Stick to the released versions if at all possible.



The latest released, stable version at the time of writing was <TT>dosemu0.64.1.tgz</TT>



from <TT>tsx-11.mit.edu</TT> in the <TT>/pub/linux/ALPHA/dosemu/</TT> subdirectory.</P>



<P>The DOSemu distribution needs to be installed in a directory under <TT>/usr/src</TT>.



DOSemu does not build correctly if the distribution is installed elsewhere. A DOSemu



distribution consists of a compressed <TT>tar</TT> file that is unpacked by a shell



command such as this:</P>



<PRE><FONT COLOR="#0066FF">bash# tar -zxvf filename.tar.gz



</FONT></PRE>



<P>DOSemu is undergoing constant revisions. Review the QuickStart and other <TT>README</TT>



files before proceeding.



<H4 ALIGN="CENTER"><A NAME="Heading5<FONT COLOR="#000077">Building an Executable



Version of DOSemu</FONT></H4>



<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:







<UL>



	<LI>GNU C compiler version 2.5.8 or later (you have version 2.7.2 with the Slackware



	CD at the back of the book)



	<P>



	<LI>GNU make



	<P>



	<LI>libc 4.5.21 or later



	<P>



	<LI>ncurses



</UL>







<P>To build DOSemu, log in as <TT>root</TT>, change directory (<TT>cd</TT>) to the



directory created by unpacking the <TT>tar</TT> archive, and type the following commands:</P>



<PRE><FONT COLOR="#0066FF">bash# ./configure # or ./configure -emable-SMPmodules if running with emumodule



bash# make



bash# make install



</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 <TT>make everything</TT>



rather than <TT>make most</TT>.</P>



<P>To properly compile DOSemu, you need to be logged in as root and have approximately



12MB of virtual memory free. Use the <TT>top</TT> command to check how much free



memory is available. You can increase the free memory either by installing an additional



swap file or by killing unnecessary processes. Fortunately, you need excess memory



only to compile DOSemu.</P>



<P>The full build of DOSemu takes approximately five minutes on a 90MHz Pentium.



When the build is complete, you are ready to configure and run DOSemu.



<H3 ALIGN="CENTER"><A NAME="Heading6<FONT COLOR="#000077">Configuring DOSemu</FONT></H3>



<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.



<H4 ALIGN="CENTER"><A NAME="Heading7<FONT COLOR="#000077">Making a DOS Boot



Floppy</FONT></H4>



<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.</P>



<P>In addition to bootable DOS, the disk should have the following DOS files:







<UL>



	<LI><TT>format.com</TT>



	<P>



	<LI><TT>sys.com</TT>



	<P>



	<LI>A DOS mouse driver for your mouse



	<P>



	<LI>A simple file editor such as edit, edlin, or ted



</UL>







<P>From the <TT>dosemu</TT> subdirectory, copy the following device drivers onto



the floppy:







<UL>



	<LI><TT>emufs.sys</TT>



	<P>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -