DOSBox:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Oneleaf留言 | 贡献
新页面: === 什么是 DOSBox? === DOSBox是一个使用SDL库的免费开源跨平台的MS-DOS模拟器。它可以模拟:286/386 CPU的现实和保护模式,/XMS/EMS 文件系统,Tandy/He...
 
Luojie-dune留言 | 贡献
无编辑摘要
第1行: 第1行:
运行windows程序则使用 [[Wine]]


=== 什么是 DOSBox? ===
DOSBox是一个使用SDL库的免费开源跨平台的MS-DOS模拟器。它可以模拟:286/386 CPU的现实和保护模式,/XMS/EMS 文件系统,Tandy/Hercules/CGA/EGA/VGA/VESA 显卡和 SoundBlaster/Gravis Ultra的声卡.因此可以利用DOSBox在linux下运行很多为MS-DOS的程序。这个模拟器主要是为运行老游戏而开发的,但是也可能用DOSBox运行其他的MS-DOS程序。DOSBox计划包括的[http://dosbox.sourceforge.net/comp_list.php?letter=a 兼容游戏表].


要是运行windows程序, 请使用 [[Wine]].
== 什么是 DOSBox? ==
DOSBox是一个使用SDL库的免费开源跨平台的MS-DOS模拟器。它可以模拟:286/386 CPU的现实和保护模式,/XMS/EMS 文件系统,Tandy/Hercules/CGA/EGA/VGA/ VESA 显卡和 SoundBlaster/Gravis Ultra的声卡。


=== Installation ===
You will need to enable the Universe repositories (see AddingRepositoriesHowto), update, and install the <code><nowiki>dosbox</nowiki></code> package.


== Running DOSBox ==
这个模拟器主要是为运行DOS游戏软件而开发的,但是也可能用DOSBox运行其他的MS-DOS程序。
=== Starting DOSBox ===
DOSBox can be run from a terminal by simply typing <code><nowiki> dosbox </nowiki></code>.


This will open up what looks like another terminal window, with a <code><nowiki> Z:\ </nowiki></code> prompt. This is DOSBox.
==参考资料==
DOSBox计划包括的[http://dosbox.sourceforge.net/comp_list.php?letter=a 兼容游戏表].


=== Running MS-DOS Programs inside DOSBox ===
==安装===
==== Mounting Drives and Directories: The " mount " command ====
必须打开Universe源(参见[[AddingRepositoriesHowto|如何添加源]])才会安装<code><nowiki>dosbox</nowiki></code>
Seeing a <code><nowiki> Z:\ </nowiki></code> where one might have expected to see <code><nowiki> C:\ </nowiki></code> or even <code><nowiki> A:\ </nowiki></code> will seem strange to those familiar with MS-DOS and command.com.


DOSBox does not have a <code><nowiki> C:\ </nowiki></code> drive enabled by default. To give it one, we must ''mount'' one onto the virtual machine.
== 运行DOSBox ==
=== 终端===
DOSBox<code><nowiki> dosbox </nowiki></code>.
启动后出现的提示为
<code><nowiki> Z:\ </nowiki></code>  


In practice, this means we must create a directory which can serve as a virtual <code><nowiki> C:\ </nowiki></code> drive for DOSBox.
=== 将软件运行在DOSBox中 ===
==== 挂载驱动器和文件夹: " mount "命令 ====
看到Z: \ 那些熟悉MS-DOS 和command.com准备看C: \ 甚至A: \ 将会感到奇怪. 默认情况下DOSBox并没有开启C:\.如果要给一个,我们必须在虚拟机挂载一个. 实际上, 这意味着我们必须为DOSBox创建一个可以做为C:\的目录.''''' '''''


('' '''N.B.''' In the following examples, and throughout this document, we are assuming a user named "wikiuser". Replace that user-name with yours. '')
('' '''N.B.''' 在接下来的例子中,在整个文档中, 我们假定一个用户叫做"wikiuser". 用你的用户名代替这个. '')


In a regular terminal, (NOT DOSBox), you can execute
在一个常规窗口, (不是DOSBox), <code><nowiki>你可以执行</nowiki></code>


<code><nowiki> $ mkdir ~/dos/c </nowiki></code>
<code><nowiki> $ mkdir ~/dos/c </nowiki></code>


which will create the <code><nowiki> /dos/c </nowiki></code> directory in your home directory. To have DOSBox use this as its <code><nowiki> C:\ </nowiki></code> drive, execute the following command in DOSBox:
<code><nowiki>这会在你的家目录创建一个</nowiki></code> <code><nowiki>/dos/c </nowiki></code>目录. 让DOSBox用这个做为 <code><nowiki>C:\ </nowiki></code> 驱动器, 在DOSBox中执行下列命令:


<pre><nowiki>
<pre><nowiki>
mount c /home/wikiuser/dos/c
mount c /home/wikiuser/dos/c
</nowiki></pre>
</nowiki></pre>
This makes the contents of <code><nowiki> ~/dos/c/ </nowiki></code> the contents of the virtual <code><nowiki> C:\ </nowiki></code> drive in DOSBox. You can now run any DOS programs in that directory in DOSBox. If those DOS programs are self-contained executables, it's enough simply to copy them onto a suitable sub-directory in <code><nowiki> ~/dos/c </nowiki></code> and run them within DOSBox. For other programs, you may need to run their installers. Consult the [http://dosbox.sourceforge.net/comp_list.php?letter=a compatibility list] for details for each one.
DOSBox会将<code><nowiki> ~/dos/c/ </nowiki></code>的内容做为虚拟<code><nowiki>C:\</nowiki></code>. 在DOSBox里你可以在该文件夹下运行任何的DOS程序. 如果这些DOS程序是独立的可执行文件,仅仅需要把它们复制到~/dos/c的子目录下并在DOSBox内运行它们.对于另外的程序,你可能需要它们的安装程序.每一个的详情可以参阅[http://dosbox.sourceforge.net/comp_list.php?letter=a 兼容列表].


It is also possible to mount removeable disks in this way; simply specify the path to the removeable disk instead.
象这样它也可以挂载可移动磁盘,只需用到可移动磁盘的路径替代.


For a more technical discussion of the mount command in DOSBox, consult the [http://dosbox.sourceforge.net/wiki/index.php?page=Internal+Programs/Mount manual page] for that command.
DOSBox中mount命令的的进一步用法, 参照该命令的 [http://dosbox.sourceforge.net/wiki/index.php?page=Internal+Programs/Mount 手册页]'' ''


''Note that many of the examples on the official DOSBox will seem to be specific to MS-DOS or Windows. Where you see a Windows-type path like <code><nowiki> C:\OLDGAMES </nowiki></code> , simply read a Linux-style path. The result of the commands should be the same. ''
''注意许多例子在官方的DOSBox中具体的对应着MS-DOS或者Windows.当看到一个Windows风格的路径象<code><nowiki>C:\OLDGAMES</nowiki></code> ,简单的理解成linux风格的路径. 这些命令的结果是相同的. ''


==== Mounting Disk Images: the " imgmount " command ====
==== 挂载磁盘镜像: " imgmount "命令 ====
It is also possible(and in many cases desireable) to mount disk images in DOSBox, using the <code><nowiki> imgmount </nowiki></code> command.
在DOSBox有可能(很多情况下是必须的)挂载磁盘镜像,<code><nowiki>imgmount </nowiki></code>命令.


Most commonly, this is used to mount CD-ROM images. To mount a CD-ROM image in DOSBox, execute the following command in DOSBox:
最常见的是我们要挂载光盘镜像.在DOSBox中挂载光盘镜像,在DOSBox中执行下列命令:


<code><nowiki> imgmount d /path/to/cd/image.iso -t iso </nowiki></code>
<code><nowiki> imgmount d /path/to/cd/image.iso -t iso </nowiki></code>


This will mount an .iso to the DOSBox virtual machine as a CD-ROM.
对于DOSBox虚拟机这将挂载一个iso文件做为CD-ROM.


A more technical discussion of the imgmount command can be found at [http://dosbox.sourceforge.net/wiki/index.php?page=Internal+Programs/ImgMount its manual page]
imgmount命令进阶可以参看它的[http://dosbox.sourceforge.net/wiki/index.php?page=Internal+Programs/ImgMount 手册页]


''Note that many of the examples on the official DOSBox will seem to be specific to MS-DOS or Windows. Where you see a Windows-type path like <code><nowiki> C:\OLDGAMES </nowiki></code> , simply read a Linux-style path. The result of the commands should be the same.''
''注意许多例子在官方的DOSBox中具体的对应着MS-DOS或者Windows.当看到一个Windows风格的路径象<code><nowiki>C:\OLDGAMES</nowiki></code> ,简单的理解成linux风格的路径. 这些命令的结果是相同的.''
==== " mount " 命令 ====
Seeing a <code><nowiki> Z:\ </nowiki></code> where one might have expected to see <code><nowiki> C:\ </nowiki></code> or even <code><nowiki> A:\ </nowiki></code> will seem strange to those familiar with MS-DOS and command.com.


=== 什么是DOSBox? ===
DOSBox does not have a <code><nowiki> C:\ </nowiki></code> drive enabled by default. To give it one, we must ''mount'' one onto the virtual machine.
DosBox是一个应用SDL库,自由,跨平台的MS-DOS模拟器.它模拟CPU:286/386 实时/保护模式,Directory FileSystem/XMS/EMS,Tandy/Hercules/CGA/VGA/VESA图形显示,还有 SoundBlaster/Gravis Ultra 声卡.因此,可以在Linux用DOSBox运行很多原生的MS-DOS. 这个模拟器在很大程度上是为了玩很多老游戏,但是也可以用DOSBox运行其它的MS-DOS程序.DOSBox项目包括一份[http://dosbox.sourceforge.net/comp_list.php?letter=a 兼容游戏列表]. 运行最近的Windows程序,请用[[Wine]].


=== 安装 ===
In practice, this means we must create a directory which can serve as a virtual <code><nowiki> C:\ </nowiki></code> drive for DOSBox.
你必须打开Universe源(参见[[AddingRepositoriesHowto|如何添加源]]),更新,然后安装DOSBox软件包.


== 运行DOSBox ==
('' '''N.B.''' In the following examples, and throughout this document, we are assuming a user named "wikiuser". Replace that user-name with yours. '')
=== 开始DOSBox ===
可以在终端键入dosbox以运行DOSBox.


这会打开一个类似于终端的窗口, 与Z: \ 提示.这就是DOSBox.
In a regular terminal, (NOT DOSBox), you can execute
 
=== 在DOSBox内运行MS-DOS程序 ===
==== 挂载驱动器和文件夹: " mount "命令 ====
看到Z: \ 那些熟悉MS-DOS 和command.com准备看C: \ 甚至A: \ 将会感到奇怪. 默认情况下DOSBox并没有开启C:\.如果要给一个,我们必须在虚拟机挂载一个. 实际上, 这意味着我们必须为DOSBox创建一个可以做为C:\的目录.''''' '''''
 
('' '''N.B.''' 在接下来的例子中,在整个文档中, 我们假定一个用户叫做"wikiuser". 用你的用户名代替这个. '')
 
在一个常规窗口, (不是DOSBox), <code><nowiki>你可以执行</nowiki></code>


<code><nowiki> $ mkdir ~/dos/c </nowiki></code>
<code><nowiki> $ mkdir ~/dos/c </nowiki></code>


<code><nowiki>这会在你的家目录创建一个</nowiki></code> <code><nowiki>/dos/c </nowiki></code>目录. 让DOSBox用这个做为 <code><nowiki>C:\ </nowiki></code> 驱动器, 在DOSBox中执行下列命令:
which will create the <code><nowiki> /dos/c </nowiki></code> directory in your home directory. To have DOSBox use this as its <code><nowiki> C:\ </nowiki></code> drive, execute the following command in DOSBox:


<pre><nowiki>
<pre><nowiki>
mount c /home/wikiuser/dos/c
mount c /home/wikiuser/dos/c
</nowiki></pre>
</nowiki></pre>
DOSBox会将<code><nowiki> ~/dos/c/ </nowiki></code>的内容做为虚拟<code><nowiki>C:\</nowiki></code>. 在DOSBox里你可以在该文件夹下运行任何的DOS程序. 如果这些DOS程序是独立的可执行文件,仅仅需要把它们复制到~/dos/c的子目录下并在DOSBox内运行它们.对于另外的程序,你可能需要它们的安装程序.每一个的详情可以参阅[http://dosbox.sourceforge.net/comp_list.php?letter=a 兼容列表].
This makes the contents of <code><nowiki> ~/dos/c/ </nowiki></code> the contents of the virtual <code><nowiki> C:\ </nowiki></code> drive in DOSBox. You can now run any DOS programs in that directory in DOSBox. If those DOS programs are self-contained executables, it's enough simply to copy them onto a suitable sub-directory in <code><nowiki> ~/dos/c </nowiki></code> and run them within DOSBox. For other programs, you may need to run their installers. Consult the [http://dosbox.sourceforge.net/comp_list.php?letter=a compatibility list] for details for each one.


象这样它也可以挂载可移动磁盘,只需用到可移动磁盘的路径替代.
It is also possible to mount removeable disks in this way; simply specify the path to the removeable disk instead.


DOSBox中mount命令的的进一步用法, 参照该命令的 [http://dosbox.sourceforge.net/wiki/index.php?page=Internal+Programs/Mount 手册页]'' ''
For a more technical discussion of the mount command in DOSBox, consult the [http://dosbox.sourceforge.net/wiki/index.php?page=Internal+Programs/Mount manual page] for that command.


''注意许多例子在官方的DOSBox中具体的对应着MS-DOS或者Windows.当看到一个Windows风格的路径象<code><nowiki>C:\OLDGAMES</nowiki></code> ,简单的理解成linux风格的路径. 这些命令的结果是相同的. ''
''Note that many of the examples on the official DOSBox will seem to be specific to MS-DOS or Windows. Where you see a Windows-type path like <code><nowiki> C:\OLDGAMES </nowiki></code> , simply read a Linux-style path. The result of the commands should be the same. ''


==== 挂载磁盘镜像: " imgmount "命令 ====
==== Mounting Disk Images: the " imgmount " command ====
在DOSBox有可能(很多情况下是必须的)挂载磁盘镜像,<code><nowiki>imgmount </nowiki></code>命令.
It is also possible(and in many cases desireable) to mount disk images in DOSBox, using the <code><nowiki> imgmount </nowiki></code> command.


最常见的是我们要挂载光盘镜像.在DOSBox中挂载光盘镜像,在DOSBox中执行下列命令:
Most commonly, this is used to mount CD-ROM images. To mount a CD-ROM image in DOSBox, execute the following command in DOSBox:


<code><nowiki> imgmount d /path/to/cd/image.iso -t iso </nowiki></code>
<code><nowiki> imgmount d /path/to/cd/image.iso -t iso </nowiki></code>


对于DOSBox虚拟机这将挂载一个iso文件做为CD-ROM.
This will mount an .iso to the DOSBox virtual machine as a CD-ROM.
 
A more technical discussion of the imgmount command can be found at [http://dosbox.sourceforge.net/wiki/index.php?page=Internal+Programs/ImgMount its manual page]
 
''Note that many of the examples on the official DOSBox will seem to be specific to MS-DOS or Windows. Where you see a Windows-type path like <code><nowiki> C:\OLDGAMES </nowiki></code> , simply read a Linux-style path. The result of the commands should be the same.''


imgmount命令进阶可以参看它的[http://dosbox.sourceforge.net/wiki/index.php?page=Internal+Programs/ImgMount 手册页]


''注意许多例子在官方的DOSBox中具体的对应着MS-DOS或者Windows.当看到一个Windows风格的路径象<code><nowiki>C:\OLDGAMES</nowiki></code> ,简单的理解成linux风格的路径. 这些命令的结果是相同的.''


----
----
* [[category:CategoryGames]] [[category:CategoryDocumentation]]
----
----
* 文章来源:官方WIKI<br> 翻译人员:snoopy2556 <br> 校对人员:bentusi<br> 文章状态:[[等待校对|等待校对]]
* 文章来源:官方WIKI<br> 翻译人员:snoopy2556 <br> 校对人员:bentusi<br> 文章状态:[[等待校对|等待校对]]

2010年2月20日 (六) 19:25的版本

运行windows程序则使用 Wine


什么是 DOSBox?

DOSBox是一个使用SDL库的免费开源跨平台的MS-DOS模拟器。它可以模拟:286/386 CPU的现实和保护模式,/XMS/EMS 文件系统,Tandy/Hercules/CGA/EGA/VGA/ VESA 显卡和 SoundBlaster/Gravis Ultra的声卡。


这个模拟器主要是为运行DOS游戏软件而开发的,但是也可能用DOSBox运行其他的MS-DOS程序。

参考资料

DOSBox计划包括的兼容游戏表.

安装=

必须打开Universe源(参见如何添加源)才会安装dosbox

运行DOSBox

终端

DOSBox dosbox . 启动后出现的提示为 Z:\

将软件运行在DOSBox中

挂载驱动器和文件夹: " mount "命令

看到Z: \ 那些熟悉MS-DOS 和command.com准备看C: \ 甚至A: \ 将会感到奇怪. 默认情况下DOSBox并没有开启C:\.如果要给一个,我们必须在虚拟机挂载一个. 实际上, 这意味着我们必须为DOSBox创建一个可以做为C:\的目录.

( N.B. 在接下来的例子中,在整个文档中, 我们假定一个用户叫做"wikiuser". 用你的用户名代替这个. )

在一个常规窗口, (不是DOSBox), 你可以执行

$ mkdir ~/dos/c

这会在你的家目录创建一个 /dos/c 目录. 让DOSBox用这个做为 C:\ 驱动器, 在DOSBox中执行下列命令:

mount c /home/wikiuser/dos/c

DOSBox会将 ~/dos/c/ 的内容做为虚拟C:\. 在DOSBox里你可以在该文件夹下运行任何的DOS程序. 如果这些DOS程序是独立的可执行文件,仅仅需要把它们复制到~/dos/c的子目录下并在DOSBox内运行它们.对于另外的程序,你可能需要它们的安装程序.每一个的详情可以参阅兼容列表.

象这样它也可以挂载可移动磁盘,只需用到可移动磁盘的路径替代.

DOSBox中mount命令的的进一步用法, 参照该命令的 手册页

注意许多例子在官方的DOSBox中具体的对应着MS-DOS或者Windows.当看到一个Windows风格的路径象C:\OLDGAMES ,简单的理解成linux风格的路径. 这些命令的结果是相同的.

挂载磁盘镜像: " imgmount "命令

在DOSBox有可能(很多情况下是必须的)挂载磁盘镜像,用 imgmount 命令.

最常见的是我们要挂载光盘镜像.在DOSBox中挂载光盘镜像,在DOSBox中执行下列命令:

imgmount d /path/to/cd/image.iso -t iso

对于DOSBox虚拟机这将挂载一个iso文件做为CD-ROM.

imgmount命令进阶可以参看它的手册页

注意许多例子在官方的DOSBox中具体的对应着MS-DOS或者Windows.当看到一个Windows风格的路径象C:\OLDGAMES ,简单的理解成linux风格的路径. 这些命令的结果是相同的.

" mount " 命令

Seeing a Z:\ where one might have expected to see C:\ or even A:\ will seem strange to those familiar with MS-DOS and command.com.

DOSBox does not have a C:\ drive enabled by default. To give it one, we must mount one onto the virtual machine.

In practice, this means we must create a directory which can serve as a virtual C:\ drive for DOSBox.

( N.B. In the following examples, and throughout this document, we are assuming a user named "wikiuser". Replace that user-name with yours. )

In a regular terminal, (NOT DOSBox), you can execute

$ mkdir ~/dos/c

which will create the /dos/c directory in your home directory. To have DOSBox use this as its C:\ drive, execute the following command in DOSBox:

mount c /home/wikiuser/dos/c

This makes the contents of ~/dos/c/ the contents of the virtual C:\ drive in DOSBox. You can now run any DOS programs in that directory in DOSBox. If those DOS programs are self-contained executables, it's enough simply to copy them onto a suitable sub-directory in ~/dos/c and run them within DOSBox. For other programs, you may need to run their installers. Consult the compatibility list for details for each one.

It is also possible to mount removeable disks in this way; simply specify the path to the removeable disk instead.

For a more technical discussion of the mount command in DOSBox, consult the manual page for that command.

Note that many of the examples on the official DOSBox will seem to be specific to MS-DOS or Windows. Where you see a Windows-type path like C:\OLDGAMES , simply read a Linux-style path. The result of the commands should be the same.

Mounting Disk Images: the " imgmount " command

It is also possible(and in many cases desireable) to mount disk images in DOSBox, using the imgmount command.

Most commonly, this is used to mount CD-ROM images. To mount a CD-ROM image in DOSBox, execute the following command in DOSBox:

imgmount d /path/to/cd/image.iso -t iso

This will mount an .iso to the DOSBox virtual machine as a CD-ROM.

A more technical discussion of the imgmount command can be found at its manual page

Note that many of the examples on the official DOSBox will seem to be specific to MS-DOS or Windows. Where you see a Windows-type path like C:\OLDGAMES , simply read a Linux-style path. The result of the commands should be the same.





  • 文章来源:官方WIKI
    翻译人员:snoopy2556
    校对人员:bentusi
    文章状态:等待校对