Difference between revisions of "Apache OpenOffice"

From ArchWiki
Jump to: navigation, search
m (Introduction: update supported branches)
(Installation: some notes about langpacks)
Line 47: Line 47:
  
 
==Installation==
 
==Installation==
* First, install a Java Runtime Environment (optional, highly recommended):
+
* First, install a Java Runtime Environment (optional, highly recommended), either the GPLed free one or the closed one from SUN:
  # pacman -S openjdk6  
+
  # pacman -S openjdk6 / jre  
or
 
# pacman -S jre
 
 
* Also, make sure that fonts are installed (otherwise you will see only rectangles):
 
* Also, make sure that fonts are installed (otherwise you will see only rectangles):
  # pacman -S artwiz-fonts ttf-ms-fonts
+
  # pacman -S ttf-dejavu artwiz-fonts ttf-ms-fonts (and additionally any other needed for your language)
 
* Download the base for stable and/or beta and/or devel and/or go-oo:
 
* Download the base for stable and/or beta and/or devel and/or go-oo:
  # pacman -S openoffice-base openoffice-base-beta openoffice-base-devel go-openoffice
+
  # pacman -S openoffice-base openoffice-base-beta openoffice-base-devel go-openoffice.
 +
 
 +
* Download language package, the main package contains only en_US files. We offer now all upstream shipped langpacks. We currently don't ship langpacks for go-openoffice.
 +
# pacman -S openoffice-en_GB openoffice-de ....
  
  
Line 81: Line 82:
  
 
===Set OOo environment variable===
 
===Set OOo environment variable===
OpenOffice2 introduced the ability to use several toolkits for drawing and integrates into different desktop environments in a clean way. To choose by hand, you need to set the OOO_FORCE_DESKTOP environment variable.
+
OpenOffice supports to use several toolkits for drawing and integrates into different desktop environments in a clean way. To choose by hand, you need to set the OOO_FORCE_DESKTOP environment variable.
  
To run OpenOffice.org in GTK2 mode, you can issue (using bash):
+
To run OpenOffice.org in GTK2 mode(this is default and already preset), you can issue (using bash):
 
   # OOO_FORCE_DESKTOP=gnome soffice
 
   # OOO_FORCE_DESKTOP=gnome soffice
 
To run OpenOffice.org in QT/KDE3 mode, you can issue (using bash):
 
To run OpenOffice.org in QT/KDE3 mode, you can issue (using bash):
 
   # OOO_FORCE_DESKTOP=kde soffice
 
   # OOO_FORCE_DESKTOP=kde soffice
 +
To run OpenOffice.org in QT4/KDE4 mode, you can issue (using bash):
 +
  # OOO_FORCE_DESKTOP=kde4 soffice
  
{{Box Note | As KDE look will be removed in Openoffice3 it is highly recommended to use the GTK mode for all users. }}
+
{{Box Note | As KDE look was removed in Openoffice3 it is highly recommended to use the GTK mode for all users. KDE4 integration is in experimental state in go-openoffice and in openoffice-base-devel (starting from m56)}}
  
 
====Configure globally====
 
====Configure globally====
To configure the look for anytime OpenOffice gets started, you can export the variable in one of the startup scripts, either system wide or for a specific user.
+
To configure the look for anytime OpenOffice gets started, you can export the variable in /etc/profile.d/openoffice.sh.
 
 
Put
 
  export OOO_FORCE_DESKTOP=gnome
 
in ~/.bashrc, ~/.config/openbox/autostart.sh, or similar to configure for one user.
 
 
 
For all users, create the file "/etc/profile.d/openoffice.sh", put the export in there, and make the file executable.
 
  # chmod +x /etc/profile.d/openoffice.sh
 
You could also put the export in /etc/profile directly, or in rc.local, but this is less clean.
 
 
 
This export is obsolete for all OOo versions >= 3.0.0-2. Since that version the official package ships its own /etc/profile.d/openoffice.sh!
 
  
 
====Environment variable scripts====
 
====Environment variable scripts====
Line 111: Line 104:
 
   #### openoffice-gtk - A script to start openoffice with the GNOME/GTK environment
 
   #### openoffice-gtk - A script to start openoffice with the GNOME/GTK environment
 
    
 
    
   OOO_FORCE_DESKTOP=gnome /opt/openoffice/program/soffice "$@"
+
   OOO_FORCE_DESKTOP=gnome /usr/bin/soffice "$@"
  
 
Just use this script as a command (e.g, /usr/bin/openoffice-gtk) for your menu or whatever other sort of launcher you use.
 
Just use this script as a command (e.g, /usr/bin/openoffice-gtk) for your menu or whatever other sort of launcher you use.
Line 120: Line 113:
 
OOO_FORCE_DESKTOP=gnome never did the trick for me. A good workaround is to set (as root):
 
OOO_FORCE_DESKTOP=gnome never did the trick for me. A good workaround is to set (as root):
 
  export SAL_GTK_USE_PIXMAPPAINT=1
 
  export SAL_GTK_USE_PIXMAPPAINT=1
into /etc/profile. In KDE4 systemsettings, make sure "use my KDE style in GTK applications" is selected in Appearance > GTK styles and fonts (you must install gtk-qt-engine first).
+
into /etc/profile.d/openoffice.sh. In KDE4 systemsettings, make sure "use my KDE style in GTK applications" is selected in Appearance > GTK styles and fonts (you must install gtk-qt-engine first).
  
 
==Running OpenOffice==
 
==Running OpenOffice==

Revision as of 05:25, 28 August 2009

Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n links end

Introduction

OpenOffice.org is a leading open-source office software suite for word processing, spreadsheets, presentations, graphics, databases and more.

Arch offers 4 trees of binary packages for OpenOffice with different package names:

openoffice-base

This will always be the last released stable version of OpenOffice.
Current version: 3.1.1
start it with "soffice" or from Desktop menu

openoffice-base-beta

This package will be only present when a new release is not far away. It will be the alpha, beta, and release candidates packages for the next stable release.
Current version: 3.1.1_ooo310_m17-1 (way to =3.1.1rcX) (versions branched from DEV300_m40 that will lead to next stable 3.1.x release)
start it with "soffice-beta" or from Desktop menu
It's safe to install it together with the stable and devel version.
Please test it carefully and report upstream bugs to OpenOffice and packaging bugs in our flyspray
see http://wiki.services.openoffice.org/wiki/OOoRelease311 for roadmap

openoffice-base-devel

This packages will be updated from time to time and is a playground for the packager and for testing latest features. Please test and file upstream issues at http://www.openoffice.org/issues/query.cgi
Current version: 3.2_dev300_m55-1 / snapshot DEV300_m55 (snapshots past branching the 3.1 stable tree that will lead to 3.2 release and beyond)
start it with "soffice-dev" or from Desktop menu
It's safe to install it together with the stable and beta version
see http://wiki.services.openoffice.org/wiki/OOoRelease32 for roadmap

go-openoffice

In addition, there is a package for go-openoffice also called ooo-build - the "Novell fork" in the extra repository, which includes enhancements and features found in versions of openoffice.org available in Ubuntu, OpenSuSE and other distributions. For users of Arch switching from other distributions go-openoffice may be more familiar to them. It will always be the latest stable release in extra based on the source of openoffice-base pkg. Future beta/devel versions will go to the testing repo.
Right now go-openoffice cannot be installed along any other openoffice branch. It's a replacement.

Note: If you play with more than one openoffice-base version it's highly recommended to always backup your configuration directory ~/.openoffice{2,3} !

Installation

  • First, install a Java Runtime Environment (optional, highly recommended), either the GPLed free one or the closed one from SUN:
# pacman -S openjdk6 / jre 
  • Also, make sure that fonts are installed (otherwise you will see only rectangles):
# pacman -S ttf-dejavu artwiz-fonts ttf-ms-fonts (and additionally any other needed for your language)
  • Download the base for stable and/or beta and/or devel and/or go-oo:
# pacman -S openoffice-base openoffice-base-beta openoffice-base-devel go-openoffice.
  • Download language package, the main package contains only en_US files. We offer now all upstream shipped langpacks. We currently don't ship langpacks for go-openoffice.
# pacman -S openoffice-en_GB openoffice-de ....


Extension management and spell checking for OpenOffice 3.x

The Arch package is now shipped with some dictionaries. Check Extension manager if your language is already there simply by loading up any OO program (Writer for example) and access the Extension Manager from the Tools menu. From there enter the following location to install a spell check dictionary:

/usr/lib/openoffice/share/extension/install

Alternatively, there are several ways to accomplish this:

  • 1) Use the Extension manager from OOo menu for download and installation - installs only for the user into his ~/.openoffice.org/3/user/uno_packages/cache
  • 2) Download the extension and install it using "unopkg add extension" for the user or
  • 3) Download the extension and install it using "unopkg add --shared extension" for every user on the system (requires root permission)

French dictionary

As of openoffice 3.0.0-2 the french dictionary is buggy due to a character encoding problem. To solve this problem, first execute the following commands (you'll need zip and unzip packages):

$ cp /opt/openoffice/share/extension/install/dict-fr.oxt dict-fr.oxt
$ unzip dict-fr.oxt -d dict-fr
$ cd dict-fr
$ iconv -f ISO-8859-15 -t UTF-8 dictionaries.xcu > dictionaries.xcu.utf
$ mv dictionaries.xcu.utf dictionaries.xcu
$ zip ../dict-fr.oxt *
$ cd ../
$ rm -r dict-fr

then go in the openoffice extension manager (Tools menu) and install the dictionary from the new dict-fr.oxt file.

Set OOo environment variable

OpenOffice supports to use several toolkits for drawing and integrates into different desktop environments in a clean way. To choose by hand, you need to set the OOO_FORCE_DESKTOP environment variable.

To run OpenOffice.org in GTK2 mode(this is default and already preset), you can issue (using bash):

 # OOO_FORCE_DESKTOP=gnome soffice

To run OpenOffice.org in QT/KDE3 mode, you can issue (using bash):

 # OOO_FORCE_DESKTOP=kde soffice

To run OpenOffice.org in QT4/KDE4 mode, you can issue (using bash):

 # OOO_FORCE_DESKTOP=kde4 soffice

Template:Box Note

Configure globally

To configure the look for anytime OpenOffice gets started, you can export the variable in /etc/profile.d/openoffice.sh.

Environment variable scripts

If for whatever reason you don't want to configure the look globaly, as a non-gnome/kde user you may run into problems when trying to add the environment variable to the command in a *box menu, as such menus don't seem to like environment variables.

This script will run openoffice using the GTK look while still accepting command line options like -writer.

 #!/bin/sh
 
 #### openoffice-gtk - A script to start openoffice with the GNOME/GTK environment
 
 OOO_FORCE_DESKTOP=gnome /usr/bin/soffice "$@"

Just use this script as a command (e.g, /usr/bin/openoffice-gtk) for your menu or whatever other sort of launcher you use.

Template:Box Note

KDE4 look & feel for OpenOffice

OOO_FORCE_DESKTOP=gnome never did the trick for me. A good workaround is to set (as root):

export SAL_GTK_USE_PIXMAPPAINT=1

into /etc/profile.d/openoffice.sh. In KDE4 systemsettings, make sure "use my KDE style in GTK applications" is selected in Appearance > GTK styles and fonts (you must install gtk-qt-engine first).

Running OpenOffice

If you want to run a specific module of OpenOffice.org (instead of the soffice default Startcenter), for example the word processor (Write), spreadsheet application (Calc) or presentation program (Impress), check for the following script front-ends:

Writer

 /usr/bin/soffice -writer

Calc

 /usr/bin/soffice -calc

Impress

 /usr/bin/soffice -impress

Draw

 /usr/bin/soffice -draw

Math (Formula Editor)

 /usr/bin/soffice -math

Base (Database frontend)

 /usr/bin/soffice -base

Printer Administration (Recommended to run as root)

 /usr/bin/spadmin

Known Problems

  • qt look'n feel since kde4 release, go-openoffice and openoffice-base-devel have kde4 integeration
  • Rendering problems with some dark GTK themes and gtk-qt-engine. For a dirty fix, see openoffice-dark-gtk-fix or if you have go-openoffice see go-openoffice-dark-gtk-fix on the AUR. This also sets OOO_FORCE_DESKTOP=gnome.