wiki:AnonymiserInstallation

ODF Anonymiser installation

The People at Itaapy have written a tool that can greek (anonymise) an ODF document. This functionality can be tied into Officeshots. To do that, the iodf-greek.py script needs to be installed locally.

Requirements

  • Python 2.5
  • Python GObject with GIO bindings (python-gobject)

Installing python-gobject

The Debian Lenny version of python-gobject is too old. It lacks the GIO interface required by iTools. Therefor we need to backport this package from Debian Squeeze. You can't install the Squeeze version directly because it will cause a lot of package conflicts on your system.

install dependencies

A few packages package is required to use python-gobject. They available from backports.org

# aptitude install -t lenny-backports gobject-introspection libglib2.0-0 libglib2.0-dev libgirepository1.0-0 libgirepository1.0-dev

Backport python-gobject

Create a directory and download the source code. Note that you need to add the Debian Squeeze repositories to your sources.list.

$ mkdir python-gobject
$ cd python-gobject
$ apt-get source python-gobject

Install the buils dependencies.

# apt-get build-dep python-gobject

Build the package

$ cd pygobject-2.20.0
$ dpkg-buildpackage -us -uc -rfakeroot

Install the newly built packages.

# cd ..
# dpkg -i python-gobject_2.20.0-1_i386.deb

Installation

Check out a copy of the upstream Git repository.

$ git clone git://git.hforge.org/itools.git
$ cd itools
$ git branch 0.60 origin/0.60
$ git checkout 0.60

Run the installation:

# python ./setup.py install

Configuration

Edit app/config/core.php and add the following configuration setting:

Configure::write('Anonymiser.path', '/usr/bin/iodf-greek.py');
Last modified 9 years ago Last modified on 05/25/10 12:03:36