old-www/HOWTO/DOSEMU-HOWTO-2.html

139 lines
5.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>The dosemu HOWTO: Compiling and installing dosemu</TITLE>
<LINK HREF="DOSEMU-HOWTO-3.html" REL=next>
<LINK HREF="DOSEMU-HOWTO-1.html" REL=previous>
<LINK HREF="DOSEMU-HOWTO.html#toc2" REL=contents>
</HEAD>
<BODY>
<A HREF="DOSEMU-HOWTO-3.html">Next</A>
<A HREF="DOSEMU-HOWTO-1.html">Previous</A>
<A HREF="DOSEMU-HOWTO.html#toc2">Contents</A>
<HR>
<H2><A NAME="s2">2. Compiling and installing dosemu</A></H2>
<H2><A NAME="ss2.1">2.1 Where are the installation instructions?</A>
</H2>
<P>The installation instructions are in the file, "QuickStart",
included in the distribution.
<P>
<H2><A NAME="ss2.2">2.2 Top ten problems while compiling and installing dosemu.</A>
</H2>
<P>
<P>1. Forgetting to read the <B>QuickStart</B> Guide.
<P>2. Try to compile some old version of dosemu.
<P>3. Try to compile with a kernel older than 2.0.28 or 2.1.15.
<P>4. Having the wrong linux kernel source sitting in <B>/usr/src/linux</B>
or missing <B>/usr/src/linux/include/version.h</B>
<P>5. Use dosemu with a kernel that does not have <B>IPC</B> compiled in.
<P>6. Compile with gcc older than 2.7.2 or libc older than 5.x.x.
<P>7. Forget to edit your <B>/etc/dosemu.conf</B>, <B>/etc/dosemu.users</B>
and <B>/var/lib/dosemu/global.conf</B> files
<P>8. Run DOSEMU with partition access while they are already mounted.
<P>9. Don't install dosemu with sufficient privileges (i.e., root).
<P>10. Try to run programs that use DPMI without enabling dpmi in
/etc/dosemu.conf
<P>
<H2><A NAME="ss2.3">2.3 How do I make aout binaries?</A>
</H2>
<P> Starting with version 0.64.4 there is no a.out support any more.
If you absolutely need it, you must use version 0.64.3.1.
The configure script then should take care for this, if you setup is a
standard setup.
<P>
<H2><A NAME="ss2.4">2.4 How do I compile dosemu on a machine with low memory?</A>
</H2>
<P>Marty Leisner (<B>leisner@sdsp.mc.xerox.com</B>) reported (95/4/8)
that
<P>If you have problems with running out of swap space you may want to
add <CODE>CFLAGS+=-fno-inline</CODE> after <CODE>CFLAGS</CODE> is defined in
<B>dpmi/Makefile</B>. Be careful before you do this and check for
the existence of swap space. I found Linux crashes at times when it
has no swap space.
<P>
<H2><A NAME="ss2.5">2.5 Compilation fails with some strange error regarding "slang"</A>
</H2>
<P>You probably have
<BLOCKQUOTE><CODE>
slangforce off
</CODE></BLOCKQUOTE>
in your compiletime-settings file. You need to change it to
<BLOCKQUOTE><CODE>
slangforce on
</CODE></BLOCKQUOTE>
and recompile.
<P>
<H2><A NAME="ss2.6">2.6 What configurable options are available ?</A>
</H2>
<P>The compiletime-settings.help file describes the options you can change
at compile time. The README.txt file describes the options you can
change at run time.
<P>
<H2><A NAME="ss2.7">2.7 Do I need to run dosemu as root?</A>
</H2>
<P>No. Although dosemu drops root privilege wherever possible, it is still
safer to not run dosemu as root, especially if you run DPMI
programs under dosemu. Most normal DOS applications don't need dosemu
to run as root, especially if you run dosemu under X.
Thus you should not allow users to run a suid root copy of dosemu,
wherever possible, but only a non-suid copy. You can configure this on
a per-user basis using the /etc/dosemu.users file.
<P>Programs that require direct access to hardware ports (e.g. if the
program needs to talk to some unusual hardware that is not supported
by Linux and dosemu) require dosemu to run as root but printers,
serial ports, mice and video cards (and to a small extent sound -
hopefully more soon) are emulated by dosemu so you don't need direct
hardware access and don't need to run as root to use these.
<P>
<H2><A NAME="ss2.8">2.8 How do I patch dosemu ?</A>
</H2>
<P>If you do patch dosemu from one version to another, do
&quot;make pristine;./configure; make&quot;.
If you don't make pristine, at least the version
of the new executable will be wrong, if the whole thing compiles at
all(97/2/9).
<P>
<P>
<H2><A NAME="ss2.9">2.9 What versions of DOS are known to run with dosemu ?</A>
</H2>
<P>All versions of DOS should work with dosemu, with the following caveats:
<P>FreeDOS (<B>
<A HREF="http://www.freedos.org">http://www.freedos.org</A></B>) does not
(yet) have a working redirector so you will
not be able to access your Linux filesystem or Novell networking under
FreeDOS. Note also that FreeDOS is unreliable beta software and may
crash unexpectedly, trash its filesystem, etc. etc.
<P>
<P>DOS 4.01 had problems by itself, so it won't work reliably with dosemu
either.
<P>
<P>With <B>MsDos-7</B> aka <B>Win95</B> you must not start the graphic shell
at bootup. If you make the hdimage bootable with the so called "Rescue Disk"
you are offered to make during the Windows installation, you get the right
settings. If you use your normal Win95 installation to transfer the system
files, have a look at the msdos.sys written on the hdimage and change the
settings under the section [Options] to have entries like
[Options]
Logo=0
BootGUI=0
<P>
<HR>
<A HREF="DOSEMU-HOWTO-3.html">Next</A>
<A HREF="DOSEMU-HOWTO-1.html">Previous</A>
<A HREF="DOSEMU-HOWTO.html#toc2">Contents</A>
</BODY>
</HTML>