mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-26 21:30:55 +08:00
Merge pull request #28782 from lkxed/20230305-0-Install-DOSBox-in-Ubuntu-to-Play-Retro-Games
[手动选题][tech]: 20230305.0 ⭐️ Install DOSBox in Ubuntu to Play Retro Games.md
This commit is contained in:
commit
13d4dba125
@ -0,0 +1,155 @@
|
|||||||
|
[#]: subject: "Install DOSBox in Ubuntu to Play Retro Games"
|
||||||
|
[#]: via: "https://itsfoss.com/ubuntu-dosbox/"
|
||||||
|
[#]: author: "Sagar Sharma https://itsfoss.com/author/sagar/"
|
||||||
|
[#]: collector: "lkxed"
|
||||||
|
[#]: translator: " "
|
||||||
|
[#]: reviewer: " "
|
||||||
|
[#]: publisher: " "
|
||||||
|
[#]: url: " "
|
||||||
|
|
||||||
|
Install DOSBox in Ubuntu to Play Retro Games
|
||||||
|
======
|
||||||
|
|
||||||
|
DOSBox is free and open-source software that allows you to emulate the MS-DOS operating systems from the previous century.
|
||||||
|
|
||||||
|
Why would you want that? For nostalgia as it allows you to play the 8-bit games that were popular in the 80s and 90s.
|
||||||
|
|
||||||
|
That includes legendary games like Mario, Contra, DOOM, etc.
|
||||||
|
|
||||||
|
Sounds good? Let me walk you through how you can install DOSBox on Ubuntu. I will also show how you can install and play retro games.
|
||||||
|
|
||||||
|
**Dosbox is also available in other Linux distributions. Apart from the installation, the rest of the instructions should be valid for all distros.**
|
||||||
|
|
||||||
|
✋🏻
|
||||||
|
|
||||||
|
DOS was primarily command line based operating system. Using DOSbox requires using the terminal.
|
||||||
|
|
||||||
|
### Installing DOSBox on Ubuntu
|
||||||
|
|
||||||
|
The DOSBox package is available in [the universe repository][1]. Which should already be enabled so DOSBox can be installed using the following command:
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo apt install dosbox
|
||||||
|
```
|
||||||
|
|
||||||
|
Once done, start the DOSBox from the system menu.
|
||||||
|
|
||||||
|
Alternatively, you can use the terminal for the same:
|
||||||
|
|
||||||
|
```
|
||||||
|
dosbox
|
||||||
|
```
|
||||||
|
|
||||||
|
**The first run is essential as it will create a configuration file for us. Actually, there is nothing to do on the first launch as it creates the configuration file.**
|
||||||
|
|
||||||
|
So close the DOSBox by executing `exit` on the DOSBox terminal:
|
||||||
|
|
||||||
|
```
|
||||||
|
exit
|
||||||
|
```
|
||||||
|
|
||||||
|
![][2]
|
||||||
|
|
||||||
|
If you want to tweak the configuration, the file is located at `~/.dosbox/dosbox-[version].conf`.
|
||||||
|
|
||||||
|
Using this configuration, you can tweak almost everything, like entering full screen when you start DOSBox, changing cores, etc.
|
||||||
|
|
||||||
|
But enabling the full screen made things worse (for me) and had to log back in to get to the default:
|
||||||
|
|
||||||
|
![full screen error on DOSBox][3]
|
||||||
|
|
||||||
|
**So know what you are doing or leave the config to default.**
|
||||||
|
|
||||||
|
### Install games on DOSBox
|
||||||
|
|
||||||
|
You can access hundreds of popular games from the software library of the internet archive.
|
||||||
|
|
||||||
|
[Download games from Internet Archive][4]
|
||||||
|
|
||||||
|
Each game comes in its own zip file containing .exe file. Download the ones you like.
|
||||||
|
|
||||||
|
Next, [create a new directory][5] named `dosbox` inside your home directory and also make directories for the games you have downloaded:
|
||||||
|
|
||||||
|
```
|
||||||
|
mkdir ~/dosbox && cd ~/dosbox
|
||||||
|
mkdir [game_name]
|
||||||
|
```
|
||||||
|
|
||||||
|
I have downloaded Mario. You can name the directories anything. There is no rules here., It's for organizing games. That's it.
|
||||||
|
|
||||||
|
![create a directory in linux][6]
|
||||||
|
|
||||||
|
Now, extract the `.zip` file to the `dosbox` directory that you've just created:
|
||||||
|
|
||||||
|
![extract file to the dosbox directory][7]
|
||||||
|
|
||||||
|
You can do the same [using the unzip command][8] in the terminal if you want:
|
||||||
|
|
||||||
|
```
|
||||||
|
unzip ~/Downloads/MARIO.zip -d ~/dosbox/mario/
|
||||||
|
```
|
||||||
|
|
||||||
|
Once you are done, start DOSBox:
|
||||||
|
|
||||||
|
```
|
||||||
|
dosbox
|
||||||
|
```
|
||||||
|
|
||||||
|
Next, mount the game to the virtual C drive:
|
||||||
|
|
||||||
|
```
|
||||||
|
mount c ~/dosbox/mario
|
||||||
|
```
|
||||||
|
|
||||||
|
![mount the game to the virtual C drive][9]
|
||||||
|
|
||||||
|
Now, switch to the virtual C drive:
|
||||||
|
|
||||||
|
```
|
||||||
|
c:
|
||||||
|
```
|
||||||
|
|
||||||
|
![switch to the virtual drive C][10]
|
||||||
|
|
||||||
|
And finally, start the game by typing the filename of the game:
|
||||||
|
|
||||||
|
```
|
||||||
|
mario
|
||||||
|
```
|
||||||
|
|
||||||
|
And enjoy the game.
|
||||||
|
|
||||||
|
![play mario on Ubuntu][11]
|
||||||
|
|
||||||
|
### Want more retro stuff?
|
||||||
|
|
||||||
|
If you have an old system or a Raspberry Pi that you are not using anymore, you can turn that machine into a retro gaming console. There are various Linux projects just for this purpose.
|
||||||
|
|
||||||
|
And why stop at games? You can get the vintage computer terminals back as well.
|
||||||
|
|
||||||
|
I hope you will find this guide helpful. How do you game on Linux? Let me know in the comments.
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
via: https://itsfoss.com/ubuntu-dosbox/
|
||||||
|
|
||||||
|
作者:[Sagar Sharma][a]
|
||||||
|
选题:[lkxed][b]
|
||||||
|
译者:[译者ID](https://github.com/译者ID)
|
||||||
|
校对:[校对者ID](https://github.com/校对者ID)
|
||||||
|
|
||||||
|
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||||
|
|
||||||
|
[a]: https://itsfoss.com/author/sagar/
|
||||||
|
[b]: https://github.com/lkxed/
|
||||||
|
[1]: https://itsfoss.com/ubuntu-repositories/
|
||||||
|
[2]: https://itsfoss.com/content/images/2023/02/run-DOSBox-on-ubuntu.png
|
||||||
|
[3]: https://itsfoss.com/content/images/2023/02/full-screen-error-on-DOSBox.png
|
||||||
|
[4]: https://archive.org/details/softwarelibrary_msdos_games?tab=collection&ref=its-foss
|
||||||
|
[5]: https://itsfoss.com/make-directories/
|
||||||
|
[6]: https://itsfoss.com/content/images/2023/02/create-a-directory-in-linux--1.png
|
||||||
|
[7]: https://itsfoss.com/content/images/2023/02/extract-file-to-the-dosbox-directory-1.png
|
||||||
|
[8]: https://learnubuntu.com/unzip-file/?ref=its-foss
|
||||||
|
[9]: https://itsfoss.com/content/images/2023/02/mount-the-game-to-the-virtual-C-drive.png
|
||||||
|
[10]: https://itsfoss.com/content/images/2023/02/switch-to-the-virtual-drive-C.png
|
||||||
|
[11]: https://itsfoss.com/content/images/2023/02/play-mario-on-Linux.gif
|
Loading…
Reference in New Issue
Block a user