[xwiki-users] Open Office Headless & Issues Adding New Users
1) I discovered that I was unable to add users until I installed a bunch of font packages. It seems that even when disabled, the user addition (from the admin panel) wants to use the CAPTCHA. It can't generate the CAPTCHA without the fonts. I wanted to mention this in case someone else runs in to it. I tore down the Xwiki install and rebuilt it 3 times before I figured out what the problem was. 2) I am documenting what I did to get Open Office to run as service on Ubuntu Raring Ringtail so that if someone else needs it they will be able to find it. First you will need the package from the Open Office web site<http://www.openoffice.org/>. Do NOT use the ubuntu package as it requires that either Gnome or KDE be installed and we don't install GUI's on servers. Download the file and copy it your server. It should probably be the Linux 64 package. Upload it to the server. tar -zxvf <package name> This will create a folder in your home directory with the language you selected from the Open Office web site. In my case, that's en-US. cd en-US You will see a folder called DEBS cd DEBS Now you will need to use dpkg to install this. dpkg -i * This will install all of the Open Office debs. You will also need to manually add some Open Office dependenices in order to get it to run headless. apt-get install install dictionaries-common libcurl3 libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 libhunspell-1.1-0 libicu38 libneon27 libnss3-1d libnspr4-0d ttf-opensymbol libsm6 libice6 *Note that later distros may require version changes for some of these packages. For example, Ringtail requires that you replace libicu38 with libicu48, replace libhunspell-1.1-0 with libhunspell-1.3.0* Now you will need to add the script to start/stop it with reboots. cd /etc/init.d vi openoffice Paste in the script below & save it. You will need to make some edits but first we need to check some file paths. updatedb locate soffice.bin This will give you the path to soffice which you will need to change the 2 yellow lines below - Open Office home and file path to soffice. Once you have made your edits, save the file again. chmod 755 openoffice Now check to make sure that the script works properly, so try to run it by hand. ./openoffice If it works, you can now add it do the default starts and stops. update-rc.d openoffice defaults #!/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=/opt/openoffice.org3 SOFFICE_PATH=$OOo_HOME/program/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 -- Thanks, Mrs. Jimi Thompson-Fox, CISSP Manager of Web Operations SMU Cox School of Business Webhelp Hotline: X8-WEB1 Website FAQs<http://www.cox.smu.edu/web/smu-cox-school-of-business1/technology/-/wiki/Main/Website>and HOW-TO Videos <http://www.cox.smu.edu/web/smu-cox-school-of-business1/how-to>
participants (1)
-
Jimi Thompson