Subject: [FAQ] DOSEMU 安裝法

From: [email-masked] (Marx JS)
Date: Fri, 26 May 1995 00:55:15 GMT

因為朋友需要 所以當天臨時寫了這個安裝說明 今天又在某些地方做了些修改
有錯誤或者補充的地方 記得告訴我喔  ：-) 
等等來翻譯些 HOWTO (因為自己英文不好 沒有翻譯實在看不懂)  如果不是翻
譯的太誇張 就post上來..呵呵.. 

>-------------------------如要引用虛線（這裡)以上的部份可以省略-----------------------------------

                   ┌────────────────┐
                   │        如何安裝 DOSEMU         │
                   └────────────────┘

＊前言:何謂 DOSEMU ?

引用 "dosemu 是玩家級的程式 他的特色是使用 linux 核心以及386處理器
來執行 MS-DOS 的功能" 足以說明他的特色
Linux 多人多工 32位元的架構 實在令人心動 同時允許 64 個 USER login
回頭看看 MS-DOS 實在不禁令人對 DOS 搖頭 但不可諱言 已經習慣了 DOS
的應用程式
要完全放棄..實在也有點捨不得 幸好有 DOSEMU 這個程式 :-)
經過測試的結果 可以執行倚天中文十六字形 忘形輸入法 telix...相當好用 :)
還有測試 YACT linux 下的中文系統 也可以看到 24字型的漂亮楷書
唯一遺憾的是無法在YACT下輸入中文(如果執行倚天中文可以)

＊哪裡可以找到這個程式?

一.可以從有關 LINUX 的光碟中找到 例如交大雲觀
二.臺灣各大 FTP 都可以找到 檔案名稱應該是 pre0.53_??.
   或者 pre0.6???
三.當然您的朋友有 也可以找你朋友 copy (ps.不會侵犯著作權的)

＊安裝方法(以 root login)

註:筆者電腦環境
1. 主機 486DX2-66(基本需求386 以上就可以了)
2. 16MB RAM(基本需求4M就夠了)
3. 主機硬碟容量 1GB 以兩部 540 MB 其中 linux 為 /dev/hda1
   dos 為 /dev/hda2
4. 以 NE2000 相容卡(DE250)連接至 netware lite server(共四部 PC)
5. Panosonic 562b 光碟機 (已經 mount 上)
6. 顯示卡 et4000w32p 1MB RAM
7. com1接滑鼠 com2 接 MoDem
8. 軟碟機 1.2MB 1.44MB 各一
9. LINUX KERNAL 1.2.5

一.將 pre0.53_?? 或 pre0.6??? 放在暫時的目錄中 例如 /tmp
    執行 zcat -dc pre0.??? | tar vxf -
    解開壓縮檔 解壓之後 會在根目錄 或目前目錄產生一個 /dosemu0.??
的目錄

二.進入 /dosemu0.?? 目錄之下準備編譯 在此大略有三種方式可以選擇
    1.如果您有 Xwindows 可執行 make install
    2.如果不安裝在 Xwindows 可執行 make most
    3.如果要想執行 MSWINDOWS 那麻煩把 Makefile 第 21 行 的註解 "#"
拿掉
     改成如下
     REQUIRES_EMUMODULE = -DREQUIRE_EMUMODLE.
     make itall
   等待數分鐘(或數十分鐘後) 如果沒有錯誤訊息 應該就完成了

三.接著執行 cp /dosemu0.53??/examples/config.dist /etc/dosemu.conf
   此 config.dist 是一個 DOSEMU 的設定範例

四.編輯 /etc/dosemu.conf 依照自己的需求 做最合適的設定
    以下簡單舉例說明:是我自己的設定 跑倚天 3.22版 16字型
    以及忘形輸入法 加上 telix 都很穩

 設定前面有 "#" 者 都被視為 disable 所以選擇自己需要的設定
 把 "#" 刪掉就可以了
>--------------------------------------------------------------------
# Linux dosemu 0.53 configuration file.
# Updated to include QuickStart documentation 5/10/94 by Mark Rejhon
# James MacLean, [email-masked], 12/31/93
# Robert Sanders, [email-masked], 5/16/93
#
# NOTICE:
#    - Although QuickStart information is included in this file, you
#       should refer to the documentation in the "doc" subdirectory of
the
#       DOSEMU distribution, wherever possible. 
#    - This configuration file is designed to be used as a base to
make
#       it easier for you to set up DOSEMU for your specific system.
#    - Configuration options between lace brackets { } can be split
onto
#       multiple lines.
#    - Comments start with # or ; in column 1. (beginning of a line)
#    - Send Email to the jmaclean address above if you find any
errors.

#************************* DEBUG
******************************************
#
# QuickStart:
#    This section is of interest mainly to programmers.  This is
useful if
#    you are having problems with DOSEMU and you want to enclose debug
info
#    when you make bug reports to a member of the DOSEMU development
team.
#    Simply set desired flags to "on" or "off", then redirect stderr
of
#    DOSEMU to a file using "dos 2>debug" to record the debug
information
#    if desired.  Skip this section if you're only starting to set up.
# 以下設定哪個項目需要 debug 請參照上述說明
# 如果模擬 DOS 時想 DEBUG 可以執行 dos 2>filename
# filename 是 debug 時你想記錄的檔名
debug { config  off     disk    off     warning off     hardware off
        port    off     read    off     general off     IPC      off
        video   off     write   off     xms     off     ems      off
        serial  off     keyb    off     dpmi    off
        printer off     mouse   off
      }

#************************ MISCELLANEOUS
************************************
#
#   Want startup DOSEMU banner messages?  Of course :-)
# 是否希望觀看啟動標題訊息
dosbanner on
#
#   timint is necessary for many programs to work.
#   許多程式一起工作需要設定為 ON
timint on

#************************** KEYBOARD
************************************
# 
# QuickStart:
#    With the "layout" keyword, you can specify your country's
keyboard
#    layout.  The following layouts are implemented:
#        finnish           us           dvorak       sf
#        finnish-latin1    uk           sg           sf-latin1
#        de                dk           sg-latin1    es
#        de-latin1         dk-latin1    fr           es-latin1
#        be                no           fr-latin1    portuguese
#        it                sw
#    The us-layout is selected by default if the "layout" keyword is
omitted.
#
#    The keyword "keybint" allows more accurate of keyboard
interrupts,
#    It is a bit unstable, but makes keyboard work better when set to
"on".
#
#    The keyword "rawkeyboard" allows for accurate keyboard emulation
for
#    DOS programs, and is only activated when DOSEMU starts up at the 
#    console.  It only becomes a problem when DOSEMU prematurely exits

#    with a "Segmentation Fault" fatal error, because the keyboard
would
#    have not been reset properly.  In that case, you would have to
run 
#    kbd_mode -a remotely, or use the RESET button.  In reality, 
#    this should never happen.  But if it does, please do report to
the 
#    dosemu development team, of the problem and detailed
circumstances, 
#    we're trying our best!  If you don't need near complete keyboard
#    emulation (needed by major software package), set it to "off"
# 設定鍵盤 keybint 以及 rawkeyboard 都設定為 on
keyboard {  layout us  keybint on  rawkeyboard on  }
# keyboard {  layout de-latin1  keybint on  rawkeyboard on  }
#
#    The HogThreshold value determines how nice Dosemu will be about
#    giving other Linux processes a chance to run.  Setting the
HogThreshold
#    value to approximately half of you BogoMips value will slightly
#    degrade Dosemu performance, but significantly increase overall
#    system idle time.  A zero value runs Dosemu at full tilt.
# HogThreshold 數值越低 處裡的順序等級越高
HogThreshold 1

#**************************** SERIAL
************************************
#
# QuickStart:
#    You can specify up to 4 simultaneous serial ports here.  
#    If more than one ports have the same IRQ, only one of those ports
#    can be used at the same time.  Also, you can specify the com
port,
#    base address, irq, and device path!  The defaults are:
#        COM1 default is base 0x03F8, irq 4, and device /dev/cua0
#        COM2 default is base 0x02F8, irq 3, and device /dev/cua1 
#        COM3 default is base 0x03E8, irq 4, and device /dev/cua2
#        COM4 default is base 0x02E8, irq 3, and device /dev/cua3
#    If the "com" keyword is omitted, the next unused COM port is
assigned.
#    Also, remember, these are only how you want the ports to be
emulated
#    in DOSEMU.  That means what is COM3 on IRQ 5 in real DOS, can
become 
#    COM1 on IRQ 4 in DOSEMU!
#
#    Also, as an example of defaults, these two lines are functionally
equal:
#    serial { com 1  mouse }
#    serial { com 1  mouse  base 0x03F8  irq 4  device /dev/cua0 }
#
#    If you want to use a serial mouse with DOSEMU, the "mouse"
keyword 
#    should be specified in only one of the serial lines.  (For PS/2
#    mice, it is not necessary, and device path is in mouse line
instead)
#
#    Uncomment/modify any of the following if you want to support a
modem:
#    (or any other serial device.)
#
#serial { com 1  device /dev/modem }
serial { com 2 device /dev/modem }
# 設定 modem com port 對應哪個設備檔 設定後可使用 dos 的通訊程式
#serial { com 3  device /dev/modem }
#serial { com 4  device /dev/modem }
#serial { com 3  base 0x03E8  irq 5  device /dev/cua2 }
#
#    If you have a non-PS/2 mouse, uncomment/modify one of the
following.
serial { mouse  com 1  device /dev/mouse }
#設定滑鼠對應哪個設備檔
#serial { mouse  com 2  device /dev/mouse }
#
#    What type is your mouse?  Uncomment one of the following.
#    Use the 'internaldriver' option to try Dosemu internaldriver.
#    Use the 'emulate3buttons' for 3button mice.
mouse { microsoft }
#設定滑鼠型態 請依照自己的設定
#mouse { logitech }
#羅技滑鼠
#mouse { mmseries }
#mouse { mouseman }
#mouse { hitachi }
#mouse { mousesystems }
#mouse { busmouse }
#mouse { ps2  device /dev/mouse internaldriver emulate3buttons }
#mouse { mousesystems device /dev/mouse internaldriver cleardtr }

# For tty locking capabilities:
# ttylocks { directory /var/locks namestub LCK.. [binary] }

#************************* NETWORKING SUPPORT
*****************************
#
#    Turn the following option 'on' if you require IPX/SPX emulation.
#    Therefore, there is no need to load IPX.COM within the DOS
session.
#    The following option does not emulate LSL.COM, IPXODI.COM, etc.
#    NOTE: MUST HAVE IPX PROTOCOL ENABLED IN KERNEL !!
#設定 ipx 網路是啟動直接開啟 ipx potocol
#必須 LINUX 編譯核心時有支援 IPX 才會有效
#如果下面兩項開啟 那麼進入 DOSEMU 後 執行 NETX 就可以上 NOVELL 網路了
#當然下面兩項也可以不開啟 可以在進入 DOSEMU 後 執行 LSL 然後執行 PDIPX
#然後執行 NETX 也是一樣的
ipxsupport off
#
#    Enable Novell 8137->raw 802.3 translation hack in new packet
driver.
#pktdriver novell_hack

#************************** TERMINALS
*************************************
#
# This section applies whenever you run DOSEMU remotely or in an
xterm.
# Color terminal support is now built into DOSEMU.  Skip this section
for 
# now to use terminal defaults, until you get DOSEMU to work.
#
# QuickStart: 
#       There is a number of keywords for the terminal { }
configuration line.
#    "charset" latin, ibm                                  (default
latin)
#       Select the character set to use with DOSEMU. 
#    "color" off, on                                       (default
on)
#       Enable or disable color terminal support.
#    "updatefreq" value                                    (default 4)
#       A number indicating the frequency of terminal updates of the
screen.  
#       The smaller the number, the more frequent.  A value of 20
gives a 
#       frequency of about one per second, which is very slow.
However, more
#       CPU time is given to DOS applications when updates are less
frequent.
#       A value of 4 is recommended in most cases, but if you have a
fast
#       system or link, you can decrease this to 0. 
#    "escchar"  value                                      (default
30)
#       A number that specifies the control character used as a prefix

#       character for sending alt, shift, ctrl, and function keycodes.
The
#       default value is 30 which is Ctrl-^.  So, for example, F1 is 
#       'Ctrl-^ 1', Alt-F7 is 'Ctrl-^ a Ctrl-^ 7'.  For online help,
press
#       'Ctrl-^ h'.

#    Use the following to enable the IBM character set.
#terminal { charset ibm  color on }
#
#    Use this for color xterms or rxvt's with no IBM font, with only 8
colors.
#terminal { charset latin  color on }
#
#    Use this for color xterms or rxvt's with IBM font, with only 8
colors.
#terminal { charset ibm  color on }
#
#    More detailed line for user configuration:
# 設定終端機型態為 ibm (可以開啟 linux 中文系統在執行 dosemu
也可以看到中文)
# updatefreq 數值越小 螢幕顯示越快 (主要會覺的慢這裡應該有重大的關係)
terminal { charset ibm  updatefreq 0 color on }

#************************* X SUPPORT
**************************************
#
# valid keywords for the X { } config line:
#
#    "updatefreq" value                                    (default 8)
#       A number indicating the frequency of X updates of the screen.

#       The smaller the number, the more frequent.  A value of 20
gives a 
#       frequency of about one per second, which is very slow.
However, more
#       CPU time is given to DOS applications when updates are less
frequent.
#
#    "display" string                                      (default
":0")
#       The X server to use. If this is not specified, dosemu will use
#       the DISPLAY environment variable. (This is the normal case)
#
#    "title" string                                    (default
"dosemu")
#       What you want dosemu to display in the title bar of its
window.
#
#    "icon_name" string                                (default
"dosemu")
#       Used when the dosemu window is iconified.
#
#    "keycode"                                          (default 0)
#       Used to give Xdos access to keycode part of XFree86.
#
#    "blinkrate" value                                  (default 8)
#       Used to add blinking to cursor.
#
#    "font" value                                       (default vga)
#       Used to pick a font other than vga. Must be monospaced.
# Xwindows 設定
X { updatefreq 8 title "DOS in a BOX" icon_name "xdos" }

#************************* VIDEO
******************************************
#設定螢幕型態
# !!WARNING!!: A LOT OF THIS VIDEO CODE IS ALPHA!  IF YOU ENABLE
GRAPHICS
# ON AN INCOMPATIBLE ADAPTOR, YOU COULD GET A BLANK SCREEN OR MESSY
SCREEN
# EVEN AFTER EXITING DOSEMU.  JUST REBOOT (BLINDLY) AND THEN MODIFY
CONFIG.
#
# QuickStart:
#    Start with only text video using the following line, to get
started.
#    then when DOSEMU is running, you can set up a better video
configuration.
#一般 VGA
#video { vga }          # Use this line, if you are using VGA
#video { cga  console }          # Use this line, if you are using CGA
#video { ega  console }          # Use this line, if you are using EGA
#video { mda  console }          # Use this line, if you are using MDA
#
# QuickStart Notes for Graphics:
#   - If your VGA-Bios resides at E000-EFFF, turn off video BIOS
shadow
#     for this address range and add the statement vbios_seg 0xe000
#     to the correct vios-statement, see the example below
#   - If your VBios size is only 32K you set it with  vbios_size
0x8000,
#     you then gain some space for UMB or hardware ram locations.
#   - Set "allowvideoportaccess on" earlier in this configuration file
#     if DOSEMU won't boot properly, such as hanging with a blank
screen,
#     beeping, leaving Linux video in a bad state, or the video card 
#     bootup message seems to stick.
#   - Video BIOS shadowing (in your CMOS setup) at C000-CFFF must be
disabled. 
#
#     *> CAUTION <*: TURN OFF VIDEO BIOS SHADOWING BEFORE ENABLING
GRAPHICS!
#                    This is not always necessary, but a word to the
wise
#                    shall be sufficient.
#
#   - If you have a dual-monitor configuration (e.g. MDA as second
display),
#     you then may run CAD programs on 2 displays or let play your
debugger
#     on the MDA while debugging a graphics program on the VGA (e.g TD
-do ).
#     You also may switch to the MDA display by using the DOS command
#     mode mono (mode co80 returns to your normal display).
#     This feature can be enabled by the switch "dualmon" like this:
#       video { vga  console  graphics dualmon }
#     and can be used on a xterm and the console, but of course not,
if you
#     have the MDA as your primary display. 
#     You also must set USE_DUALMON 1 in include/video.h.
#     NOTE: Make sure no more then one process is using this feature !
#           ( you will get funny garbage on your MDA display. ) 
#           Also, you must NOT have the dualmon-patches for kernel
applied
#           ( having the MDA as Linux console ) 
#        
#   It may be necessary to set this to "on" if DOSEMU can't boot up
properly
#   on your system when it's set "off" and when graphics are enabled.
#   Note: May interfere with serial ports when using certain video
boards.
allowvideoportaccess on
#
#   Any 100% compatible standard VGA card _MAY_ work with this:
#video { vga  console  graphics }
#
#   If your VGA-BIOS is at segment E000, this may work for you:
#video { vga  console  graphics  vbios_seg 0xe000 }
#
#   Trident SVGA with 1 megabyte on board
#video { vga  console  graphics  chipset trident  memsize 1024 }
#
#   Diamond SVGA
#video { vga  console  graphics  chipset diamond }
#
#   ET4000 SVGA card with 1 megabyte on board:
video { vga  console  graphics  chipset et4000  memsize 1024 }
#我用 et4000w32p 所以選擇這個
#video { vga  console  graphics  chipset et4000  memsize 1024
vbios_size 0x8000 }
#
#   S3-based SVGA video card with 1 megabyte on board:
# S3 的設定
#video { vga  console  graphics  chipset s3  memsize 1024 }
# For ATI graphic mode
#ports { 0x1ce 0x1cf 0x238 0x23b 0x23c 0x23f 0x9ae8 0x9ae9 0x9aee
0x9aef }

#************************** MISCELLANEOUS
**********************************
#
# QuickStart:
#    For "mathco", set this to "on" to enable the coprocessor during
DOSEMU.
#    This really only has an effect on kernels prior to 1.0.3.
#    For "cpu", set this to the CPU you want recognized during DOSEMU.
#    For "bootA"/"bootC", set this to the bootup drive you want to
use.
#    It is strongly recommended you start with "bootA" to get DOSEMU
#    going, and during configuration of DOSEMU to recognize hard
disks.
#
#是否有數學運算器
mathco on           # Math coprocessor valid values:  on  off
#CPU種類
cpu 80486           # CPU emulation valid values:  80286  80386  80486
#從哪個硬碟或軟碟開機 A 是軟碟 C 硬碟
bootA               # Startup drive valid values:  bootA  bootC

#*********************** MEMORY
******************************************
#
# QuickStart:
#    These are memory parameters, stated in number of kilobytes.
#    If you get lots of disk swapping while DOSEMU runs, you should 
#    reduce these values.  Also, DPMI is still somewhat unstable,
#    (as of early April 1994) so be careful with DPMI parameters.
#
#    For ems, you now can set the frame to any 16K between
0xc800..0xe000
#
#    If you have adapters, which have memory mapped IO, you may now
#    map those regions with hardware_ram { .. }. You can only map in
#    entities of 4k, you give the address, not the segment.
#
#    umb_max is a new parameter which tells DOSEMU to be more
aggressive
#    about finding upper memory blocks.  The default is 'off'.
#
# 是否要盡量抓取 XMS UMB
umb_max on              # be more aggressive about finding XMS UMB
blocks
#設定模擬多少記憶體以及種類
dpmi 4096              # DPMI size in K, or "off"
xms 4096                # XMS size in K,  or "off"
ems off                 # EMS size in K,  or "off"
#ems { ems_size 1024 ems_frame 0xe000 }
#ems { ems_size 2048 ems_frame 0xd000 }

#hardware_ram { 0xc8000 range 0xcc000 0xcffff }
                        # maps 0xc8000..0xc8fff and 0xcc000..0xcffff
#顯示給應用程式主記憶體的值
#dosmem 640             # Maximum conventional RAM to show apps

#*********************** IRQ
******************************************
#
# QuickStart:
#    These are parameters needed for SIG, the Silly Interrupt
Generator.
#    To use this feature, you also must have the emumodule.o driver
#    loaded. For more details see emumod/README.emumod.
#
#    The sillyint statement accepts IRQ values between 3..15,
#    if using the { .. } syntax each value or range can be prefixed
#    by the keyword use_sigio to monitor the IRQ via SIGIO. 
#    If this is missing the IRQ is monitored by SIGALRM. 
#

sillyint off    # this disables IRQ monitoring
#sillyint 15
#sillyint { 15 }
#sillyint { use_sigio 15 }
#sillyint { 10  use_sigio range 3 5 }

#********************** PORT ACCESS
**************************************
#
# !!WARNING!!: GIVING ACCESS TO PORTS IS BOTH A SECURITY CONCERN AND
# SOME PORTS ARE DANGEROUS TO USE.  PLEASE SKIP THIS SECTION, AND 
# DON'T FIDDLE WITH THIS SECTION UNLESS YOU KNOW WHAT YOU'RE DOING.
#
# ports { 0x388 0x389 }  # for SimEarth
# ports { 0x21e 0x22e 0x23e 0x24e 0x25e 0x26e 0x27e 0x28e 0x29e } #
for jill

#******************* SPEAKER
*********************************************
# 
# These keywords are allowable on the "speaker" line:
#   native      Enable DOSEMU direct access to the speaker ports.
#               開啟對喇叭直接存取
#   emulated    Enable simple beeps at the terminal.
#               簡單的嗶聲
#   off         Disable speaker emulation.
#               關閉
speaker emulated        # or "off" or "emulated"

#******************* HARD DISKS
******************************************
#
# !!WARNING!!: DAMAGE MIGHT RESULT TO YOUR HARD DISK (LINUX AND/OR
DOS)
# IF YOU FIDDLE WITH THIS SECTION WITHOUT KNOWING WHAT YOU'RE DOING!
#
# QuickStart:
#    The best way to get started is to start with a boot floppy, and
set
#    "bootA" above in the configuration.  Keep using the boot floppy 
#    while you are setting this hard disk configuration up for DOSEMU,
#    and testing by using DIR C: or something like that.
#    If you want DOSEMU to be able to access a DOS partition, the 
#    safer type of access is "partition" access, because "wholedisk" 
#    access gives DOSEMU write access to a whole physical disk, 
#    including any vulnerable Linux partitions on that drive!
#
#    !!! IMPORTANT !!!
#    You must not have LILO installed on the partition for dosemu to
boot off. 
#    As of 04/26/94, doublespace and stacker 3.1 will work with
wholedisk 
#    or partition only access.  Stacker 4.0 has been reported to work
with
#    wholedisk access.  If you want to use disk compression using
partition
#    access, you will need to use the "mkpartition" command included
with
#    dosemu to create a partition table datafile for dosemu.  The
command are
#    installed in /var/lib/dosemu.
#
#    Please read the documentation in the "doc" subdirectory for info
#    on how to set up access to real hard disk.
#
#    "image" specifies a hard disk image file.
#    "partition" specifies partition access, with device and partition
number.
#    "wholedisk" specifies full access to entire hard drive.
#    "readonly" for read only access.  A good idea to set up with.
# 設定系統有哪些 partition 不過老是 readonly 所以我不用這種方式
# 全部不設定 改由 config.sys 設定(如下附註)
#disk { image "/var/lib/dosemu/hdimage" }      # use diskimage file.
#disk { partition "/dev/hda2"  }       # 1st partition on 1st IDE.
#disk { partition "/dev/hda6" readonly }       # 6th logical
partition.
#disk { partition "/dev/sdb1" readonly }       # 1st partition on 2nd
SCSI.
#disk { wholedisk "/dev/hda" }                 # Entire disk drive
unit

#******************* DOSEMU BOOT
*******************************************
#
#    Use the following option to boot from the specified file, and
then
#    once booted, have bootoff execute in autoexec.bat. Thanks Ted
:-).
#    Notice it follows a typical floppy spec. To create this file use
#    dd if=/dev/fd0 of=/var/lib/dosemu/bdisk bs=16k
#
# 先在MS-DOS 開機磁碟機 FORMAT/S 一片可以開機的DOS開機片
# 方法如下
# 一.先把 /dosemu???/comands 目錄下的 .sys .com 檔案 copy 到 A
磁碟磁片中
#    以方便使用 而此磁片必須經過 FORMAT /S 有DOS開機系統
# 二.執行 dd if=/dev/fd0 of=/var/lib/dosemu/bdisk bs=16k 來製造一個
#    開機檔 以後每次由 A:  開機時 就會執行這個開機檔
#    當然可以先在磁片中寫好您想要的 config.sys & autoexec.bat
#    建議用此方法開機 利用 config.sys 把 dos partiton 掛上
#    config.sys 寫法(附註在後面)
bootdisk { heads 2 sectors 18 tracks 80 threeinch file
/var/lib/dosemu/bdisk }
#
#    Specify extensions for the CONFIG and AUTOEXEC files.  If the
below
#    are uncommented, the extensions become CONFIG.EMU and
AUTOEXEC.EMU.
#    NOTE: this feature may affect file naming even after boot time.
#    If you use MSDOS 6+, you may want to use a CONFIG.SYS menu
instead. 
#
#EmuSys EMU
#EmuBat EMU

#******************* FLOPPY DISKS
****************************************
#
# QuickStart:
#    This part is fairly easy.  Make sure that the first (/dev/fd0)
and
#    second (/dev/fd1) floppy drives are of the correct size,
"threeinch"
#    and/or "fiveinch".  A floppy disk image can be used instead,
however.
#
#    FOR SAFETY, UNMOUNT ALL FLOPPY DRIVES FROM YOUR FILESYSTEM BEFORE

#    STARTING UP DOSEMU!  DAMAGE TO THE FLOPPY MAY RESULT OTHERWISE!
# 設定軟碟 有分 threeinch 以及 fiveinch 請依照自己的設備設定
floppy { device /dev/fd0 threeinch }  
floppy { device /dev/fd1 fiveinch }  
#floppy { heads 2  sectors 18  tracks 80  
#         threeinch  file /var/lib/dosemu/diskimage }
#
#    If floppy disk speed is very important, uncomment the following
#    line.  However, this makes the floppy drive a bit unstable.  This

#    is best used if the floppies are write-protected.
#    Use an integer value to set the time between floppy updates.
#
FastFloppy 8

#******************* PRINTERS
********************************************
#
# QuickStart:
#    Printer is emulated by piping printer data to a file or via a
unix
#    command such as "lpr".  Don't bother fiddling with this
configuration
#    until you've got DOSEMU up and running already.
#
#    NOTE: Printers are assigned to LPT1:, LPT2:, and LPT3: on a one
for
#    one basis with each line below.  The first printer line is
assigned
#    to LPT1:, second to LPT2:, and third to LPT3:.  If you do not
specify
#    a base port, the emulator will setup the bios to report 0x378,
0x278,
#    and 0x3bc for LPT1:, LPT2:, and LPT3: respectively.
#
#    To use standard unix lpr command for printing use this line:
#設定印表機
printer { options "%s"  command "lpr"  timeout 20 }
#
#    And for any special options like using pr to format files,
#    add it to the options parameter:
#
#printer { options "-p %s"  command "lpr"  timeout 10 }    # pr format
it
#
#    To just have your printer output end up in a file, use the
following line:
#
#printer { file "lpt3" }
#
#    If you have a DOS application that is looking to access the
printer
#    port directly, and uses the bios LPT: setting to find out the
port to use, 
#    you can modify the base port the bios will report with the
following:
#
#printer { options "%s"  command "lpr"  base 0x3bc }
#
#    Be sure to also add a port line to allow the application access
to
#    the port:
#
#ports { 0x3bc 0x3bd 0x3be }
#
#    NOTE: applications that require this will not interfere with
applications
#    that continue to use the standard bios calls.  These applications
will
#    continue to send the output piped to the file or unix command.
#
>--------------dosemu.conf部份結束--------------------------------------------

接下來還是無法跑

五.請編輯 /etc/dosemu.users 這個檔是設定哪些 USER 可以執行 dosemu

例如我要設定讓 marx 以及 kevin 可以使用 只要在此檔案加上

marx
kevin

就可以了
如果想讓每個帳號都可以使用 dosemu 可以加上 all

如果你不會建立 marx 以及 kevin 這兩個 user 可以
修改 /etc/passwd

在檔案後面增加兩行
marx::110:0:sysop:/:/bin/bash
kevin::112:0:sysop:/:/bin/bash

這兩個都是 root :Q 當然可以依照自己需求..

六.然後可以 alt+6 切換到別的 tty login 執行看看
   login 後 執行 "dos" 就可以看到 漂亮的開機畫面..在怎麼詳細看
   都看不出來 這原來是"模擬出來的MS-DOS"

七.在 DOS 視窗下要切換到其他 tty 請用 alt+ctrl+? 切換
   要重新開機 atl+ctrl+PgUp (指的是開 DOS 重新啟動)
   要關閉 DOS 視窗 alt+ctrl+PgDn

八.把 CD-ROM 掛上 Linux 的 DOS session

     原理:把 dosemu 附贈的 emufs.sys 掛在 config.sys 上

    1.解開 dosemu 壓縮檔時注意看 dosemuXXXX/command/ 目錄下的檔案
      是否有許多 .sys .com .exe 的檔案 如果有 把那些檔案 copy 到
      硬碟DOS partition 的目錄 (可以建立一個目錄專門存放那些檔案
      例如 C:\TOOL\LINUX) 如果要使用硬碟的 DOS PARTITION 開機
      建議使用多重開機 以免造成困擾
      或者用磁片開機 可以直接 COPY 到開機片

    2.但是首先一定要你的 CD-ROM 有 MOUNT 上 LINUX 的目錄
      例如我將 CD-ROM mount 到 /cdrom 的目錄下

    3.將你的 config.sys 加上一行
      device=a:\emufs.sys /       R
             ^^^^^^^^^^^^ ^       ^
            PS.1         PS.2    PS.3

      PS.1 這是你 emufs.sys 的位置
      PS.2 這是要把哪個 Linux 的目錄掛上 DOS session
           如果是 "/" 就是把 linux 從根目錄以下都掛在模擬的 DOS 視窗
           如果不掛上 linux 的檔區 可以把 / 改為 /cdrom 也是可以
      PS.3 "R" 是唯讀 可以不加

    4.重新啟動 dosemu 後 看一下 應該已經 可以使用了 以我的例子
      是 D:\ 已經變成 LINUX 根目錄了 而 D:\CDROM 就是光碟囉

[NORMAL]
    那附註我的部份 config.sys 相信大家都會寫   ps.算我無聊好了 :)
c:\config.sys

BUFFERS=45
FILES=80
DOS=UMB,HIGH
LASTDRIVE=Z
FCBS=16,8
device=a:emufs.sys /dosc
rem 上面設定 C: 為 DOS partition /dosc 為 linux 下 dos 路徑
device=a:\emufs.sys /
rem 設定 D: 為 linux 根目錄
device=a:\ems.sys 4096
rem 設定要有 4096 的 EMS

九.IPX 網路 使用的方法..
你有 NOVELL or netware lite server 的 ethernet 網路
都記得先設定 /etc/rc.d/rc.inet1 這個檔案! 而且 KERNEL 要支援
IPX 以及你所擁有的網路卡 敝人的設定如下
#! /bin/sh
#
# rc.inet1      This shell script boots up the base INET system.
#
# Version:      @(#)/etc/rc.d/rc.inet1  1.01    05/27/93
#

HOSTNAME=`cat /etc/HOSTNAME`

# Attach the loopback device.
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0

# IF YOU HAVE AN ETHERNET CONNECTION, use these lines below to
configure the 
# eth0 interface. If you're only using loopback or SLIP, don't include
the
# rest of the lines in this file.

# Edit for your setup.
IPADDR="192.72.72.219"  # REPLACE with YOUR IP address!
NETMASK="255.255.255.0" # REPLACE with YOUR netmask!
NETWORK="192.72.72.0"   # REPLACE with YOUR network address!
BROADCAST="192.72.72.255"       # REPLACE with YOUR broadcast address,
if you
                        # have one. If not, leave blank and edit
below.
GATEWAY="192.72.72.219" # REPLACE with YOUR gateway address!

# Uncomment ONLY ONE of the three lines below. If one doesn't work,
try again.
# /sbin/ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast
${BROADCAST}
/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask
${NETMASK}
# /sbin/ifconfig  eth0 ${IPADDR} netmask ${NETMASK} 

# Uncomment these to set up your IP routing table.
/sbin/route add -net ${NETWORK} netmask ${NETMASK}
/sbin/route add default gw ${GATEWAY} metric 1

# End of rc.inet1

一.如果把 dosemu.conf 的設定如下
ipxsupport off
#
#    Enable Novell 8137->raw 802.3 translation hack in new packet
driver.
#pktdriver novell_hack

那麼進入 DOSEMU 後
1.NOVELL 可以執行
LSL
PDIPX   <-----這個 dosemu 有附贈 剛剛製坐開機檔時 應該已經 copy 到
A:了
NETX
進入網路

2.NETWARE LITE 可以執行
LSL
PDIPX
CLIENT
NET

十.在 DOSEMU 跑 MS-WINDOWS 的方法

1.  Get DOSEMU & the Linux source distributions.
    當然先要有 DOSEMU 0.58 以後的版本才有支援跑 ms-windows
2.  Unpack DOSEMU.
    將 DOSEMU 解壓縮
3.  Uncomment the toplevel Makefile around line 21 so that it
    sets REQUIRES_EMUMODULE = -DREQUIRE_EMUMODLE.
    將 Makefile 第二十一行的"#"註解拿掉
4.  Compile DOSEMU typing 'make itall'.
    編譯時 make itall 編譯
5.  Load the emumodule using the included load_module.sh script.
6.  Get the WINOS2.ZIP distribution from tsx-11.mit.edu
            ^^^^^^^^^好像有點問題 應該是 OS2WIN31.ZIP 才對
7.  Unpack the WINOS2 files into your WINDOWS\SYSTEM directory.
    把 WINOS2.ZIP 解壓縮 並且 copy 到 ^^^^^^^^^^^^^^
    (Infact you only need WINDOWS/SYSTEM/os2k386.exe)
8.  Startup dosemu (make certain that DPMI is set to a value such as
4096)
    執行 DOSEMU （首先必須確定 DPMI 要設定 例如設定 4096)
9.  Copy the file winemu.bat to your c: drive.
    將 /dosemu???/dpmi/winemu.bat 拷貝到你的 windows 目錄下
並且適當的修改
    ps.如果你的 windows 在 c:\windows 目錄 那就不用改了
11. Cross your fingers.
    執行 winemu.bat 吧..

＠版權聲明 :
如果您覺的轉載,引用這篇文章,可以使更多人得到幫助,歡迎您任意引＠
＠用在,各 BBS 網路以及,NEWS
討論區,但需要保留全文引用,另如要引用至商業用途＠
＠請徵得本人同意 , 如果不幸的,您用了筆者的方法使的電腦掛了...
咳..概不負責＠
＠有寫錯的地方歡迎來信指正 e-mail:[email-masked] <Marx JS>
熊哥  ＠
＠ BBS ADDRESS 123:400/8@freedom_net 90:1013/8@90_net
11:28/700@IDN-net   ＠
＠ 92:400/600@Power_net 6:722/315@Fido 99:600/600@Game_net
22:400/300@Tr_ ＠
＠ 20:400/802@DK_net 其他忘記了　:Q       03.14.95
＠