# Firefox 2.0.0.13
# ================
# Binary instructions are provided below. The usually outdated Firefox
# source instructions are: here.
# Prerequisites:
# One day I'll look through the release notes and such and will list every
# prerequisite that I know of that the binary version requires. Until then
# look at the source howto. If the list is not the same, it should be
# similar.
# I also have Seamonkey, a bunch of plugins, etc., etc. so I just throw all
# of it into ~/installed/mozilla/ and ~/src/mozilla/ so it's easier
# to find. Feel free to not do that if that's not the case for you.
# This version doesn't have an installer (nothing will go into ~/src)
test -d ~/src/mozilla/firefox && rm -r ~/src/mozilla/firefox
test -d ~/src/mozilla/firefox-installer &&
rm -r ~/src/mozilla/firefox-installer
# Become root to remove old files and to install it
su
# Back up the plugins that were installed for your previous version of
# Firefox. Make sure this catches everything, and that you don't have any
# other files that need to be backed up. The howto will "uninstall" the old
# version of Firefox as the developers suggest.
test -d ~/backup/firefox-plugins &&
mv -f ~/backup/firefox-plugins ~/backup/firefox-plugins-old
for ffdir in /usr/lib/firefox /usr/lib/firefox-?.* \
/usr/lib/mozilla-firefox /usr/local/firefox ; do
test -d "${ffdir}/plugins" &&
mkdir -p -m 0700 ~/backup/firefox-plugins &&
cp -af ${ffdir}/plugins/* ~/backup/firefox-plugins/
done
test -f ~/backup/firefox-plugins/libnullplugin.so &&
rm ~/backup/firefox-plugins/libnullplugin.so
# Now make sure that Firefox is not running. This should kill it if it is
# running, and should remove it if it's installed in a few common locations.
# removepkg will be run also in case you're replacing a Slackware package.
killall firefox firefox-bin
test -x /sbin/removepkg &&
/sbin/removepkg firefox firefox-plugins jre-symlink mozilla-firefox
find /usr/lib /usr/local/lib -maxdepth 1 -type d -name "firefox-*" \
-exec rm -r {} \;
test -d /usr/lib/firefox && rm -r /usr/lib/firefox
test -d /usr/local/firefox && rm -r /usr/local/firefox
# This will install it under /usr/local/firefox
tar xzvf firefox-2.0.0.13.tar.gz -C /usr/local
chown -R root:root /usr/local/firefox
# Create a symlink in a directory in your PATH so you can run 'firefox'
# without specifying the full path:
ln -sf /usr/local/firefox/firefox /usr/local/bin/firefox
# Restore your plugins (or reinstall them again) if you upgraded from an
# older version of Firefox:
test -d ~/backup/firefox-plugins &&
cp -a ~/backup/firefox-plugins/* /usr/local/firefox/plugins/
# Become yourself again
exit
# If your Firefox doesn't know what to do with mailto links, create a
# user.js file in your Firefox preferences directory
# (~/.mozilla/firefox/whateveritsnamed.default/) with a line like this
# in it:
# user_pref("network.protocol-handler.app.mailto","/usr/local/thunderbird/thunderbird");
## If you ever have trouble with Firefox, run it in "Safe Mode", which
## will disable all extensions and use the default theme:
# firefox -safe-mode
# /usr/local/firefox/icons/mozicon50.xpm can be used as a desktop icon.
# I converted it to a png and put it here if you'd rather use that:
# http://englanders.cc/pub/linux/misc/firefox.png