Thursday, September 25, 2008

Upgrading to OpenOffice 2.4 on Acer Aspire One Linux

The AA1 ships with OpenOffice 2.3, with no available upgrade path,
because 2.4 is only supported in Fedora 9, while the AA1 is based on
Fedora 8. There is a solution besides downloading the tar archive from
their website, but it requires some work. You can take a look at the release notes for 2.4 first to see if it's worth your time.

First of all remove all unnecessary language packs as described here,
it makes upgrading much easier. Then some packages have to be
downloaded. Create a directory in Downloads, name it OpenOffice, and
save all files there.

The packages needed are calc, core, impress, writer, latex, hunspell, hyphen, hyphen-en, mythes-en, nspr and nss. Also needed is the language package, for english being langpack-en. If you need another language you'll have to edit the download path and replace en with your language code. All available languages can be seen here. Download the corresponding version of hunspell, hyphen and mythes in addition to the english ones. If in doubt which one to choose get the latest fc9 version available.

Now go into the terminal.

cd Downloads/OpenOffice
sudo rpm -U *rpm


If
you only receive two errors, about libcrypto.so.7 and libssl.so.7, all
went well and you can continue. If not make sure you downloaded all
required packages and retry.

sudo ln -s /lib/libcrypto.so.6 /lib/libcrypto.so.7
sudo ln -s /lib/libssl.so.6 /lib/libssl.so.7


Upgrading
OpenOffice also replaces all icons with low resolution official icons,
so the original ones need to be backed up. Don't forget the dot at the
end of the line.

sudo cp /usr/share/icons/hicolor/48x48/apps/openofficeorg* .

Now everything can be installed.

sudo rpm -U --force --nodeps *rpm

Put the original icons back in place.

sudo cp openofficeorg* /usr/share/icons/hicolor/48x48/apps
sudo gtk-update-icon-cache -f /usr/share/icons/hicolor


The only thing left to do is to edit the desktop files, and to remove %U on line number nine.

sudo mousepad /usr/share/applications/openoffice.org-1.9-writer.desktop
sudo mousepad /usr/share/applications/openoffice.org-1.9-calc.desktop
sudo mousepad /usr/share/applications/openoffice.org-1.9-impress.desktop


That's it, OpenOffice has been upgraded to version 2.41, the latest available.

No comments:

instantptr.com