Saturday, February 6, 2010

Installing Firefox 3.6 and Java 6.18

I was debating on weather or not to write this guide but since I have to keep recalling the steps for my own use, I'll post it here. This will be short and with little explanation since it's for my own use mainly.

For Ubuntu 9.10 (Karmic), open a terminal and paste the following:

sudo add-apt-repository ppa:mozillateam/firefox-stable

sudo apt-get update

sudo apt-get install firefox-3.6 <or close the terminal, and run the update manager>


For ubuntu 9.04 (Jaunty) Users

First you need to edit /etc/apt/sources.list

gksudo gedit /etc/apt/sources.list

add the following lines

deb http://ppa.launchpad.net/mozillateam/firefox-stable/ubuntu jaunty main
deb-src http://ppa.launchpad.net/mozillateam/firefox-stable/ubuntu jaunty main

Save and exit

Update the source list

sudo apt-get update

Install firefox 3.6 stable

sudo apt-get install firefox-3.6



For ubuntu 8.10 (Intrepid) Users

First you need to edit /etc/apt/sources.list

gksudo gedit /etc/apt/sources.list

add the following lines

deb http://ppa.launchpad.net/mozillateam/firefox-stable/ubuntu intrepid main
deb-src http://ppa.launchpad.net/mozillateam/firefox-stable/ubuntu intrepid main

Save and exit

Update the source list

sudo apt-get update

Install firefox 3.6 stable

sudo apt-get install firefox-3.6



For ubuntu 8.04 (Hardy) Users

First you need to edit /etc/apt/sources.list

gksudo gedit /etc/apt/sources.list

add the following lines

deb http://ppa.launchpad.net/mozillateam/firefox-stable/ubuntu hardy main
deb-src http://ppa.launchpad.net/mozillateam/firefox-stable/ubuntu hardy main

Save and exit

Update the source list

sudo apt-get update

Install firefox 3.6 stable

sudo apt-get install firefox-3.6


Updating Java and making it work


Add the JAVA PPA

deb http://ppa.launchpad.net/voronov84/andreyv/ubuntu karmic main



Go to the PPA homepage and grab the key if you need it;

Okay, now you can run your update manager and let it upgrade your JAVA install... It won't function properly due to an install bug but we'll fix than on short order.


Making Java work properly with Firefox 3.6

Now you need to navigate to the ~/.mozilla directory and make a folder called plugins (~/.mozilla/plugins/). Now using the terminal, run the command gksu nautilus to open a root file browser session. From there navigate to the following location:

/usr/lib/jvm/

Find the folder named java-6-sun/ and rename it to java-6-sun.bak/ (/usr/lib/jvm/java-6-sun.bak)

Now, in the same /usr/lib/jvm/ folder, find a sub folder named java-6-sun618/ or something similar, and rename it to java-6-sun/ (/usr/lib/jvm/java-6-sun/).

Now from a terminal screen run the following command:

sudo ln -s /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so ~/.mozilla/plugins/

That should do it...



7 comments:

Bucknasty said...

Actually I like my method better. What makes the alternate method better for you?

Unknown said...

I found this to be an excellent tutorial.
Just one typo were it says

"Now, in the same /usr/lib/jvm/ folder, find a sub folder named java-6-sun618/ or something similar, and rename it to sun-6-sun/ (/usr/lib/jvm/sun-6-sun/)."

It should be

"Now, in the same /usr/lib/jvm/ folder, find a sub folder named java-6-sun618/ or something similar, and rename it to java-6-sun/ (/usr/lib/jvm/java-6-sun/)."

Maybe it will work anyway i'm no expert just to let you know but thanks for the fix

Bucknasty said...

Yeah, it was a typo. Thanks for pointing that out. I posted kind of in a hurry and didn't proof it well. I do the procedure all the time and never did notice that.

Charles

johnny_boy said...

This worked wonderfully, thanks. For the time being, I was using Chromium for java. This is now no longer necessary. Nice.

Bucknasty said...

You're welcome lumpy. It's no longer needed. All you have to do now is select the partner repository and refresh.

Then you will find the newest builds of sun java installable from synaptic package manager.

Frank said...

Thanks for your procedure! I had downloaded the java jre but didn't know I had to create the plugins directory for Firefox 3.6. This wasn't necessary for Firefox 3.5.

Thanks again!

Bucknasty said...

Glad this helped you Frank...