This tutorial was made by my friend
DA5H who decided to share how I use to install Turbo C
on your machine with Ubuntu
I think it is your first tutorial done and from my point of view is of high quality if you look it up.
Manual Install Turbo C on Ubuntu order to install Turbo C Ubuntu
our need to emulate the MS-DOS to Windows, so we need to have installed an application called "DOSBOX", not is more than a basic recreation MS-DOS by which we can run Turbo C + +
in Linux.
STEP 1: INSTALLING DOSBOX from terminal type:
$ sudo aptitude install dosbox
STEP 2: CREATION CONFIGURATION FILE "DOSBOX - TURBO C" is necessary to create the configuration file (dosbox.conf) from the program itself, for that we go to the terminal and typing ...
$ dosbox
This command will open the program that resembles DOSBOX type CMD console window, with the default root drive "Z". To create the configuration file, run within the DOSBox command line as follows:
(Obviously placing your username home folder on Linux.)
z:> config - writeconf / home / tu_nombre_de_usuario / dosbox.conf
This command creates the DOSBox configuration file in our folder "/ home / tu_nombre_de_usuario /". After that we leave DOSBOX with:
z:> exit
NOTE: If you do not create the configuration file the above command,
HERE I leave the dosbox file. conf, only remains to paste it into your home folder / home / tu_nombre_de_usuario /
STEP 3: CREATING FOLDER CONTAINER OF TURBO C + + create a folder called "programs" in the path / home / tu_nombre_de_usuario / ie, in folder, and within the "Programs" folder create another folder to which you call "two", which will serve as a virtual drive C:
STEP 4: SETTING IN TURBO C DOSBOX for DOSBOX settings need to edit the file we created in the Step 2 (dosbox.conf). We then open it (I remember the location of the file / home / tu_nombre_de_usuario / dosbox.conf). Open the file and look for the line dosbox.conf: fullscreen = false
NOTE: To facilitate the search of lines in files
Ubuntu , may choose to CTRL + F to open the file and type the line of text that wish to seek and to enter.
The line fullscreen = false to say that Turbo C
start small screen by default. If you like and work best with full screen will have to edit this line is optional. To this then replace the line:
for fullscreen = false fullscreen = true
Now, let's map the drive C: to the folder "two" we created in step 3, as assigned DOSBOX default drive Z
then proceed to add at the end of the configuration file (dosbox.conf) these 2 lines:
mount c / home / / tu_nombre_de_usuario / programs / dos
C: We keep
dosbox.conf changes to the file and close the file.
Finally (this is only for those who are from Mexico or Latin American countries using keyboard). The Turbo C
by default runs on English keyboard. That's why I leave this file
mapper.txt for the keyboard is as Latin America.
0J0: This file does not have to edit, just copy it to our folder, which also hosts
dosbox.conf
now only remains to set up Turbo C Latin language of your keyboard, for this we will DOSBOX run again from the terminal: $
dosbox Once opened the program by pressing CTRL + F1 to activate the keypad configuration file for DOSBOX. (Do not show any change in the interface DOSBOX but it is active). Then, and without leaving DOSBOX, open the file again DOSBOX setup (dosbox.conf) and add the following line at end of file. Keyb
the
STEP 5: INSTALLING TURBO C for installing Turbo C
obviously need the installation folder for Windows operating normal, if you already have it, you'll to copy it to: / home / tu_nombre_de_usuario / programs / dos
... and rename it to "TC" (without quotation marks).
NOTE: The folder TC is the installation folder of any version of Turbo C
. If you do not have the installation folder
Turbo C, do not worry,
HERE I leave it for the download is a compressed file that contains the installation root folder, is that you'll have to stick in the route above.
Following installation, in the case of my computer in my installation folder
Turbo C (which I left in the previous NOTE) INSTALL.EXE the installer is called, and is in the following path:
/ home / my-computer / software / dos / TC / INSTALL.EXE So to run the installer would have to type from terminal as follows:
$ dosbox-c C: \\ \\ TC \\ \\ INSTALE.EXE-c EXIT
NOTE: The above command I uploaded the image as Drop conflicts with the backslash ... Will have to manually insert the code (Beware of spaces)
You perform the same procedure. Now if you want to use their own installation folder
Turbo C The name of the installer may vary, perhaps SETUP.EXE or installer.exe or otherwise, and to be typing the same as above, just change the name of the folder containing your installer TC. And from here on is the same facility that we all know in Windows Turbo C
.
NOTE: When installing most likely not let go because the root drive there (should be since we created in the installation), if presented with this problem then change where it says they will (without quotation marks .) And with that they will install as normal.
STEP 6: CREATING THE TURBO THROWER C + + IN UBUNTU DESKTOP now put a shortcut (launcher) to Turbo C
from the desktop to run it from there, this just for convenience. Then right click on the desktop and select Create Launcher ... , Will open a dialog box where you must enter the following parameters: TYPE
: Application
NAME: You put the name you want to assign a Turbo C
COMMAND: dosbox-c C: \\ \\ TC \\ \\ BIN \\ \\ TC.EXE-c EXIT
NOTE: The name of the executable
Turbo C (TC.EXE) may vary depending on which source has been the installation folder, but in most cases is TC.EXE
COMMENT: Here you enter a brief description of the shooter (optional)
Finally we click OK to have and the pitcher ready in our desktop.
NOTE: launcher it can be created on your desktop or on the top panel is a matter of taste. The steps are the same, just change that instead of right click to create the launcher on the desktop, right click it in the top panel. Gift
And I leave this icon to strut with their IDE dedicated to c + + Turbo C
I can only thank you for sending
DA5H this tutorial that we hope will serve you to install Turbo C
Ubuntu in any doubt you know that they can leave comments or acknowledge the contribution of my partner we read in the next.
To contact DA5H :
Facebbok and we bring the next
gadgets that Apple
launched in a few years hope you like it and comment that they find these proposals, although we take it to humor you feel like any of these gadgets has a chance to become reality ? ...