OpenOffice.org2 and Ubuntu
Unfortunately using Debian experimental, which currently has debs for 1.9.108, in Ubuntu is probably a bad idea. So here is a recipe for converting the official RPMs for use on Ubuntu. First thing, make sure java. is installed, otherwise follow this and install jre from backports. Next download OOo\_1.9.109\_LinuxIntel_install.tar.gz. Both these will take a while. (150Mb+). Finally make sure you (apt-get) install alien.
Now you have a couple choices. Either this guide or the modifed script from this comment based on this guide. Personally I used the later method.
mre0281 Said,
August 12, 2005 @ 10:47 pm
\#!/bin/sh
\# Download and debianize OpenOffice 2 beta
\#
\# ----- Alberto Piai, april 2005
\# ----- Marc Rodriguez, july 2005
\# Released under GNU GPL license
\#
\# Credits:
\# Based on
\# http://nathanvi.it/openoffice/index.php?page=DeBianizza by Peo e no0tic
\# Requirements:
\# -a Java Runtime Environment is needed by OOo for full functionality
\# -OOo 1.x COMPLETELY uninstalled from the system
\#
\#
VERSIONE="1.9.122"
HOME=~
WORKDIR=$HOME/.OOotemp3323
CURDIR=`pwd`
FILE_NAME="OOo_1.9.122_LinuxIntel_install.tar.gz"
DOWNLOAD_PATH="http://ftp.rediris.es/ftp/mirror/openoffice.org/developer/680_m122/OOo_1.9.122_LinuxIntel_install.tar.gz"
test ! -x $WORKDIR || (
echo "* There's already a $WORKDIR directory..."
echo "* Rename it or remove it before going on"
echo "* Or just change the WORKDIR variable in this script!"
)
test ! -x $WORKDIR || exit 0
if [ -f $CURDIR/$FILE_NAME ];
then
echo "* Found the tar.gz in this directory!"
echo "* Not going to download it again"
else
echo "* Download the tar.gz......"
wget $DOWNLOAD_PATH
fi
mkdir $WORKDIR
cd $WORKDIR
ln -s $CURDIR/$FILE_NAME $WORKDIR/$FILE_NAME
echo "* Extracting tar.gz package....."
tar zxf $FILE_NAME
cd SRC*
mv * ..
cd ..
touch debian-binary
echo "2.0" > debian-binary
echo "* Adapting it to Debian / Ubuntu:"
echo "* --> removing unnecessary files"
rm -f RPMS/desktop-integration/openofficeorg-redhat-menus-$VERSIONE-1.noarch.rpm
rm -f RPMS/desktop-integration/openofficeorg-suse-menus-$VERSIONE-1.noarch.rpm
rm -f RPMS/desktop-integration/openofficeorg-mandriva-menus-$VERSIONE-1.noarch.rpm
echo "* --> extracting RPMs........."
mv RPMS/desktop-integration/openofficeorg-freedesktop-menus-$VERSIONE-1.noarch.rpm RPMS/
for file in `ls RPMS/*.rpm` ;
do rpm2cpio $file|cpio -idm &> /dev/null;
done
rm -f RPMS -R
# Crea la directory etc e fai i link necessari
echo "* --> preparing /etc directory and its links"
mkdir etc
mkdir etc/openoffice.org-1.9
cd etc/openoffice.org-1.9
ln -s ../../opt/openoffice.org$VERSIONE/share .
ln -s ../../opt/openoffice.org$VERSIONE/program .
cd ../..
echo "* Packaging data..."
tar zcf data.tar.gz opt usr etc
rm -f opt -R
rm -f usr -R
rm -f etc -R
echo -n "* Packaging .deb file........"
echo "Package: openoffice-snapshot"> control
echo "Version: $VERSIONE" >> control
echo "Architecture: i386" >> control
echo "Description: Snapshot of openoffice m680" >> control
tar zcf control.tar.gz control
rm -f control
ar r openoffice-snapshot_$VERSIONE.deb debian-binary &> /dev/null
rm -f debian-binary
ar r openoffice-snapshot_$VERSIONE.deb control.tar.gz
rm -f control.tar.gz
ar r openoffice-snapshot_$VERSIONE.deb data.tar.gz
rm -f data.tar.gz
echo " OK"
echo "* Cleaning up..."
cp $WORKDIR/*.deb $CURDIR
cd $CURDIR
rm -rf $WORKDIR
echo "* Done!!!"
echo "* If you already uninstalled OpenOffice 1.x"
echo "* install the .deb file with:"
echo "* sudo dpkg -i openoffice-snapshot_$VERSIONE.deb"