Reset ubuntu 11.10 password

I was using Ubuntu 11.10 for a long time and once i lost my password. I have gone through various searches and here i am present with the solution of it through which you can reset your password manually.

you can set it with two methods the first is by booting it in recovery mode and the second is by using any live OS.

I will talk about the first method..

first step is to boot up Ubuntu, press and hold “shift” key while the machine is booting..you will get the GRUB menu.

select the second option which is recovery mode and press enter. After pressing enter the system will start booting and you will get a list of options. We will have to make file system writable so that we can change our password. To make it writable select the 3rd option which is remount and press enter. You will get a picture once press enter you will get recovery menu with a list of options.

Select the last option root and press enter. if the root account password is not set then you will get a shell prompt and you can enter the command to reset the password of any account #passwd enter the new password and confirm it by entering again. Now enter command ‘sync’ and press enter.After that a prompt will come with written password updated successfully.Now enter the command ‘reboot-f’ to reboot.

You have successfully reset your password now you can enjoy working with your Ubuntu OS once again.

Advertisements

ubuntu 11.10 oneiric ocelot version and installing jdk

Friends i hope you are familiar with my last post simplicity:what we need regarding windows 7.one month earlier i have installed Ubuntu 11.10 alongside with windows 7 and i am here with a post of installing jdk on this latest version of Ubuntu which was released on 13th October.

Nowadays Java is one of the most popular  object oriented programming language and its popularity has undergone an exponential growth(due to it’s suitability in distributed environment. one can use Java to develop cool web applicatios with a lot of complex features as well as in developing sophisticated desktop applicatins, and it’s platform independeny “write once and run every where.”

The latest version of Ubuntu (Ubuntu 11.10 beta1)  has become one of the most popular Linux distro for desktop environment.that’s why Ubuntu is now considered as a great platform for developing Java applications.

If you are interested in only running Java application then you have not to install jdk (because it has lot of components which is not required for executing Java program) instead you just need to install jre(Java runtime environment) on ubuntu 11.10 (which includes Java virtual machine for executing java bytecode class).

Installing JDK on ubuntu 11.10

There are many jdk available these days. one of the most populer open source jdk is openJDK. openJDK is well compatible with Linux and it is available in official respiratory. so you can install it in a click.

installing openJDK

  • open a terminal(alt+ctrl+t) and execute thr following commands.

sudo apt-get install openJDK-7-jdk

or you can install sunJDK.

since the sunJDK is not included with the official respiratory, so you will need to add a PPa for that;

sudo add-apt-respiratory ppa:ferramroberto/Java

sudo apt-get update

sudo apt-get install sun-Java6-jdk sun-Java6-plugin.

now enjoy your java programming..