Monday, January 19, 2009

Open Office 3 i Fedora 7

Hittade dessa instruktioner som verkar fungera:
---
Before removing the already installed version the custom icons have to be backed up, because a new installation will overwrite them with low resolution icons that don't scale well.

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

Proceed and uninstall the old version.

sudo yum remove openoffice\*

The new version can then be downloaded from an official mirror. The download path below will get the english version. If you'd like another language edit the lang variable, en-US in this case. An overview of all supported languages is available here.

wget "http://openoffice.bouncer.osuosl.org/?product=OpenOffice.org\
&os=linuxintel&lang=en-US&version=3.0.0"


Extract the file and install the RPMs, it takes a while.

tar -zvxf OOo*
sudo rpm -i OOO*/RPMS/o*
sudo rpm -i OOO*/RPMS/desktop-integration/openoffice.org3.0-redhat*


The path to the desktop icons need to be changed and the original icons restored.

sudo cp -f /opt/openoffice.org3/share/xdg/calc.desktop \
/usr/share/applications/openoffice.org-1.9-calc.desktop

sudo cp -f /opt/openoffice.org3/share/xdg/impress.desktop \
/usr/share/applications/openoffice.org-1.9-impress.desktop

sudo cp -f /opt/openoffice.org3/share/xdg/writer.desktop \
/usr/share/applications/openoffice.org-1.9-writer.desktop

sudo sed 's/org3-/org-/;s/%U//' -i /usr/share/applications/openoffice.org*

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


Finally the desktop must be made aware of the changes, which is solved via a simple reboot.

No comments: