Alfresco 5 – LibreOffice Preview

Bei den neuen Alfresco-Community Versionen, installiert über die Default-Installationsroutine (Version 5.0.a – 5.1), habe allesamt das Problem, dass die Preview-Funktion von docx, doc, odt, etc. nicht funktioniert und auch ein Upload eines Media-Files mit einem Fehler endet.

Siehe auch:

http://alfresco-ecm.cz/wp/2015/03/22/alfresco-5-libreoffice-working/

Folgende Links bringen die Lösung:

Symbolic-Link erstellen

ln -s /array/alfresco/libreoffice/scripts/libreoffice_ctl.sh /array/alfresco/libreoffice/scripts/ctl.sh

Libreoffice ctl File anpassen :

vi /opt/alfresco/libreoffice/scripts/ctl.sh

Man beachte Linie:

SOFFICE="$SOFFICEWRAPPER --nofirststartwizard --nologo --headless "--accept=socket,host=localhost,port=$SOFFICE_PORT\;urp\;StarOffice.ServiceManager""

mit den doppelten Gänsefüsschen (“”):

# Libre Office
 SOFFICE_PATH="/array/alfresco/libreoffice/program"
 SOFFICE_PORT="8100"
 SOFFICEBIN=/array/alfresco/libreoffice/program/.soffice.bin
 SOFFICEWRAPPER=/array/alfresco/libreoffice/program/soffice.bin
 SOFFICE="$SOFFICEWRAPPER --nofirststartwizard --nologo --headless "--accept=socket,host=localhost,port=$SOFFICE_PORT\;urp\;StarOffice.ServiceManager""
 SOFFICE_STATUS=""

Unter Ubuntu xenial konnte libreoffice auch nicht starten, weil eine library gefehlt hat:

Check:

/opt/alfresco-5.0.a/libreoffice/program/soffice.bin --nofirststartwizard --nologo --headless --accept=socket,host=localhost,port=8100

Resultat:

libreoffice libGL.so.1: cannot open shared object file: No such file or directory

Abhilfe:

sudo apt-get install libglu1