|
OpenOfficeConverter
OpenOffice Converter Installation instructions
Starting OO in headless with Version OpenOffice 3.0 ++Starting with OO 3.0 you do not need Xvfb anymore you can just use this:
Linux (Debian,Ubuntu)Open Office 2.4 Debian, UbuntuThere are some improvements related to Openoffice 2.4 version. If you have to run old versions of Openoffice for any reason, please find the old section below. With 2.4, no more xvfb framebuffer needed. Installation steps (based on Etch 4.0 i386)
unset DISPLAY /usr/lib/openoffice/program/soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nologo -headless -nofirststartwizard
com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection connect INFO: connected com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection disposing INFO: disconnected
webapp/src/app/org/openmeetings/app/remote/Application.java line 66 and change to your context (will be fixed in svn)
Install Open Office Service on Debian/(K)Ubuntu (versions > 2.3)
sudo apt-get install openoffice.org-headless vi /etc/init.d/openoffice.sh #!/bin/bash
# openoffice.org headless server script
#
# chkconfig: 2345 80 30
# description: headless openoffice server script
# processname: openoffice
#
# Author: Vic Vijayakumar
# Modified by Federico Ch. Tomasczik
#
OOo_HOME=/usr/bin
SOFFICE_PATH=$OOo_HOME/soffice
PIDFILE=/var/run/openoffice-server.pid
set -e
case "$1" in
start)
if [ -f $PIDFILE ]; then
echo "OpenOffice headless server has already started."
sleep 5
exit
fi
echo "Starting OpenOffice headless server"
$SOFFICE_PATH -headless -nologo -nofirststartwizard -accept="socket,host=127.0.0.1,port=8100;urp" & > /dev/null 2>&1
touch $PIDFILE
;;
stop)
if [ -f $PIDFILE ]; then
echo "Stopping OpenOffice headless server."
killall -9 soffice && killall -9 soffice.bin
rm -f $PIDFILE
exit
fi
echo "Openoffice headless server is not running."
exit
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0chmod 0755 /etc/init.d/openoffice.sh update-rc.d openoffice.sh defaults /etc/init.d/./openoffice.sh start netstat -nap | grep office You should get something like this: tcp 0 0 127.0.0.1:8100 0.0.0.0:* LISTEN 2467/soffice.bin
Note: This script is based on Vic Vijayakumar's script at http://little.bluethings.net/2008/05/30/automating-document-conversion-in-linux-using-jodconverterooo/ Install Open Office Service on Debian/(K)Ubuntu Old Versions prior to 2.3
sudo apt-get install xvfb openoffice.org <prop oor:name="ooSetupConnectionURL" oor:type="xs:string"> <value>socket,host=localhost,port=8100;urp</value> </prop> xvfb-run --server-args='-screen 0 800x600x16' -a /usr/lib/openoffice/program/soffice -headless -nologo -norestore NOTE: Since OpenOffice 2.3 comes already with an build-in FrameBuffer there is no need for xvfb anymore. Mac OSxInstall Open-Office from the Open-Office webside Normally it is installed into your Application folder. Goto file: /Applications/OpenOffice.org\ 2.0.app/Contents/MacOS/share/registry/data/org/openoffice/Setup.xpu add the following after the node <node oor:name="Office"> : <prop oor:name="ooSetupConnectionURL">
<value>
socket,host=localhost,port=8100;urp;StarOffice.ServiceManager
</value>
</prop> start x11/x-server (you can just start openoffice the normal way, close the openoffice app again but do NOT close the x-server/x-terminal, it will open a display for x11 on display :0) open a new terminal and type: sudo /Applications/OpenOffice.org\ 2.0.app/Contents/MacOS/program/soffice -display :0 -headless -nologo -norestore OR /Applications/OpenOffice.org\ 2.0.app/Contents/MacOS/program/soffice -display :0 -headless -nologo -norestore sudo depends of your Red5 service .. if red5 is started as sudo (which must be started as sudo if the server is listening on port 80 (or smaller 1200) then ooservice also has to run as sudo cause it writes/reads from directories which red5 creates. Windows
soffice.exe -headless -nologo -norestore -accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager
you should find a line:TCP 127.0.0.1:8100 0.0.0.0:0 LISTENING For more info see: http://www.artofsolving.com/node/11 Links |
Sign in to add a comment
On Debian the headless option (framebuffer buid-in implementation) require an additional package : openoffice.org-headless . Next to launch OOo converter, just type : soffice -headless -nologo -norestore -accept="socket,host=localhost,port=8100;urp"
Debian etch users; openoffice.org-headless AND openoffice.org-java-common needed otherwise javaldx: Could not find a Java Runtime Environment! error occurs. do not forget to remove /userxxx/.openoffice2/ dir if you tried something.
I am on Centos 5, I have installed openoffice but xvfb-run is not available.
Openoffice 2.4 headless no more needs xvfb to run. Check the version of openoffice.
I have edited /opt/openoffice.org2.4/share/registry/data/org/openoffice/Setup.xcu
Now when I start /opt/openoffice.org2.4/program/soffice -headless -nologo -norestore &
and then try to see port using lsof -w -n -i tcp:8100 I get nothing.
Hi Jai.edvanta, \\
You have to install this package "openoffice.org-headless-2.4.1-9310.i586.rpm"
after adding "deb http://www.backports.org/debian etch-backports main contrib non-free" at apt source.list. I get errors when run "apt-get update" W: GPG error: http://www.backports.org etch-backports Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EA8E8B2116BA136C W: You may want to run apt-get update to correct these problems
Hi Jai.edvanta, a bit late, but i think you must add -nofirststartwizard to the startline like mentioned above in the init-script example. otherwise soffice won't even start headless as far as i tested...
On the Mac, there seems to be 2 Setup.xcu files: /Applications/OpenOffice?.org.app/Contents/basis-link/share/registry/data/org/openoffice/Setup.xcu /Applications/OpenOffice?.org.app/Contents/basis-link/share/registry/res/en-US/org/openoffice/Setup.xcu
I am using Open Office 3.0.1 and not 2.0 in the setup listed.
Also the location of soffice has changed: /Applications/OpenOffice?.org.app/Contents/MacOS/soffice
Does anyone know of a good combination of openoffice with headless package for Centos? I've installed openoffice.org3.0.1 on the server (using RPM package) but can't find a headless i586 package for it anywhere.
Getting headless to work on Centos seems to be a nightmare ...
Hi, I am trying to install openoffice.org-headless, but get "Broken packages":
~# apt-get install openoffice.org-headless Reading package lists... Done Building dependency tree... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
Since you only requested a single operation it is extremely likely that the package is simply not installable and a bug report against that package should be filed. The following information may help to resolve the situation:
The following packages have unmet dependencies:
E: Broken packagesOn a CentOS 5 system, when i type:
/usr/lib/openoffice.org/program/soffice.bin -headless -nofirststartwizard -accept="socket,host=localhost,port=8100;urp;StarOffice?.Service"
I get ...
/usr/lib/openoffice.org/program/soffice.bin: /usr/local/lib/libpng12.so.0: no version information available (required by /usr/lib/libcairo.so.2)
Any ideas anyone?