Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ahamed Sakir
LR- 6.1 .C.E - Libre office integration
June 16, 2012 7:43 AM
Answer

Ahamed Sakir

Rank: Regular Member

Posts: 117

Join Date: August 22, 2008

Recent Posts

Hi all,
How to config Libre office in LR 6.1 C.E.
Any docs please share....


Regards
Sakir
Linus Sphinx
RE: LR- 6.1 .C.E - Libre office integration
June 18, 2012 3:34 PM
Answer

Linus Sphinx

Rank: Junior Member

Posts: 84

Join Date: August 12, 2010

Recent Posts

Just need to install open office, think it's exactly the same as libre, not that much difference, can show you how to do that. I use Control Tier and keep them in it's WebDAV space since it's not part of redhat server and I do this almost daily, big list in install script puts them in the proper order plus a few more extra;

------------------------install.sh
#!/bin/sh
# install open office as a service
EXT=.x86_64.rpm
RPMS="openoffice.org-ure-1.6.1-9502 ooobasis3.2-core01-3.2.1-9502 ooobasis3.2-core02-3.2.1-9502 ooobasis3.2-core03-3.2.1
-9502 ooobasis3.2-core04-3.2.1-9502 ooobasis3.2-core05-3.2.1-9502 ooobasis3.2-core06-3.2.1-9502 ooobasis3.2-core07-3.2.1-9502 ooobasis3.2-base-3.2.1-9502 ooobasis3.2-binfilter-3.2.1-9502 ooobasis3.2-calc-3.2.1-9502 ooobasis3.2-draw-3.2.1-9502 ooobasis3.2-en-US-3.2.1-9502 ooobasis3.2-en-US-base-3.2.1-9502 ooobasis3.2-en-US-binfilter-3.2.1-9502 ooobasis3.2-en-US-calc-3.2.1-9502 ooobasis3.2-en-US-draw-3.2.1-9502 ooobasis3.2-en-US-help-3.2.1-9502 ooobasis3.2-en-US-impress-3.2.1-9502 ooobasis3.2-en-US-math-3.2.1-9502 ooobasis3.2-en-US-res-3.2.1-9502 ooobasis3.2-en-US-writer-3.2.1-9502 ooobasis3.2-gnome-integration-3.2.1-9502 ooobasis3.2-graphicfilter-3.2.1-9502 ooobasis3.2-images-3.2.1-9502 ooobasis3.2-impress-3.2.1-9502 ooobasis3.2-javafilter-3.2.1-9502 ooobasis3.2-kde-integration-3.2.1-9502 ooobasis3.2-math-3.2.1-9502 ooobasis3.2-onlineupdate-3.2.1-9502 ooobasis3.2-ooofonts-3.2.1-9502 ooobasis3.2-oooimprovement-3.2.1-9502 ooobasis3.2-ooolinguistic-3.2.1-9502 ooobasis3.2-pyuno-3.2.1-9502 ooobasis3.2-testtool-3.2.1-9502 ooobasis3.2-writer-3.2.1-9502 ooobasis3.2-xsltfilter-3.2.1-9502 openoffice.org3-3.2.1-9502 openoffice.org3-base-3.2.1-9502 openoffice.org3-calc-3.2.1-9502 openoffice.org3-dict-en-3.2.1-9502 openoffice.org3-dict-es-3.2.1-9502 openoffice.org3-dict-fr-3.2.1-9502 openoffice.org3-draw-3.2.1-9502 openoffice.org3-en-US-3.2.1-9502 openoffice.org3-impress-3.2.1-9502 openoffice.org3-math-3.2.1-9502 openoffice.org3-writer-3.2.1-9502"
echo "Installing openoffice..."
cd /tmp
for i in $RPMS
do
echo Now working: $i
ctl -l warning -m davutil -c get -- -url dav://parts/oo/${i}${EXT} -dest /tmp
sudo rpm -ivh /tmp/${i}${EXT}
rm -f /tmp/${i}${EXT}
done

echo Now working: openoffice.org-userland-1.0-0.noarch.rpm
ctl -l warning -m davutil -c get -- -url dav://parts/oo/openoffice.org-userland-1.0-0.noarch.rpm -dest /tmp
sudo rpm -ivh /tmp/openoffice.org-userland-1.0-0.noarch.rpm

echo Now working: openoffice.org3.2-redhat-menus-3.2-9502.noarch.rpm
ctl -l warning -m davutil -c get -- -url dav://parts/oo/openoffice.org3.2-redhat-menus-3.2-9502.noarch.rpm -dest /tmp
sudo rpm -ivh /tmp/openoffice.org3.2-redhat-menus-3.2-9502.noarch.rpm

sudo chown ctier /etc/rc.d/init.d
ctl -l warning -m davutil -c get -- -url dav://projects/allsystems/modules/OPENOFFICE/objects/oo.sh -dest /etc/rc.d/init
chmod +x /etc/rc.d/init.d/oo
sudo chown root /etc/rc.d/init.d
echo "Installation complete."
-----------------------------eo install.sh

-----------------------------oo init startup/shutdown openoffice as a service script:
#!/bin/sh
# chkconfig: 2345 91 11
# description: start/stop openoffice doc conversion service
#

start() {
if [ -e /usr/sbin/soffice ]; then
echo 'Openoffice is not installed.'
exit 1
else
/usr/bin/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard&
echo $! > /tmp/soffice.pid
fi
}

stop() {
netstat -an | grep 8100 | grep LISTEN
if [[ $? = 0 ]]; then
kill `cat /tmp/soffice.pid`
return 0
else
echo "Not running"
fi
}

status() {
if [ -e /usr/bin/soffice ]; then
echo Openoffice not installed
fi
netstat -an | grep 8100 | grep LISTEN
if [[ $? = 1 ]]; then
echo "OO offline."
else
echo "OO online."
fi
return 0
}
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status
;;
*)
echo $"Usage: $0 {start|stop|status}"
exit 1
esac
exit $?
------------------------------eo oo startup/shutdown script

Install as above, add run change script, execute `chkconfig --add oo`,

enable it in your portal with:
---------------------- portal-ext.properties
openoffice.server.enabled=true
openoffice.server.host=127.0.0.1
openoffice.server.port=8100
openoffice.cache.enabled=true
----------------------eo portal-ext.properties
DarshanKumar N Bhatia
RE: LR- 6.1 .C.E - Libre office integration
June 18, 2012 8:33 PM
Answer

DarshanKumar N Bhatia

Rank: Junior Member

Posts: 85

Join Date: March 2, 2010

Recent Posts

Ahamed Sakir:
Hi all,
How to config Libre office in LR 6.1 C.E.
Any docs please share....


Regards
Sakir



Hi...

Doc .. http://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/documents-and-media

OpenOffice/LibreOffice: for office documents start OpenOffice or LibreOffice in server mode by running:

soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;"

and enable either through External Services in Control Panel or in portal-ext.properties:

openoffice.server.enabled=true

HTH.....