Advertisement
caglartoklu

Installing and Configuring DOSBox on Ubuntu

May 11th, 2011
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.68 KB | None | 0 0
  1. # Installing and Configuring DOSBox on Ubuntu
  2. # written by Çağlar Toklu
  3. # http://twitter.com/caglartoklu
  4.  
  5. # DOSBox is a great emulator to run old DOS games
  6. # and applications.
  7. # Tested on Ubuntu 11.04 with DOSBox 0.74 but
  8. # it should work on other distros too.
  9.  
  10. # This code snippet runs on a fresh install of DOSBox
  11. # since it appends lines to DOSBox configuration file.
  12.  
  13. # First, open your shell(terminal) and type
  14. sudo apt-get install dosbox
  15. # to install DOSBox.
  16.  
  17. # Now type
  18. dosbox
  19. # so that DOSBox runs and creates the profile directory
  20. # as ~/.dosbox and creates a file as dosbox-0.74.conf in it.
  21. # Note that different versions of DOSBox will have
  22. # a different name.
  23.  
  24. # Now just type
  25. exit
  26. # in DOSBox to exit from DOSBox and return to shell.
  27. # At this point, we have a fresh configuration file.
  28.  
  29. # Now create the directories to contain your DOS system:
  30. mkdir ~/DOS
  31. mkdir ~/DOS/A
  32. mkdir ~/DOS/B
  33. mkdir ~/DOS/C
  34.  
  35. # The last section in the DOSBox configuration file is
  36. # [autoexec].
  37. # We will now add some lines so that the mount operation
  38. # is automatically done when you start DOSBox.
  39. # Run the following code so that you do not have to
  40. # mount these directories everytime:
  41. echo MOUNT A ~/DOS/A >> `ls ~/.dosbox/dosbox-*.conf`
  42. echo MOUNT B ~/DOS/B >> `ls ~/.dosbox/dosbox-*.conf`
  43. echo MOUNT C ~/DOS/C >> `ls ~/.dosbox/dosbox-*.conf`
  44. echo C: >> `ls ~/.dosbox/dosbox-*.conf`
  45.  
  46. # Optional:
  47. # You can add any valid DOSBox command to the end of
  48. # the DOSBox configuration file.
  49. # For example, it can welcome you by "DIR":
  50. echo DIR C:\ >> `ls ~/.dosbox/dosbox-*.conf`
  51.  
  52. # You can find lots of options for DOSBox configuration here:
  53. # http://www.dosbox.com/wiki/Dosbox.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement