                  .                                       .
                  :        >> S  C  I  N  E  T <<         :
    - -- ---------+--- -- -                       - -- ---+--------- -- -
          _______,-----,___,----,__________,---,_____,----,___,----,
          \\_    _____     ,____/____.    /         ______\___     /
           _/___    \/    /    /   \/       __/    __\__/    /    _\\
          /    /    /    /    /    /   \    \     /    /    /    /
        //____     _____     _____/____/    /____     _____     /jp!
             /____/    /____/         /____/    /____/    /____/
                  |                                       |
    - -- ---------+--- -- -                        - -- --+--------- -- -
                  :    . a network for the bbs scene .    :
    /- -- ----- --+-- ------------- --------------- ------+-------------/

                          DOSEMU DPMI Fix - 29/06/19 

PKZIP and dosemu don't play very well, especially if you are using a 64bit
linux os.

There is a way to disable DPMI (which causes the issue) via command line, by
adding -) as a command line option, but that really doesn't help if the zip
and unzip routines are hardcoded into software, like interlord.

The following steps will make sure that no matter how pkzip and pkunzip
are run, DPMI will always be disabled.

1. Edit your dosemu.conf file (usually located in /etc/dosemu/) and set
   your cpu emulation to full simulation by searching for "$_cpu_emu" and 
   make sure that it is as follows:

   $_cpu_emu = "fullsim"

2. Create a directory that is accessable from dosemu where pkzip.exe and
   pkunzip.exe will live.
    
3. Copy pkz204g.exe into the directory you just created and run it. This
   will uncompress all of the needed PK files.
    
4. In order to permanently disable DPMI for pkzip.exe, we must create a file
   in the directory we created called pkzip.cfg. This file must contain
   the following line in it:

   DPMI=Disabled
    
5. Now we need to add the folder we created to our path and add the needed
   setting to disable DPMI in pkunzip. We do this by modifying the
   autoexec.bat file which is dosemu is located at c:\autoexec.bat.
    
   Edit c:\autoexec.bat and add the folder we created to the path. The folder
   I created is d:\doors\pkzip so my path statement in autoexec.bat looks
   like this:

   path z:\bin;z:\gnu;z:\dosemu;d:\doors\pkzip

   We also need to add the following statement in autoexec.bat right after
   our last lredir statement:

   SET PKUNZIP=-)

6. Now exit dosemu and restart it to make sure our new autoexe.bat file takes.

   You should now be able to run pkzip.exe and pkunzip.exe from anywhere inside
   dosemu without the dreaded DPMI error/crash.