Home
» LINUX
»
Как играть в игры MS-Dos в Linux с DOSBox
Как играть в игры MS-Dos в Linux с DOSBox
Еще в 1980-х годах для получения удовольствия от компьютерной игры вам приходилось использовать MS-DOS. Если вы хотите заново пережить этот опыт старой школы, вы можете использовать DOSBox, чтобы играть в игры MS-Dos в Linux.
Что такое DOSBox? Это сложная среда эмуляции, которая работает на Mac, Linux, Windows и других платформах. Приложение позволяет пользователям наслаждаться MS-DOS, играть в видеоигры MS-DOS и даже запускать программное обеспечение! Вот как им пользоваться.
Установить DOSBox
Before we get into how to use the DOSBox app to play classic MS-DOS games on Linux, you’ll need to install the program to your computer. Fortunately, DOSBox has been around for quite a long time on Linux, and nearly every Linux OS currently in circulation can download and use this tool through a variety of different package formats, including DEB, RPM, or via Snap package, Flatpak, the source code, and others.
To start the installation process, launch a terminal window on your Linux PC using the Ctrl + Alt + T or Ctrl + Shift + T keyboard combination. Then, look below to the command-line instructions that correspond with the Linux operating system you currently use.
Ubuntu
Чтобы получить эмулятор DOSBox в Ubuntu, используйте диспетчер пакетов Apt и установите пакет «DOSBox».
sudo apt установить dosbox
Debian
Нужен эмулятор DOSBox в Debian Linux? Попробуйте выполнить следующую команду Apt-get . Однако имейте в виду, что версия DOSBox в репозитории пакетов Debian может быть устаревшей по сравнению с другими операционными системами.
sudo apt-get install dosbox
Хотите более новую версию DOSBox в вашей системе Debian Linux? Подумайте о том, чтобы пропустить этот метод установки в пользу выпуска Snap или Flatpak, поскольку они обновляются с новыми функциями намного быстрее, чем родной Debian.
Arch Linux
The latest release of DOSBox is up on the official Arch Linux software servers. To get it working on your system, use the following Pacman package command in a terminal window.
sudo pacman -S dosbox
Fedora
Fedora Linux users that would like to use DOSBox can install it quickly, as the Fedora project carries it in their software sources. To set up the app on your Fedora system, use the DNF command below.
sudo dnf install dosbox -y
OpenSUSE
On OpenSUSE, DOSBox is installable from the OSS All software repository. Ensure it’s enabled on your system. Then, launch a terminal window and use the Zypper command to get it going.
sudo zypper install dosbox -y
Snap
DOSBox is in the Snap store, which means if you’re a fan of Snaps, you’re in luck! To start the installation, use the snap install command below.
Note: to install DOSBox from the Snap store, you must have the SnapD runtime working. For more information, check out our post on the subject.
sudo snap install dosbox-x
Flatpak
Like many programs these days, DOSBox is on Flathub as a Flatpak. To get it working, use the terminal commands below.
DOSBox requires a little configuration before it’s possible to play games on it. Start the configuration by launching a terminal window (Ctrl + Alt + T or Ctrl + Shift + T). Then, use the mkdir command to create a new folder for MS-DOS games.
mkdir -p ~/dos-games
With the folder made, feel free to close the terminal window. Then, head over to the DOSGames website and grab yourself a game to play (or 2). Don’t worry! They’re free and legal to download! Many of the games on the website are in the public domain, due to copy-write expiration!
Playing a game with DOSBox
After you’ve set up the ~/dos-games folder on your Linux PC and finished downloading an MS-DOS game from DOSGames.com, it’s time to start up the game. To do this, follow the step-by-step instructions below.
Step 1: Launch the Linux file manager and unzip the downloaded DOS game from the ZIP archive.
Step 2: Place the unzipped DOS game files into /home/username/dos-games/.
Step 3: Open up the DOSBox application on your Linux desktop. Or, start it from the terminal with the dosbox command.
Step 4: In DOSBox, run the MOUNT command to access the ~/dos-games folder.
MOUNT c ~/dos-games
Step 5: Use the CD command to change DOS to the C:/ drive which holds all of your MS-DOS video game files.
C:
Step 6: Run the dir command to view the contents of the ~/dos-games directory. Then use CD to move DOS into the video game sub-folder.
dir
cd ms-dos-game-folder
Step 7: Run dir once again to view the contents of the directory. Then, run SETUP.EXE, or whatever file you need to execute to play the game you’ve downloaded!