Pages

Thursday, October 9, 2014

Fixing the apt-get problem in freshly installed Ubuntu

Hello Everyone,

Recently I installed Ubuntu 14. It was a long time I was installing any linux on my system. The installation from pendrive was also so happy-go-lucky.

Anyways, somehow I installed the Ubuntu 14. And then I wanted to install some packages from third party- like Git.

"sudo apt-get install git-core" was the first thing I did and it did not work. It was giving error that "git-core has no installation candidate". I did a little research on internet but in vain.

Then I just opened the /etc/apt/sources.list file and uncommented the third party packages related lines--

deb http://archive.canonical.com/ubuntu trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner
And voila! it worked.

Monday, February 22, 2010

Indian Street Talent

Sunday, October 18, 2009

Monday, August 3, 2009

HOW TO FORMAT A PENDRIVE IN LINUX (For Beginners in Linux)

(This article is intended for Novices in Linux)

“Virus” is the most familiar word in General purpose computing today. Very often , there are more viruses than legitimate programs in a common user computer. Pendrives are the most common devices through which viruses propagate from one computer to another. Many a Times an infected pendrive can not be cured by formatting it in Windows.In such a scenario Linux can be used as an effective tool to get one's pendrive formatted. I am here explaining how you can get your pendrive formattted in Linux.



Step 1: First of all we have to identify the right label of the USB pendrive. To do this remove your Pendrive from computer if connected and go to /dev directory and sort the items in order of modifying date by right clicking and select Arrange Items -> By modifying date.

Step 2: Now insert the pendrive in the USB port. Now check the /dev directory. Those items that appearred in the last are related to the pendrive. One of them should be the label of your pendrive.

Step 3 : Now to identify the label you write down all the new items that appeared on inserting pendrive.

suppose the Items are sdb,sdb1, sge, etc etc . Now apply followin command-
# umount -t vfat /dev/sdb

and look for icon of the pendrive on your desktop. If it disappeared then sdb is the label of your pendrive. If it does not disappear then apply the above command for the next label that is sdb1 or sge and so on, until the icon of the pendrive disappears from desktop.

Suppose your search ends for sdb1.

Note 1: I am assumming that the filesystem of your pendrive is fat.

Note 2: Identification of the label is Very immportant. If you wrongly identify the label then whole of your hard disk can be formatted. So be careful.

Note 3: Each time you insert your pendrive Linux may assign it different label.





Step 4: Now apply following command -

# mkfs -t vfat /dev/sdb1



if it executes successfully then Your pendrive is formatted, if it does not then you must have identified the wrong label.



(There are other ways too, to do the same task. But above method is very easy to implement. Suggestions are always invited. Feel free to post any critical comment)

Computer Based Examination System

Computer based Examination System was the title of my summer project during the month of june-july in 2008. I had just finished 4th semester. I started that project as a challenge because I had never done such a project before.

To get started I had to chose the platform and the programming language. I wanted an application that can be widely used in small examinations and also as a educational game for children.

For those kind of requirements Windows was the obvious choice as a platform. Next I chose C as programming language and Turbo C compiler for development. There were two reasons for that-firstly I was not proficient enough in Java at that time and Using Visual Basic would not lead to any fruitful programming experience. However both of these languages had their own advantages.



I started writing the code for the application using graphics.h as the graphics library. Although graphics.h was quite obsolete but I had no other choice in Turbo C compiler. Firstly I collected the requirements and all the features that this application was going to posses.

To make it worthy for small examinations I had to chose proper security measures. I developed a user authentication system for that purpose. Handling the mouse using C in TurboC compiler was a good experience although I did it before also but not at such a large scale.

Gradually the application started taking its shape. Due to massive file handling my application became a bit slower. After some debugging phases It was ready for first testing. It took 15 days to develop the first working version. Still it was lacking in some features that I decided at the beginning.

After the first testing and debugging phase it entered in the second phase of development. I add some more features to it and it was ready to be tested at the higher level.

Finally after 28 days of work and dozens of programming hours It was completed. It finally consists of 11 files which include the setup and support files. Although it was very small application but it was worth developing. I was wiling to add networking aspect in it but it needed a lot of time and man hours so I dropped that idea. You can ask me for the EXE files to check it out by just hitting me an email.

Wednesday, April 22, 2009

Posts Deleted.

I have deleted all the previous posts In order to give this Blog a fresh start. I apologize if You are searching for older posts.