# mozilla 1.7.8
# =============
# If you want to build mozilla from source, to go the other mozilla howto
# These instructions cover installing mozilla from the pre-built binary
# tarball.
# Slackware 9.0's 'mozilla' package includes version 1.3, 9.1's includes 1.4,
# 10.0's includes 1.7 and 1.7.3 in 'patches', and 10.1 includes 1.7.5. 9.1
# and up also have a 'mozilla-plugins' package.
# Create directories for the extracted tarball and the tarball itself
mkdir -p -m 0700 ~/installed/mozilla ~/src/mozilla
# Now download and install mozilla:
cd
test -f installed/mozilla/mozilla-i686-pc-linux-gnu-1.7.8-installer.tar.gz &&
mv installed/mozilla/mozilla-i686-pc-linux-gnu-1.7.8-installer.tar.gz .
test ! -f mozilla-i686-pc-linux-gnu-1.7.8-installer.tar.gz &&
wget http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.7.8/\
mozilla-i686-pc-linux-gnu-1.7.8-installer.tar.gz
cd src/mozilla
test -d mozilla-installer && rm -r mozilla-installer
tar xzvf ~/mozilla-i686-pc-linux-gnu-1.7.8-installer.tar.gz
cd mozilla-installer
test $UID = 0 && chown -R root.root .
# Become root to remove old files and to install it
su
# Back up the plugins that were installed for your previous version of Mozilla.
# If you're replacing a Slackware installed version, you'll probably find them
# in /usr/lib/mozilla-x.x/plugins/ 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 Mozilla as the developers suggest.
# Plugins in ~/.mozilla/plugins/ will be left alone. If you're replacing a
# non-distro version of mozilla, do this:
test -d ~/backup/mozilla-plugins &&
mv -f ~/backup/mozilla-plugins ~/backup/mozilla-plugins-old
for mozdir in /usr/lib/mozilla /usr/lib/mozilla-?.* \
/usr/local/lib/mozilla-?.* /usr/local/mozilla ; do
test -d "${mozdir}/plugins" &&
mkdir -p -m 0700 ~/backup/mozilla-plugins &&
cp -af ${mozdir}/plugins/* ~/backup/mozilla-plugins/
done
test -f ~/backup/mozilla-plugins/libnullplugin.so &&
rm ~/backup/mozilla-plugins/libnullplugin.so
# Now make sure that mozilla 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 below also in case you're replacing a Slackware
# package.
killall mozilla mozilla-bin
test -d /usr/lib/mozilla && rm -r /usr/lib/mozilla
test -d /usr/local/mozilla && rm -r /usr/local/mozilla
find /usr/lib -maxdepth 1 -type d -name "mozilla-*" -exec rm -r {} \;
find /usr/local/include -maxdepth 1 -type d -name "mozilla-*" \
-exec rm -r {} \;
find /usr/local/lib -maxdepth 1 -type d -name "mozilla-*" -exec rm -r {} \;
rm -f /usr/bin/mozilla-config /usr/local/bin/mozilla-config \
/usr/bin/mozilla /usr/local/bin/mozilla /usr/local/bin/mozilla.sh
sleep 3
killall -9 mozilla mozilla-bin > /dev/null 2>&1
# Remove the Slackware package (won't do anything if there isn't one)
removepkg mozilla
# If X isn't running, start it now, and run this (as root) from an X-Term:
./mozilla-installer
# I wrote a small wrapper script for mozilla so other programs can run it
# without trouble. For example, sometimes apps will run "mozilla
# http://whatever/", but that will fail if mozilla is already running. The
# script will open up the URL in a new tab if mozilla is already running.
cd /usr/local/bin
test -f mozilla &&
( mv -f mozilla mozilla.old ; chmod -x mozilla.old )
wget -O mozilla http://englanders.cc/pub/linux/misc/mozilla.sh &&
chmod +x mozilla
# If you don't use the script, either add /usr/local/mozilla to your PATH,
# symlink /usr/local/mozilla/mozilla to /usr/local/bin/mozilla, or remember
# to run mozilla with it's full path every time: /usr/local/mozilla/mozilla
# I'm not sure if this is still necessary, but older versions required that
# you start Mozilla once as root before any other users use it.
# Restore your plugins (or reinstall them again) if you upgraded from an
# older version of Mozilla:
cd /usr/local/mozilla/plugins
test -d ~/backup/mozilla-plugins && cp -a ~/backup/mozilla-plugins/* .
# Become yourself again
exit
cd
rm -f installed/mozilla/mozilla-*.tar.*
mv mozilla-i686-pc-linux-gnu-1.7.8-installer.tar.gz installed/mozilla/
# /usr/local/mozilla/icons/mozicon50.xpm can be used as a desktop icon