Friday, December 3, 2010

Running Turbo C on LINUX

So student are comfortable with Borland Turbo C, so if you have switched to linux (ubuntu) here is some trick for using Turbo C on Ubuntu.

1) Go to terminal:
                 $ sudo apt-get install dosbox
2) Download Turbo C here : Turbo C

3) extract archive  to folder /home/TC/

4) open dosbox under Applications -> Games

5) type in following steps:
                     mount c ~/TC
                     c:
6) Goto setup folder:
                     cd setup
7) locate install.exe and type:
                       install.exe

And installation will start and follow steps.

after installation type in:
           cd tc/bin
           tc.exe

and Turbo c will start :

more links : link1


                    

        

Monday, November 29, 2010

Installing Marathi fonts in Ubuntu and using them

follow following steps:

1. Install fonts:
             $ sudo apt-get install ttf-indic-fonts


2. Inputting Marathi Text: ( from Wikipedia)


  • Go to Applications > Preferences > Keyboard.
  • Select the "Layouts" tab.
  • Select the keyboard for the language or script you wish to use from the "Available Layouts" frame and then press "Add".
  • Press "Close" to discard the dialogue box.
  • Right click on the main menu on your desktop and select "Add to Panel...".
  • Select "Keyboard Indicator" and click "Add".
  • Position the keyboard indicator on your menu bar and click it to switch between keyboard layouts.
Another option is to use SCIM, to enable that,
                     http://kiranfont.com/kf/
                     http://www.baraha.com/download.htm

Sunday, November 28, 2010

Installing *.deb package from terminal

1. Install:
$ sudo dpkg -i package_file.deb

2. uninstall:
$ sudo dpkg -r package_name

Saturday, November 27, 2010

Mounting Hard drive via SSH

do following steps...

1. you should be sudo user.
         $ sudo su


2. displaying available hard drives in your system.
           fdisk -l


3. Suppose you want to mount /dev/sda1 drive, make some directory where do you want mount it.
        # mkdir /home/megh/HD1


4. mounting drive( assuming NTFS).
      #  sudo mount -t ntfs-3g /dev/sda1 /home/megh/HD1


5. done !!! browse directory HD1


(NOTE: if it's FAT32 swap out 'ntfs-3g' for 'vfat')

Monday, October 11, 2010

scheduling tasks to be executed at a certain time in Ubuntu.

Here is useful tip for ubuntu users who wants to execute certain scripts periodically, like monitoring disks, updates, certain logs, periodic backup, periodic rsync and more..

Corn is daemon which will allow you to  schedule and execute certain tasks you assigned. Here is link to CornHowTo

Thursday, September 23, 2010

Restore original appearance and theme

Restoring default Ubuntu theme and appearance after installing some nasty themes which slows down performance of system.

Open up a terminal
Applications -> Accessories -> Terminal

We need to remove all these sections, they store gnome settings
The folders to remove are: .gconf, .gconfd, .gnome, .gnome2, etc.

So do this command:

$rm -Rf .gconf .gconfd .gnome .gnome2

Then log out and log back in (or reboot if you prefer)

Wednesday, September 1, 2010

C editing with VIM

Hi,


Here is some good references for improving your VIM editor for 'C' and 'C++' programming. I have also attached my vimrc file. have a fun !!!


Link1

link2