• [solved] minimum install of LibreOffice for PDF conversion?

  • Problems with installing OpenKM? No problemo, the solution is closer than you think.
Problems with installing OpenKM? No problemo, the solution is closer than you think.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #24324  by Discta
 
Hello,

I have a lean Ubuntu Server 10.04 installed with OpenKM 6.2.3.
Now I would like to add PDF conversion with LibreOffice.

I would like to avoid to install packages I do not need. I access my server only via console or ssh, so I do not need packages related to graphic display or xserver.

When I simulate
Code: Select all
apt-get -s install libreoffice
I get the information 134 new packages to be installed.

When I simulate
Code: Select all
apt-get -s install libreoffice-draw libreoffice-writer libreoffice-calc libreoffice-impress 
I get the information 84 new packages to be installed which brings packages like
libreoffice-base-core libreoffice-common libreoffice-core and others.

Is it enough for OpenKM to have those 84 packages installed? Or is it possible to have even less?
What are critical packages additional to LibreOffice?

Thanks for your help and kind regards

Disc
Last edited by Discta on Tue Jul 23, 2013 8:25 pm, edited 1 time in total.
 #24336  by jllort
 
Install all libreoffice and do not make experiments. There're some packages like uno, headless etc... that are mandatory to start libreoffice as service, make your life more easy and i suggest install everything apt-get install libreoffice

In other case installing only some packages at ends you're on way to get some problems and few information how to solve it, really you'll not found in this forum you should make you question in openoffice / libreoffice forums about minimal packages to run soffice service from command line ( what's something which does openkm for you ). If you can start soffice from command line as service should also be started by openkm.
 #24366  by Discta
 
I considered your warning, but then I decided to try it like this:

As LibreOffice is not contained in my current repository I had to set this first:
Code: Select all
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update
Then I could install a minimum LibreOffice
Code: Select all
sudo apt-get install libreoffice-draw libreoffice-writer libreoffice-calc libreoffice-impress
It installed 84 packages (~340 MB) with all necessary dependencies, including uno, libreoffice-common, ...
Then I also installed imagemagick
Code: Select all
sudo apt-get install imagemagick
Then I needed pdf2swf which is contained in swftools.
For this, I had to uncomment this line in /etc/sourced.list:
Code: Select all
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner
Now I could install it
Code: Select all
apt-get update
apt-get install swftools
Then I did the necessary adjustments in OpenKM:
Login as admin and select administration. In setting (symbol with tools) I edited some lines like this:
Code: Select all
system.openoffice.path=/usr/lib/libreoffice
system.imagemagick.convert=/usr/bin/convert
system.swftools.pdf2swf=/usr/bin/pdf2swf -T 9 -f -t -G -s storeallcharacters ${fileIn} -o ${fileOut}
It was helpful to click on the small green symbol on top right of the list, to get the new settings checked.

Finally I restarted OpenKM again.

Now I can preview almost all of my LibreOffice documents. It works on 90 % of them and on some not.
I am about to trace this last issue. I suspect that something inside the document causes the problem.

But I am happy so far with the result :D

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.