Dos Emulator for Ubuntu 8.04 Desktop LTS

Asked by adi hartono

I want to run dos application at my Ubuntu 8.04 Desktop LTS, is there any dos emulator for run my dos application ?

How to get start it ?

Need Help, thanks for reply

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
adi hartono
Solved:
Last query:
Last reply:
Revision history for this message
Murali Krishna Marimekala (murali-marimekala) said :
#1

Hi Adi,

Try using DOSBOX dos emulator.

Here is the procedure to follow http://ubuntu-tutorials.com/2006/12/25/dos-emulation-with-dosbox-get-your-old-school-game-on/

Please let me know if you have any problems.

Thanks for posting your query,

Murali

Revision history for this message
adi hartono (rodnick-2008) said :
#2

Thanks Murali,

I already download the dosbox emulator 0.72 , but how to install the doxbox emulator ? Any steps for running this emulator ?

Thanks.

Revision history for this message
adi hartono (rodnick-2008) said :
#3

The dosbox i download and save it in my user folder at drive c:

This the command line i typed at terminal :
adi@adi-desktop:~$ sudo apt-get install dosbox
[sudo] password for adi:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package dosbox
adi@adi-desktop:~$

Revision history for this message
Murali Krishna Marimekala (murali-marimekala) said :
#4

If you are connected to the internet the easiest way to install dosbox in Ubuntu would to be to allow Synaptic to get the source file from the repositories and install.

Click System
Click Administration
Click Synaptic Package Manager
Enter your password
Click Search
Type dosbox in the search box and press enter - wait for results to appear
Click the selection box in front of DosBox
Check Mark for Installation
Click Apply
Click the Apply button in the window that just popped up
When prompted click the close button

DosBox is now installed.

Revision history for this message
Murali Krishna Marimekala (murali-marimekala) said :
#5

If you are connected to the internet the easiest way to install dosbox in Ubuntu would to be to allow Synaptic to get the source file from the repositories and install.

Click System
Click Administration
Click Synaptic Package Manager
Enter your password
Click Search
Type dosbox in the search box and press enter - wait for results to appear
Click the selection box in front of DosBox
Check Mark for Installation
Click Apply
Click the Apply button in the window that just popped up
When prompted click the close button

DosBox is now installed.

After installation, follow this link to run your dos application by manually mounting your windows c drive https://help.ubuntu.com/community/DOSBox

Please let me know if you face any problem

-Murali Marimekala

Revision history for this message
adi hartono (rodnick-2008) said :
#6

Thanks Murali, as you instructed. I unpack the dosbox by using Synaptic Package Manager.
Then i run "sudo aptitude install dosbox". And it progress later with these command line :

The following NEW packages will be installed:
  dosbox libmikmod2 libsdl-net1.2 libsdl-sound1.2 libsmpeg0
0 packages upgraded, 5 newly installed, 0 to remove and 237 not upgraded.
Need to get 1157kB of archives. After unpacking 3346kB will be used.
Do you want to continue? [Y/n/?]

After i continue it appears this command line :
Writing extended state information... Done
Err http://th.archive.ubuntu.com hardy/universe libsdl-net1.2 1.2.7-2
  Could not resolve 'th.archive.ubuntu.com'
Err http://th.archive.ubuntu.com hardy/main libmikmod2 3.1.11-a-6ubuntu3
  Could not resolve 'th.archive.ubuntu.com'
Err http://th.archive.ubuntu.com hardy/main libsmpeg0 0.4.5+cvs20030824-2
  Could not resolve 'th.archive.ubuntu.com'
Err http://th.archive.ubuntu.com hardy/universe libsdl-sound1.2 1.0.1-12build2
  Could not resolve 'th.archive.ubuntu.com'
Err http://th.archive.ubuntu.com hardy/universe dosbox 0.72-1.1build1
  Could not resolve 'th.archive.ubuntu.com'
E: Failed to fetch http://th.archive.ubuntu.com/ubuntu/pool/universe/s/sdl-net1.2/libsdl-net1.2_1.2.7-2_amd64.deb: Could not resolve 'th.archive.ubuntu.com'
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Building tag database... Done

Revision history for this message
adi hartono (rodnick-2008) said :
#7

Murali, I still couldn't use the dosbox

Need help

Thanks

Revision history for this message
adi hartono (rodnick-2008) said :
#8

This the error line while i type "sudo apt-get install dosbox"

adi@adi-desktop:~$ sudo apt-get install dosbox
[sudo] password for adi:
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

How to solve it ?
Thanks

Revision history for this message
adi hartono (rodnick-2008) said :
#9

Please is there anyone can solve my problem ?

I need this dos box to run my dos application such like Clipper, Fox-Pro and D-Base. Our database use old program under dos.

Thanks in advance.

Revision history for this message
Murali Krishna Marimekala (murali-marimekala) said :
#10

Hi Adi,

Once you have installed dosbox using Synaptic Package manager there is no need to run "sudo aptitude install dosbox" command line.

Sorry If I might have confused you by telling two procedures ( one using command line and one using synaptic package manager).

Now , you need to execute

 $ mkdir ~/dos/c

which will create the /dos/c directory in your home directory. To have DOSBox use this as its C:\ drive, execute the following command in DOSBox:

$mount c /home/yourusername/dos/c

yourusername - It depends on your username

This makes the contents of ~/dos/c/ the contents of the virtual C:\ drive in DOSBox. You can now run any DOS programs in that directory in DOSBox. If those DOS programs are self-contained executables, it's enough simply to copy them onto a suitable sub-directory in ~/dos/c and run them within DOSBox.

 Note that many of the examples on the official DOSBox will seem to be specific to MS-DOS or Windows. Where you see a Windows-type path like C:\OLDGAMES , simply read a Linux-style path. The result of the commands should be the same.

Hope this helps you.

Let me know if you have any problem.

-Murali Marimekala

Revision history for this message
adi hartono (rodnick-2008) said :
#11

Getting confused again :(

I type as you instructed at terminal

$mount c /home/adi/dos/c

then the answered is : only root can do that

the command line like these :

adi@adi-desktop:~$ mount c /home/adi/dos/c
mount: only root can do that

Need help bro... Thanks.

Revision history for this message
adi hartono (rodnick-2008) said :
#12

I tried type dosbox at terminal and it succed

The dialog box of dos appear, with Z:\>

But how can we mount at the linux root directory ?

Need Help, thanks so much.....

Revision history for this message
Murali Krishna Marimekala (murali-marimekala) said :
#13

Hi Adi,

If it says only root can do then you need to login as root (super user).

For that in terminal type

$su
Enter root password : .... Enter your root password here.

Now you will be a super user...

Now try the mount command.
$ mount c /home/adi/dos/c

I didnt get what dos directory appears as z:/>.... for this
you can try

$mount z /home/adi/dos/c

which will mount your z directory to /home/adi/dos/c

once this is done you can copy your application to /home/adi/dos/c and execute your dos application.

Please lemme know if you face any problem.

Murali Marimekala

Revision history for this message
adi hartono (rodnick-2008) said :
#14

Thanks Murali !

Job Welldone ! Thanks very much.

Now i can run my dos application and dos game via Ubuntu 8.04.

Case Close :)

Revision history for this message
Murali Krishna Marimekala (murali-marimekala) said :
#15

Thats really cool !!! you did it :) .. Welcome.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#16

@ adi please tell
"... I need this dos box to run my dos application such like Clipper, Fox-Pro and D-Base. Our database use old program under dos. ..."
Are you developer or simple a user for Clipper app...?

Thank you