Play Old DOS Games in Ubuntu To Nurture Your Command Line Adoption
May 30th, 2008 | Category: Linux, UbuntuAs a relatively new Linux/Ubuntu user I’ve had my fair share of complications trying to figure things out. Despite the wide variety of wonderful graphical user interface (GUI) tools available to us as Linux users, getting things done through a command line interface (CLI) in the terminal is sometimes the only option to. On one hand, it can be a very rewarding accomplishment, on the other, it can also be a very frustrating roadblock to getting anything done if you are not comfortable interacting with your computer in the mystic realm of text based commands.
If you’ve been using Ubuntu/Linux for any time at all you’ve probably noticed that most tutorials, including the one I posted a little while ago, are usually only composed of terminal commands. You may find yourself avoiding the terminal if you don’t have much experience with it. Unfortunately, your Ubuntu/Linux experience will inevitably suffer as you avoid trying new things. Understanding that the CLI is a powerful working environment in Linux, although not the only one, is important and will help you to get the most out of your experience. That is not to say that you should mercilessly abandon the intuitive visualization that GUIs provide, but rather, nurture your understanding of both environments.
To help get over any insecurities you may have using the terminal, aside from jumping in head-first, I suggest installing a fun little program called DOSBox. DOSBox is an open source MS-DOS emulator used for older computer games and should provide you with a fun and easy way to become more comfortable with text-based commands. On the other hand, if you’re just looking for an easy way to play DOS games, this program is available for Windows and Mac as well.
To install DOSBox enter the following command in the terminal window:
sudo apt-get install -y dosbox
However, if you’re really not comfortable at all with the terminal, the same program can be installed through the Synaptic Package Manager located in the Administration menu (Settings > Administration > Synaptic Package Manager). Just do a search for dosbox and mark it for installation.
After you’ve installed DOSBox you’re going to need a directory to store all of your DOS games. Create it by running the following command in the terminal:
mkdir ~/DOS/
Move any DOS game files/folders you have to that directory and then start DOSBox by typing dosbox in the terminal. Now you’re almost ready to ford that river!
Next, to make the directory your created earlier accessible to DOSBox type the following command in the DOSBox CLI:
mount c ~/DOS/
You can move to the C drive, which you’ve just mounted, by running:
C:
Finally, to launch a game you have to navigate to the executable file which corresponds to that game by entering:
\somedirectory\somegame.exe
Remember, the Windows naming convention uses a backslash to separate directory and filenames as opposed to regular slashes, or forward-slashes, as you will use in Linux.
If you don’t have any DOS games at hand, they can usually be found around the net by practicing a little google-fu. Lastly, don’t be afraid of trying new things, there are plenty of cheat sheets floating around to help you figure out what that command you just entered should have done.
No comments yet. Be the first.
Leave a reply



