Skip to content

Ubuntu – Lessons – 1

March 20, 2013

Have started using Ubuntu recently and still getting used to the new shortcuts and others.

Since the installation was also done by me, encountered few issues.

Following are the few things which one would encounter and have included the links to save time.

How to install JDK on Ubuntu…

$ chmod u+x jdk-6u34-linux-i586.bin
$ ./jdk-6u34-linux-i586.bin
$ sudo mkdir -p /usr/lib/jvm
$ sudo mv jdk1.6.0_34 /usr/lib/jvm/
$ sudo update-alternatives –install “/usr/bin/java” “java” “/usr/lib/jvm/jdk1.6.0_34/bin/java” 1
$ sudo update-alternatives –install “/usr/bin/javac” “javac” “/usr/lib/jvm/jdk1.6.0_34/bin/javac” 1
$ sudo update-alternatives –install “/usr/lib/mozilla/plugins/” “” “/usr/lib/jvm/jdk1.6.0_34/jre/lib/i386/” 1
$ sudo update-alternatives –install “/usr/bin/javaws” “javaws” “/usr/lib/jvm/jre1.6.0_34/bin/javaws” 1

    IMPORTANT choose the java you installed as default

$ sudo update-alternatives –config java
$ sudo update-alternatives –config javac
$ sudo update-alternatives –config
$ sudo update-alternatives –config javaws


How to enable hibernation


[Re-enable hibernate by default]

How to install MongoDB

sudo service mongodb stop

How to solve the VirtualBox Error
sudo /etc/init.d/vboxdrv setup

sudo apt-get install linux-headers-$(uname -r)

Thanks everyone who have contributed to the solutions. Without those, it is not possible for people like me to proceed further.

One Comment leave one →
  1. Daniel Zimmermann permalink
    March 22, 2013 1:03 pm

    One of my favorite Blogs about Ubuntu related news ist

    They blogged about the installation of how to get the “original” Java and the blogger, as a real nice guy, build a PPA for it. Since he is updating it really fast, i would suggest you give it a try, because then you get your JDK via Ubutuns default update mechanism…

    I’m not perfectly sure, since I only did a very short search for this reply, but I guess you can find the latest blog entry here:

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: