Saturday, May 18, 2013

Ubuntu: ”How to recover root password ?”


Situation may arise that you want to login as root user and you don’t  know or you forgot the root password. In this case we need to boot in recovery mode. In some cases recovery mode option will not prompt automatically so need to press left shift key while booting. This will prompt option to boot in recovery mode. Once you boot in recovery mode, various options will be available. 

Selecting root option will login you as root in terminal without any password. Now you can create new root user, you can change the password of existing root user. 






After you have successfully changed the password, you need to reboot the system and now you can login with your new password.






For this just refer following commands.

You can get the list of current user                                 cat  /etc/passwd              
                                                  
You can add new user to the system                              useradd username  

 You can set the password of the user                             passwd username


Sunday, May 12, 2013

A HAPPY LIFE or DESERTED ONE….!!


Green house gases absorb the infrared radiations, traps the heat for longer time and makes the atmosphere warmer. It is definitely true that one of the reasons that we are living on earth is because of these green house gases but if we are not careful about their atmospheric levels then they will kill us. According to the latest survey, the amount of greenhouse gases in the atmosphere is highest in last 2 million years. Carbon Dioxide (CO2) is most harmful among all other green house gases.Before the industrial revolution, the problem was not that much serious. Now a days industrialization has become the benchmark for country’s development, almost every industry results in increasing the amount of green house gas in the atmosphere. The problem is much more serious as carbon levels are increasing exponentially. Previously it takes 7000 years to increase CO2 level by some amount but now the carbon dioxide has gone up by the same amount in just 55 years.

                                                     What steps we can take as an individual to minimize the effect? As trees absorb CO2 while photosynthesis we should plant more trees. We can use alternative eco-friendly fuels. We should save electricity, save water, walk whenever possible. If such things are added up by billions of people then definitely it will improve our climatic condition. Everything is in our hand and it’s up to us that what we want? We need to think about our next generation, what type of life you want to give to your generation?  
A HAPPY LIFE or DESERTED ONE….!!

Thursday, May 9, 2013

Ubuntu: How to solve “Could not get lock on /var/lib/dpkg/lock“ problem ?



This one of the most frequent problems that arises while updating the installation packages. In order to solve this problem we need to remove the lock file from dpkg directory.as well as cache directory. After removing the lock we can update the packages without any error.

Remove Lock from dpkg    :     sudo rm /var/lib/dpkg/lock
Remove Lock from cache   :     sudo rm /var/cache/apt/archives/lock
Update packages                :     sudo apt-get update
Upgrade packages              :     sudo apt-get upgrade

Tuesday, May 7, 2013

Ubuntu:Waiting for jockey-backend to exit


After installation of Ubuntu the most common problem is updating or downloading softwares. When we try to update any package or tried to install any software, Ubuntu gives message Waiting for jockey-backend to exit in Update manager. Jockey is tool for installation of third party hardware drivers and need to be disabled safely.

In order to resolve this problem we need to kill this jockey-backend process. Here is solution to do that.

1.Get Administrative access             sudo -i
 
2.Get process id of jockey-backend process    ps -e | grep jockey

3.Kill this process                            kill -9  process_id

Saturday, May 4, 2013

Lets Save Precious Water


Water is one of the most precious natural resource that the human beings got. The important thing is how serious we are about its usage?

The amount of water available on the earth is sufficient for human beings if we use it carefully. As population of the earth is increasing exponentially so is the demand of drinking water but we are wasting large amount of water just because currently we are having its sufficient supply. Currently we have to pay for 20 to 30 rupee for one water bottle. The most of the rural areas are still does not have sufficient water supply. They are supplied by water tankers that so not daily. The condition will become much more worsen in the future if we don’t save water. So let’s join our hands to save water as much as possible.
SAVE WATER, SAVE LIFE....!

Sunday, April 29, 2012

Implimenting File Sever In Linux


                                          File server can be considered as administrative  storage of shared  resources in the network so that other terminals in the network can access to those resources.

              Here I am implimenting a multithreaded concurrent server.Multithreaded means seperate thread for each client request. One main thread (listen) will continiously run till there are client requests for the files.We have to create seperate thread to service each client request.Concurrent means that server can handle many client requests simultaneously.We also have to impliment mutual exclusion for shared resources.It means that simultaneous reading is possible but  reading while writing or writing while reading is not possible.
                  First we must run server code and then client code. After sucessfully conneted with client , server will display list of available files , will ask whether client want to read or write file  ? In both cases  server will send requested file to client and apply read/write lock on that file so that consistency must  be maintained.In my code ,server is opening file in read mode , reading it and then send it to client.At client end if client want to read the file , display  that file on terminal. If client is writing into file then that change must be reflected into file at server side.For next read request that updated file must be use.

            The main idea is to create socket connection first then we have to handle file read or write request .The functions that i have used for socket creation are  socket(),bind(),connect(),accept() etc and write() and read() for file manipulation.

Thursday, March 22, 2012

Life Extension

Actually it is study of slowing down or reverses the changes that took place in human body over period of time.Basic idea is to extend average life or maximum life span of humans. It involve rejunation which is process of replacement of damaged tissues with new ones. Raymond Kurzweil, a futurist and transhumanist, stated in his book 'The Singularity Is Near' that he believes that advanced medical nanorobotics could completely remedy the effects of aging by 2030. Here are some techniques used for life extension

• Nanotechnology
• Cloning and body part replacement
• Cycronics
• Genetic modification
• Fooling genes

The technology is getting much more advanced day by day. Recent scientific successes in rejuvenation and extending a lifespan of model animals and discovery of variety of species give hope to cancel ageing for younger humans, reverse ageing or at least significantly delay it.Just looking at advanced technology of medical sciences ,nanotechnology,neuroscience we may predict its sucess in future.Normally almost everybody wants to live longer as has fear to die. Approzimate human life span is about 100 years.If life extension is sucessful in future, can you guess what will be human’s life span? Our body tissues gets damaged over time but even after sucessful life extension dont you think it will have adversed effect on our boby? Will our body react in same way as it earlier? I think it will bring much more complications to human life.

God has given wonderful life to us and let it be simple.  Feel it Dream it  Live it .
Lets think about it...!