Apache OpenOffice

From ArchWiki
Revision as of 21:22, 18 September 2007 by Sandstorm (Talk | contribs) (Known Problems)

Jump to: navigation, search


This article gives you some hints on OpenOffice.org. Please notify me if you want to change something in the wiki (tpowa - package maintainer). The packages are not source-compiled packages; only OO.org's binaries are packaged for pacman.

OpenOffice.org 2 Setup

Installation

  • First, install a Java Runtime Environment (optional, highly recommended):
# pacman -S jre
  • Download the base:
# pacman -S openoffice-base
  • Install one or more language packs. This is optional as English is already included in the base:
# pacman -S openoffice-XX (where XX is a language)
  • Install spellchecker files (optional):
# pacman -S openoffice-spell-XX (where XX is a language)
  • Spellcheckers and language packs for other languages can be found in AUR.

Setup

Run '/opt/openoffice/program/soffice' to set up OpenOffice 2 for a regular user on first startup and to start OpenOffice 2.

OpenOffice 2 introduces 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, either system-wise (like in /etc/profile.d/) or in the specific shell OpenOffice.org is running in.

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

 # OOO_FORCE_DESKTOP=gnome soffice

Perhaps you would like to put it in /usr/bin/soffice:

 export OOO_FORCE_DESKTOP=gnome

or put it into ~/.bashrc

export OOO_FORCE_DESKTOP=gnome

Running

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

Writer

 /opt/openoffice/program/swriter

Calc

 /opt/openoffice/program/scalc

Impress

 /opt/openoffice/program/simpress

Math (Formula Editor)

 /opt/openoffice/program/smath

Base (Database frontend)

 /opt/openoffice/program/sbase

Printer Administration (Recommended to run as root)

 /opt/openoffice/program/spadmin

Known Problems

  • If you have problems while upgrading from OOo 1.1.x to OOo 2.x try this:

- If the install wizard asks you for taking old options from 1.1.x deny that.
- Remove old .openoffice* dirs from your <home>
- Remove old OpenOffice* dirs from your <home>
- Remove .sversionrc from your <home>
The same procedure applies if OOo terminates with an exception like terminate called after throwing an instance of com::sun::star::uno::RuntimeException. This could happen after a minor upgrade, e.g. from OOo 2.2 to 2.3.

  • To remove menu entries from OOo 1.1.x in KDE:

- Remove ~/.kde/share/applnk/OpenOffice*

  • If you can't read/write on NFS disks, edit /opt/openoffice2/program/soffice. You may have to disable file locking by commenting out:
# file locking now enabled by default
#SAL_ENABLE_FILE_LOCKING=1
#export SAL_ENABLE_FILE_LOCKING
  • If it does not start with possible error javaldx: Could not find a Java Runtime Environment!

and then you get a plain error dialog about init failed, then remove your ~/.openoffice2 dir.

  • If OpenOffice.org fails to start, verify that you have proper permissions in /etc/X11/xorg.conf, by looking at your DRI settings.
  • If in doubt, this configuration should work:
 Section "DRI"
 Group "users"
 Mode 0660
 EndSection
  • Or, if you don't want to enable DRI and related stuff, run it as ROOT.
  • If the setup wizard pops up every time OpenOffice.org is run (and performance is poor or keeps hanging) then check permissions on ~/.openoffice2; it might be owned by root.

OpenOffice.org 1.1.4 Setup

Installation

  • Download the base
# pacman -S openoffice-base
  • You must install a language pack, otherwise it will not run! (English is not included)
# pacman -S openoffice-XX (where XX is a language)
  • Spell Checking requires additional packages!
# pacman -S openoffice-spell-XX (where XX is a language)

Addons

OpenOffice.org quickstarter is available for KDE

# pacman -S oooqs

Setup

  1. Run '/opt/openoffice/setup' to set up OpenOffice.org for a regular user.
  2. Run 'soffice' to start OpenOffice.org.