个人工具
119.28.94.63
该IP地址的讨论
登录
查看“DOSBox”的源代码 - Ubuntu中文
页面
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“DOSBox”的源代码
来自Ubuntu中文
←
DOSBox
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
=== 什么是 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]]. === Installation === You will need to enable the Universe repositories (see AddingRepositoriesHowto), update, and install the <code><nowiki>dosbox</nowiki></code> package. == Running DOSBox == === 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. === Running MS-DOS Programs inside DOSBox === ==== Mounting Drives and Directories: The " mount " command ==== 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. In practice, this means we must create a directory which can serve as a virtual <code><nowiki> C:\ </nowiki></code> 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 <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: <pre><nowiki> mount c /home/wikiuser/dos/c </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. 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. ''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. '' ==== Mounting Disk Images: the " imgmount " command ==== It is also possible(and in many cases desireable) to mount disk images in DOSBox, using the <code><nowiki> imgmount </nowiki></code> 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: <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. 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.'' === 什么是DOSBox? === 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]]. === 安装 === 你必须打开Universe源(参见[[AddingRepositoriesHowto|如何添加源]]),更新,然后安装DOSBox软件包. == 运行DOSBox == === 开始DOSBox === 可以在终端键入dosbox以运行DOSBox. 这会打开一个类似于终端的窗口, 与Z: \ 提示.这就是DOSBox. === 在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>这会在你的家目录创建一个</nowiki></code> <code><nowiki>/dos/c </nowiki></code>目录. 让DOSBox用这个做为 <code><nowiki>C:\ </nowiki></code> 驱动器, 在DOSBox中执行下列命令: <pre><nowiki> mount c /home/wikiuser/dos/c </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 兼容列表]. 象这样它也可以挂载可移动磁盘,只需用到可移动磁盘的路径替代. DOSBox中mount命令的的进一步用法, 参照该命令的 [http://dosbox.sourceforge.net/wiki/index.php?page=Internal+Programs/Mount 手册页]'' '' ''注意许多例子在官方的DOSBox中具体的对应着MS-DOS或者Windows.当看到一个Windows风格的路径象<code><nowiki>C:\OLDGAMES</nowiki></code> ,简单的理解成linux风格的路径. 这些命令的结果是相同的. '' ==== 挂载磁盘镜像: " imgmount "命令 ==== 在DOSBox有可能(很多情况下是必须的)挂载磁盘镜像,用 <code><nowiki>imgmount </nowiki></code>命令. 最常见的是我们要挂载光盘镜像.在DOSBox中挂载光盘镜像,在DOSBox中执行下列命令: <code><nowiki> imgmount d /path/to/cd/image.iso -t iso </nowiki></code> 对于DOSBox虚拟机这将挂载一个iso文件做为CD-ROM. 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> 文章状态:[[等待校对|等待校对]]
返回至
DOSBox
。