个人工具
119.28.94.63
该IP地址的讨论
登录
查看“UbuntuHelp:DOSBox”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:DOSBox”的源代码
来自Ubuntu中文
←
UbuntuHelp:DOSBox
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/DOSBox}} {{Languages|UbuntuHelp:DOSBox}} Parent: [[UbuntuHelp:Games]] === What is DOSBox? === [[UbuntuHelp:DOSBox|DOSBox]] is a free, open-source cross-platform MS-DOS emulator that uses the SDL library. It emulates CPU:286/386 realmode/protected mode, Directory FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, and SoundBlaster/Gravis Ultra Sound cards. Thus, it is possible to run many programs originally written for MS-DOS in Linux with [[UbuntuHelp:DOSBox|DOSBox]]. The emulator has been largely developed for use with old games, but it may be possible to use [[UbuntuHelp:DOSBox|DOSBox]] to run other MS-DOS applications. The [[UbuntuHelp:DOSBox|DOSBox]] project maintains a [http://dosbox.sourceforge.net/comp_list.php?letter=a list of compatible games]. To run more recent applications developed for Windows, use [[UbuntuHelp:Wine|Wine]]. === Installation === You will need to enable the Universe repositories (see [[UbuntuHelp:AddingRepositoriesHowto|AddingRepositoriesHowto]]), update, and install the <code><nowiki>dosbox</nowiki></code> package. === Running [[UbuntuHelp:DOSBox|DOSBox]] === === Starting [[UbuntuHelp:DOSBox|DOSBox]] === [[UbuntuHelp: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 [[UbuntuHelp:DOSBox|DOSBox]]. === Running MS-DOS Programs inside [[UbuntuHelp:DOSBox|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. [[UbuntuHelp: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. In practice, this means we must create a directory which can serve as a virtual <code><nowiki> C:\ </nowiki></code> drive for [[UbuntuHelp: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. '') In a regular terminal, (NOT [[UbuntuHelp:DOSBox|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 [[UbuntuHelp:DOSBox|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 [[UbuntuHelp:DOSBox|DOSBox]]. You can now run any DOS programs in that directory in [[UbuntuHelp:DOSBox|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 [[UbuntuHelp:DOSBox|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 [[UbuntuHelp:DOSBox|DOSBox]], consult the [http://dosbox.sourceforge.net/wiki/index.php?page=Internal+Programs%2FMount manual page] for that command. '' Note that many of the examples on the official [[UbuntuHelp:DOSBox|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 [[UbuntuHelp:DOSBox|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 [[UbuntuHelp:DOSBox|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 [[UbuntuHelp:DOSBox|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%2FImgMount its manual page] '' Note that many of the examples on the official [[UbuntuHelp:DOSBox|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.'' ---- [[category:CategoryGames]] [[category:CategoryDocumentation]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:DOSBox
。