# OpenOffice.org 2.4.1
# ====================
# There are instructions here for installing OOo (OpenOffice.org) from a
# binary package. If you'd like to install it from source, see
# the source howto, which is probably pretty outdated.
# For some reason that I can't imagine, they now bundle various binary
# versions of OOo in RPMs that are inside the tarball. If you don't want to
# deal with converting the RPMs, you may want to just grab a package for
# Slackware from LinuxPackages.net:
# http://www.linuxpackages.net/search_view.php?by=name&name=openoffice.org
# Prerequisites:
# Sun or Blackdown (which appears to be dead) JRE or SDK (optional)
# cpio (required by rpm2tgz)
# rpm (Slackware has an 'rpm' package)
# tar
# gzip
# If you don't have or want rpm2tgz, you can also use alien to convert the
# RPMs
# If you download it using Firefox, BitTorrent (try Azureus), or whatever else,
# put the tarball in your home directory before you begin below.
cd
test -f installed/OOo_2.4.1_LinuxIntel_install_en-US.tar.gz &&
mv installed/OOo_2.4.1_LinuxIntel_install_en-US.tar.gz .
test ! -f OOo_2.4.1_LinuxIntel_install_en-US.tar.gz &&
wget ftp://openofficeorg.secsup.org/pub/software/openoffice/\
stable/2.4.1/OOo_2.4.1_LinuxIntel_install_en-US.tar.gz
# Don't be surprised if the directory that everything extracts into
# changes
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "OOo_*" -exec rm -r {} \;
tar xzvf ~/OOo_2.4.1_LinuxIntel_install_en-US.tar.gz
cd OOH680_m17_native_packed-1_en-US.9310
test $UID = 0 && chown -R root:root .
# Convert the RPMs into tgz files (this will take a while)
cd RPMS
for file in *.rpm; do echo $file; rpm2tgz $file && rm $file; done
# Become root to do the rest
su
# Quit out of OpenOffice if it's running
# Remove old versions that were installed under /usr/local
find /usr/local -maxdepth 1 -type d -name "OpenOffice.org*" \
-exec rm -r {} \;
# Remove old packages that you have installed:
find /var/adm/packages -type f -name "openoffice.org*" \
-exec removepkg `basename {}` \;
# Remove old files that are still in /opt
find /opt -maxdepth 1 -type d -name "openoffice.org*" -exec rm -r {} \;
# Remove /etc/openoffice.org* symlink(s), if there are any:
find /etc -type l -name "openoffice*" -exec rm {} \;
# Remove any tgz files that you don't want to install. For example, you'll
# want to remove openoffice.org-gnome-integration-2.4.1-9310.i586.tgz if
# you don't have Gnome installed, and you'll want to remove
# openoffice.org-kde-integration-2.4.1-9310.i586.tgz if you don't have KDE
# installed.
# Install each tgz package (it'll be in /opt/openoffice.org2.4)
installpkg ./*.tgz
# And install this one for Slackware desktop icons:
installpkg \
desktop-integration/openoffice.org-slackware-menus-2.4-noarch-9268.tgz
# If you want to zap the tgz files (the ones created by rpm2tgz)
cd ../..
rm -r ./OOH680_m17_native_packed-1_en-US.9310
## If you'll be opening/saving files that are on an NFS share, you may
## experience file locking trouble. If this happens to you, open up
## /opt/openoffice.org2.4/program/soffice in a text editor and comment out
## these
## two lines:
# SAL_ENABLE_FILE_LOCKING=1
# export SAL_ENABLE_FILE_LOCKING
# Now as a non-root user, in X, run /opt/openoffice.org2.4/program/soffice
# You can kill the download tarball at this point if you want to save
# space.
# If there were any, old versions were removed from /usr/local/, but old
# per-user copies (~/OpenOffice.orgX.X.X/) are still there. Now that the
# new version is installed for you, you can zap the old version(s) if you
# like.
# If you installed the openoffice.org-slackware-menus package, you'll find
# desktop icons in /opt/kde/share/icons. These are good for one icon for
# Writer, one for Draw, etc.:
# /opt/kde/share/icons/hicolor/48x48/apps/openofficeorg24-writer.png
# /opt/kde/share/icons/hicolor/48x48/apps/openofficeorg24-calc.png
# /opt/kde/share/icons/hicolor/48x48/apps/openofficeorg24-draw.png
# /opt/kde/share/icons/hicolor/48x48/apps/openofficeorg24-impress.png
# /opt/kde/share/icons/hicolor/48x48/apps/openofficeorg24-math.png
# /opt/kde/share/icons/hicolor/48x48/apps/openofficeorg24-base.png
# /opt/kde/share/icons/hicolor/48x48/apps/openofficeorg24-printeradmin.png
#
# They don't include the ooo_gulls.png 48x48 image any more, one icon for
# all of OO, but many distributions come with one.