centos – jboss e openoffice

Per far andare le stampe in pdf da un applicativo java (jboss) installare i seguenti pacchetti:
openoffice.org-calc-3.1.1-19.5.el5_5.1
openoffice.org-sdk-3.1.1-19.5.el5_5.1
openoffice.org-headless-3.1.1-19.5.el5_5.1
openoffice.org-writer-3.1.1-19.5.el5_5.1
openoffice.org-core-3.1.1-19.5.el5_5.1
openoffice.org-base-3.1.1-19.5.el5_5.1
openoffice.org-ure-3.1.1-19.5.el5_5.1
openoffice.org-xsltfilter-3.1.1-19.5.el5_5.1

poi installare jboss come da documento http://thewiki4opentech.org/index.php/How_to_install_JBoss_AS_in_CentOS_/_RedHat_/_Fedora

Ricordarsi di modificare openoffice per l’ascolto su ip e porta:

socket,host=localhost,port=8100;urp;StarOffice.ServiceManager
poi fare lo script di avvio di openoffice
#!/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 0

scaricare i font di microsoft wget http://quattorsrv.lal.in2p3.fr/packages/lemon/sl-i386/msttcorefonts-2.0-1.noarch.rpm

e poi… basta

Leave a Reply

Your email address will not be published.