Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Alfresco 5 Office Preview Fix

check if libreoffice is running

/opt/alfresco-5.0.a/libreoffice/scripts/ status

edit the file /opt/alfresco-5.0.a/ modify the line LIBREOFFICE_SCRIPT with the correct script path


test for missing libraries

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

install missing libraries (I had missing libxinerama1 and libdbus-glib-1-2)

apt-get install libxinerama1
apt-get install libdbus-glib-1-2

Debian 8:
libglu1-mesa libcups2 libfontconfig1

Edit (remove "")

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

try to start opeoffice using the script

/opt/alfresco-5.0.a/libreoffice/scripts/ start

restart alfresco

/etc/init.d/alfresco restart

you must see the line

/opt/alfresco-5.0.a/libreoffice/scripts/ : libreoffice started at port 8100
Credit: caolem, arannasousa
Copy link

usayao commented May 14, 2018

why not work in alfresco5.2.0 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment