Firefox version 2 is and has been very stable for me -- been using it in Hardy. I wanted version 3 of firefox to behave the same way.
I had used ubuntuzilla and firefox's own update utility to keep things up to date in dapper.
Firefox 2 is installed in /opt/firefox using ubuntuzilla in my hardy install
So upgrading to Ubuntu Hardy 8.04 most things went well but today is the day I finally was able to use firefox 3 without constant crashes. The crashes were more like stalls and when starting from console there were no helpful messages displayed and it locked up in a way that the built in crash reporter never even displayed.
I tinkered with this a few times but finally decided to not take the advice from others who were still having problems with firefox and tried something different.
I have ran all day today without one firefox 3 crash and its behaving as good as firefox 2 did.
I didn't tinker with the synaptic installed firefox other than renaming two files.
Here's what I did to get it to work. And if I still want to use version 2 I can.
Download the latest firefox (right now it is 3.0.1)
http://www.mozilla.com/en-US/
extract it -- you can use nautilus
Mine extracted to ~/Desktop/firefox
Open a terminal
Make a backup of you .mozilla directory (just in case)
Code:
cp ~/.mozilla ~/_mozillabackup_date -f -r
Copy firefox to /opt
Code:
sudo mkdir /opt/firefox-3.0
sudo cp ~/Desktop/firefox/* /opt/firefox-3.0 -f -r
Try it
Code:
/opt/firefox-3.0/firefox
It worked well but there were no plugins. This part was tricky at first and I wanted it to be setup in a way that I know exactly where all the plugins are -- (not in /etc/alternatives)
To make easy here is here is my list of plugins.
Notice that the symbolic links are full paths/
To create the symbolic link to the adobe reader the command is
Code:
sudo ln -s /usr/lib/Adobe/Reader8/Browser/intellinux/nppdf.so /opt/firefox-3.0/plugins/nppdf.so
You can repeat for each of the following links.
Code:
me@mymachine:/opt/firefox-3.0/plugins$ ls -lah
total 32K
drwxr-xr-x 2 root root 4.0K 2008-07-21 15:17 .
drwxr-xr-x 14 root root 4.0K 2008-07-21 14:39 ..
lrwxrwxrwx 1 root root 37 2008-07-21 15:17 flashplugin-alternative.so -> /etc/alternatives/firefox-flashplugin
lrwxrwxrwx 1 root root 64 2008-07-21 15:13 libjavaplugin_oji.so -> /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so
-rwxr-xr-x 1 root root 16K 2008-07-21 15:06 libnullplugin.so
lrwxrwxrwx 1 root root 38 2008-07-21 15:04 mozplugger.so -> /usr/lib/mozilla/plugins/mozplugger.so
lrwxrwxrwx 1 root root 46 2008-07-21 15:04 mplayerplug-in-dvx.so -> /usr/lib/mozilla/plugins/mplayerplug-in-dvx.so
lrwxrwxrwx 1 root root 47 2008-07-21 15:04 mplayerplug-in-dvx.xpt -> /usr/lib/mozilla/plugins/mplayerplug-in-dvx.xpt
lrwxrwxrwx 1 root root 45 2008-07-21 15:04 mplayerplug-in-qt.so -> /usr/lib/mozilla/plugins/mplayerplug-in-qt.so
lrwxrwxrwx 1 root root 46 2008-07-21 15:04 mplayerplug-in-qt.xpt -> /usr/lib/mozilla/plugins/mplayerplug-in-qt.xpt
lrwxrwxrwx 1 root root 45 2008-07-21 15:04 mplayerplug-in-rm.so -> /usr/lib/mozilla/plugins/mplayerplug-in-rm.so
lrwxrwxrwx 1 root root 46 2008-07-21 15:04 mplayerplug-in-rm.xpt -> /usr/lib/mozilla/plugins/mplayerplug-in-rm.xpt
lrwxrwxrwx 1 root root 42 2008-07-21 15:04 mplayerplug-in.so -> /usr/lib/mozilla/plugins/mplayerplug-in.so
lrwxrwxrwx 1 root root 46 2008-07-21 15:04 mplayerplug-in-wmp.so -> /usr/lib/mozilla/plugins/mplayerplug-in-wmp.so
lrwxrwxrwx 1 root root 47 2008-07-21 15:04 mplayerplug-in-wmp.xpt -> /usr/lib/mozilla/plugins/mplayerplug-in-wmp.xpt
lrwxrwxrwx 1 root root 43 2008-07-21 15:04 mplayerplug-in.xpt -> /usr/lib/mozilla/plugins/mplayerplug-in.xpt
lrwxrwxrwx 1 root root 50 2008-07-21 14:57 nppdf.so -> /usr/lib/Adobe/Reader8/Browser/intellinux/nppdf.so
lrwxrwxrwx 1 root root 36 2008-07-21 15:09 nsdejavu.so -> /usr/lib/mozilla/plugins/nsdejavu.so
lrwxrwxrwx 1 root root 64 2008-07-21 15:13 xulrunner-1.9-javaplugin.so -> /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so
Once you have linked to the plugins you want to use then you can get the firefox in /opt to work for your menus and terminal.
cd /usr/bin
Backup originals
Code:
mv firefox firefox.old
mv firefox-3.0 firefox-3.0.old
Create links to the new firefox
Code:
ln -s /opt/firefox-3.0/firefox /usr/bin/firefox
ln -s /opt/firefox-3.0/firefox /usr/bin/firefox-3.0
If you find an easier way please post.
I still am trying to find out why the synaptic installed version fails to work. I could have use ubuntuzilla to do this but it would have overwritten my firefox 2 install in /opt/firefox.
This worked well for me and hope it helps some others.
Bookmarks