Monday, December 19, 2011

Upgrading Sun-Java on Ubuntu 10.04

It is always good from a security point of view to have all your systems up and running in the most current state.  Go to this particular URL

Scan your browser by clicking on the check box.  There Qualys will tell you if there is any upgrade which is available.

Next go to this website

Linux (self-extracting file) filesize: 20.7 MB     - for 32 bit systems
Linux x64 * filesize: 20.3 MB                            - for 64 bit systems

Next move become root on a terminal by executing

$sudo su
Copy the binary over to the destination shown below
#cp /home/bala/Downloads/jre-6u30-linux-x64.bin /usr/lib/jvm/
#cd /usr/lib/jvm
Now make that file as executable
#chmod +x jre-6u30-linux-x64.bin
Now run that executable
Move the old soft link file which pointed to the old java
#mv java-6-sun java-6-sun_old
Remove the bin file.
#rm jre-6u30-linux-x64.bin
Rename the extracted file.
#mv jre1.6.0_30/ java-6-sun-
Create a new link to your extracted Java
#ln -s java-6-sun- java-6-sun
Now rename the old java plugin.
#mv /etc/alternatives/ /etc/alternatives/mozilla-javaplugin.so_old
Now create a new soft link to you new java
#ln -s /usr/lib/jvm/java-6-sun/lib/amd64/ /etc/alternatives/
# ll /usr/lib/mozilla/plugins/
lrwxrwxrwx 1 root root 39 2010-09-19 09:11 /usr/lib/mozilla/plugins/ -> /etc/alternatives/*
# ll /etc/alternatives/
lrwxrwxrwx 1 root root 45 2011-12-19 20:42 /etc/alternatives/ -> /usr/lib/jvm/java-6-sun/lib/amd64/*
# ll /usr/lib/mozilla/plugins/
lrwxrwxrwx 1 root root       39 2010-09-19 09:11 -> /etc/alternatives/*

If you have Newer version of firefox via ppa then one more step.

#ln -s /usr/lib/jvm/java-6-sun/lib/amd64/ /usr/lib/firefox-10.0.1/plugins/ 

No comments:

Post a Comment