Dosbox configuration in Linux

Source: Internet
Author: User
Configuration of dosbox in Linux-general Linux technology-Linux technology and application information. For details, refer to the following section. Install
The installation of dosbox is very simple, and many release versions are available in the source. I used debian and sudo apt-get install dosbox. To compile the source code on sourceforge, download the source code.

Generate configuration file
After installing dosbox or making it yourself, you will not create your own configuration file. Here are two methods to generate the configuration file.

The first method is
Cd % switch to home directory

Cp/usr/share/doc/dosbox/dosbox.conf.example.gz ./
Gunzip dosbox.conf.example.gz
Mv dosbox. conf. example dosbox. conf

The second method is to start dosbox and input the following at the dosbox prompt:

Config-writeconf dosbox. conf

Note: When dosbox is started, it automatically reads the dosbox. conf file in the home directory, instead of the. dosbox. conf file. If it is changed to another name, The dosbox file will not be read automatically.

If you want to hide dosbox. conf and rename it as. dosbox. conf, you can enter the following command when starting dosbox to make it take effect.

Dosbox-conf ~ /. Dosbox. conf

Configure the sound Device
When you use dosbox to play a game, you may see the following prompt:

ALSA: Can't subscribe to MIDI port (65: 0) MIDI: Opened device: oss

This indicates that the default device is alsa, but alsa does not support midi, so oss is enabled. In fact, the game can sound normally, but this error message is annoying and can be eliminated by modifying dosbox. conf.

Open dosbox. conf and find the [MIDI] section.

Mpu401 = intelligent device = default config =

Device = default indicates device = alsa. If we change to device = oss, there will be no error prompts.

Games
When the focus is on dosbox, you can use ctrl + F5 to play the game, but you have to set your own storage directory before.

The default value is the capture directory under the directory where the configuration file is located. If you do not have this directory, an error is returned.

You can also change the configuration file to another directory, open the configuration file, and find

Captures = capture

Here I want to set the directory to the dosbox-capture directory under the directory where the configuration file is located, and change the above line to captures = dosbox-capture. Note that the relative path should be used here, an error is also returned when the absolute path of the directory is given.

In addition to ctrl + F5 is, ctrl and F1-F12 are all functional, at the dosbox prompt, enter intro to see the function of these keys.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.