Hi All ... first post for me.
Just wanted to let you all know that I managed to get OpemKM 5.1.9 working on Unubtu 12.04 using LibreOffice 3.4.4 as the previewer. However, it did not work straight out of the box for me. I set the properties:
Just wanted to let you all know that I managed to get OpemKM 5.1.9 working on Unubtu 12.04 using LibreOffice 3.4.4 as the previewer. However, it did not work straight out of the box for me. I set the properties:
system.openoffice.path=/usr/lib/libreofficeBut the previewer did not seem to work. Just got the message to see your OpenKM administrator. The logs were saying the OfficeManager service had stopped. While restarting the OpenKM server I monitored the system to see if the soffice.bin program was being launched ... and yes it was, but it soon terminated. OpenKM was launching soffice.bin in the following way:
system.openoffice.port=8100
/usr/lib/libreoffice/program/soffice.bin \Note that with LibreOffice the command switches now need "--". That is "-accept" is now "--accept". I ran this by hand and used jodconverter-2.2.2 to see if it was working ... all seemed okay. I then restarted OpenKM and it seemed to identify that the soffice.bin server was running and started using it. However, the preview document never appears. The screen is just grey with not document. I then reverted the command back to an earlier form posted on this forum and used:
-accept="socket,host=127.0.0.1,port=8100;urp; -env:UserInstallation=file:///tmp/.jodconverter_socket_host-127.0.0.1_port-8100" \
-headless -nocrashreport -nodefault -nofirststartwizard -nolockcheck -nologo -norestore
/usr/lib/libreoffice/program/soffice.bin --nologo --headless --nofirststartwizard \This seems to work for me. Document previews are working correctly. I'm not sure if I'm missing any new features by not using the newer command, but for the moment all seems good. I know start OpenKM using this init script:
--accept="socket,host=localhost,port=8100;urp;StarOffice.Service"
Code: Select all
#!/bin/sh
#
### BEGIN INIT INFO
# Provides: OpenKM
# Required-Start:
# Should-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: OpenKM (Document Management System)
### END INIT INFO
ECHO=/bin/echo
TEST=/usr/bin/test
SOFFICE=/usr/lib/libreoffice/program/soffice.bin
JBOSS_PATH=/usr/local/OpenKM
JBOSS_START_SCRIPT=${JBOSS_PATH}/bin/run.sh
JBOSS_STOP_SCRIPT=${JBOSS_PATH}/bin/shutdown.sh
OKM_USER=www-data
$TEST -x $JBOSS_START_SCRIPT || exit 0
$TEST -x $JBOSS_STOP_SCRIPT || exit 0
start() (
$ECHO "Starting JBoss OpenKM."
rm -rf ${JBOSS_PATH}/server/default/tmp
rm -rf ${JBOSS_PATH}/server/default/work
rm -rf ${JBOSS_PATH}/server/default/log
su -c "${SOFFICE} --nologo --headless --nofirststartwizard \
--accept=\"socket,host=localhost,port=8100;urp;StarOffice.Service\" &" $OKM_USER
su -l -c "$JBOSS_START_SCRIPT -b 0.0.0.0 > /dev/null 2> /dev/null &" $OKM_USER
$ECHO "Done."
)
stop () (
$ECHO "Stopping JBoss OpenKM. "
su -l -c "$JBOSS_STOP_SCRIPT -S > /dev/null &" $OKM_USER
sleep 10
$ECHO "Done."
)
case "$1" in
start )
start
;;
stop )
stop
;;
restart )
stop
sleep 30
start
;;
* )
$ECHO "Usage: jbossokm {start|stop|restart}"
exit 1
esac
exit 0