cvs commit: hints dosemu.txt

tushar at linuxfromscratch.org tushar at linuxfromscratch.org
Fri Jan 23 16:37:37 PST 2004


tushar      04/01/23 17:37:37

  Modified:    .        dosemu.txt
  Log:
  Updated: dosemu.txt
  
  Revision  Changes    Path
  1.4       +40 -108   hints/dosemu.txt
  
  Index: dosemu.txt
  ===================================================================
  RCS file: /home/cvsroot/hints/dosemu.txt,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -u -r1.3 -r1.4
  --- dosemu.txt	9 Oct 2003 01:08:38 -0000	1.3
  +++ dosemu.txt	24 Jan 2004 00:37:37 -0000	1.4
  @@ -15,121 +15,51 @@
    http://dosbox.sourceforge.net) - but it's still faster in most cases!]
   
   PREREQUISITES:
  -http://www.dosemu.org - dosemu-1.0.2.tgz
  -FreeDOS kernel binary (is included in package) or any other DOS's 
  -command.com/msdos.sys/io.sys
  -gcc-2.95.3 (segfaults when compiled with gcc-3.x, I'm doing some testing
  -about this at the moment...)
  +http://dosemu.sf.net - dosemu-1.2.0.tgz, most actual dosemu-freedos-bin.tgz
   
   HINT:
  -First edit the compiletime-settings to match your preferences.
  -The file compiletime-settings.help explains the usage of these
  -options. I myself used the following options:
  -
  ---snip
  -config {
  -  experimental on
  -  sbemu on
  -  mitshm on
  -  x on
  -  net on
  -  dodebug on
  -  slangforce on
  -  oldslang off
  -  runasroot off
  -  linkstatic off
  -  newint on
  -  aspi on
  -}
  ---snap
  -
  -Next edit the base-configure file so:
  -
  -mv base-configure base-configure.bak
  -sed -e s/-m486/-march=i686/g -e s/-malign/-falign/g base-configure.bak \
  - > base-configure
  -chmod 755 base-configure
  -
  -Now run the installation:
  -
  -export CC=/opt/gcc-2.95.3/bin/gcc &&
  -./rebuild all &&
  -cp bin/* <wanted prefix, e.g. /usr/bin> &&
  -mkdir /var/lib/dosemu /var/lib/dosemu/dosemu &&
  -cp src/plugin/commands/*.com /var/lib/dosemu/dosemu
  -
  -now try "dos" or "xdos". If xdos complains about not finding
  -the necessary fonts, you should edit your etc/X11/XftConfig
  -and add to the first lines
  -
  -dir "/usr/X11R6/lib/X11/fonts/misc"
  -
  -and restart X.
  -
  -A minor problem is that the src/plugin/commands dir does not
  -contain all of the dosemu stuff, for example the cdrom.sys
  -driver is missing. You'll find the turbo C sources in
  -/src/commands. Since you propably don't have turbo C, you'll
  -have to find a way to 1. extract that driver from the binary
  -distribution or 2. compile it without turbo C:
  +
  +./configure --prefix=/usr --enable-experimental \
  + --with-fdtarball=<wherever you stored dosemu-freedos-bin.tgz> &&
  +make &&
  +make install
  +
  +If the installation breaks due to not finding bdftopcf, just use "make
  +install" again. The error shouldn't occur on the 2nd try.
  +
  +now try "dos" or "xdos". If xdos complains about not finding the necessary 
  +fonts, you should edit either your etc/X11/XftConfig or /etc/fonts/fonts.conf 
  +(if you're using the newest X-Server with xft) and add to the first lines
  +
  +'dir "/usr/X11R6/lib/X11/fonts/misc"' in XftConfig or
  +'<dir>/usr/X11R6/lib/X11/fonts/misc</dir>' in fonts.conf
  +
  +if you're not using xft, you will have to restart the x server to let the 
  +changes take effect or use the commands:
  +
  +xset +fp /usr/X11R6/lib/X11/fonts/misc
  +xset fp rehash
  +
  +and try to start dosemu again.
  +
  +If you did not use the freedos image, you will have to set up your dos image
  +yourself: make a directory /usr/share/dosemu and copy the io.sys and the
  +msdos.sys of your dos to this directory.
  +
  +A minor problem is that the src/plugin/commands dir does not contain all of 
  +the dosemu stuff, for example the cdrom.sys driver is missing. You'll find 
  +the tasm sources in /src/commands. Since you propably don't have tasm, you'll
  +have to find a way to 1. extract that driver from the binary distribution or 
  +2. compile it without tasm using the gcc assembler:
   
   cd src/commands &&
   for i in aspi cdrom ems emufs; do
  -  as86 -b ${i}.sys ${i}.S
  +  as -o ${i}.sys < ${i}.S
   done &&
  -cp *.sys /var/lib/dosemu/dosemu
  -
  -Just don't mind the errors. The drivers should work anyway.
  -
  -
  ->From the freedos kernel binary:
  -
  -unzip the keXXXXc32.zip to a temporary directory. You'll only need the
  -to copy the kernel.sys file:
  -	
  -cp kernel.sys /var/lib/dosemu &&
  -ln -s /var/lib/dosemu/dosemu/comcom.com \
  -/var/lib/dosemu/command.com
  -
  -any other dos:
  -
  -mkdir /var/lib/dosemu/dos &&
  -cp /<wherever it is>/io.sys /var/lib/dosemu &&
  -cp /<wherever it is>/msdos.sys /var/lib/dosemu &&
  -cp /<wherever it is>/command.com /var/lib/dosemu
  -
  -You may be interested in copying other files you want (himem.sys, 
  -keyb.com, etc.) to this directory. Since dosemu comes with its
  -own command.com replacement (comcom.com), you don't need
  -command.com, but only io.sys and msdos.sys (or however your
  -DOS calls these files).
  -
  -For configuration, copy etc/dosemu.users.[easy|secure] and 
  -etc/dosemu.conf to /etc and edit them to match your preferences.
  -
  -You may create config.sys and autoexec.bat to match your needs.
  -In most cases, you'll be fine with those:
  -
  -cat >> /var/lib/dosemu/autoexec.bat << "EOF"
  - at echo off
  -set TEMP=c:\tmp
  -prompt $P$G
  -unix -s DOSEMU_VERSION
  -echo "Welcome to dosemu %DOSEMU_VERSION%!"
  -unix -e
  -EOF
  -
  -cat >> /var/lib/dosemu/config.sys << "EOF"
  -DOS=UMB,HIGH
  -lastdrive=z
  -files=20
  -rem buffers=10
  -devicehigh=c:\dosemu\ems.sys
  -rem devicehigh=c:\dosemu\cdrom.sys
  -shell=c:\command.com /e:1024 /p
  -EOF
  +mkdir /usr/share/dosemu/dosemu &&
  +cp *.sys /usr/share/dosemu/dosemu
   
  -You may now start "dos" or "xdos" and install your DOS software at will.
  +You may now start "dosemu" or "xdosemu" and install your DOS software at will.
   
   CHANGELOG:
   [2002-01-18]
  @@ -140,3 +70,5 @@
     * Small fixes in conversion.
   [2003-10-07]
     * Added gcc-2.95.3 stuff for LFS-5.x.
  +[2004-01-19]
  +  * Updated to dosemu 1.2.0, gcc as instead of as86 and minor changes.
  
  
  



More information about the hints mailing list