Steps For installation...........................
Download DOSBox Emulator for UBUNTU software centre.
Now run command in terminal (ctrl + alt + T )
code:
sudo apt-get install dosbox
When your done installing Dosbox you will now require the turbo C++ installation setup which could be downloaded from here(download).
Unzip the setup zip folder and place the files in home/your-user-name directory (* Necessary)
Now open up Dosbox and Type in the below code (in separate lines):
Code:
mount c ~
c:
cd setup
install.exe
It is the starting of Turbo c++
choose the destination drive as C and source path as SETUP in the Next window.
Now select " start installation window" as like below
Turbo C++ is now installed on Dosbox. You may consider checking it by executing the following code on Dosbox (in separate lines):
Code:
mount c ~
c:
cd TC\bin
tc.exe
Now you have to create configuration file
Run this command in DOSBox to generate the configuration file which will be stored as:/home/user name/dosbox.conf. Ensure you enter your system user-name in place of "your-username" in the below code:
code:
config -writeconf /home/your-username/dosbox.conf
Creating auto-mount and emulating in fullscreen.
Open dosbox.conf that
we created earlier in any text editor, which you will find it under
home/your-username, and configure DOSBOX for auto-mount.
Add the following lines at the end of the configuration file as shown in the above highlight.
code:
mount c ~ /home/your-username/
C:
CD TC
CD BIN
TC
Now to set the default screen size to full-screen, find the word fullscreen in the same file (dosbox.conf) and change its value to true:
Now you are done setting up the configuration file for Dosbox to auto-mount and emulate in full screen. Save the file and close it.
Deleting Ctrl+F9 key to avoid shutdown of Dosbox
And in the end you will have to delete a key from the Dosbox keymapper : Ctrl+F9
Since Ctrl+F9 is a Shutdown key in Dosbox you may feel very irritated with it, as the same key is used to compile a program in Turbo C++.
Since Ctrl+F9 is a Shutdown key in Dosbox you may feel very irritated with it, as the same key is used to compile a program in Turbo C++.
To work-around this issue, open dosbox and hold Ctrl+F1. Now in the window, select theshutdown option on the right hand side bottom, click on delete and then save and exit. This should remove the keymap to Shutdown DOSBOX.
Creating Launcher
First you have to install gnome panel by using in terminal (Ctrl + Alt + T)
code:
sudo apt-get install gnome-panel
After that type command in terminal given below
gnome-desktop-item-edit ~/Desktop/ --create-new
Name: Turbo c++
command: dosbox -c TC.EXE -c EXIT
now its all set for you to enjoy Turbo C++ on Ubuntu./linux
command: dosbox -c TC.EXE -c EXIT
now its all set for you to enjoy Turbo C++ on Ubuntu./linux
Enjoy TURBO C++
0 comments:
Post a Comment