Troubleshooting OpenOffice.org Service
From KnowledgeTree Community
Note: This guide is aimed at Ubuntu Server Edition but may be useful for other systems as well.
OpenOffice.org is required for PDF Generation. Until OpenOffice.org 2.3, getting it to run in a headless mode without a graphic user interface used to painful and required work arounds like xvfb. We'll be using OpenOffice.org 2.4.1 which works well.
Contents |
Dependencies
To download OpenOffice.org, you need to have wget installed. So check this by entering:
sudo apt-get install wget
Next, download and install some dependencies:
sudo apt-get install sun-java5-jre libxext6 libsm6
Download OpenOffice.org
Next, download OpenOffice.org.
wget http://mirrors.ibiblio.org/pub/mirrors/openoffice/stable/3.2.1/OOo_3.2.1_Linux_x86_install-deb_en-US.tar.gz
Installing OpenOffice.org
Unzip it:
tar xvfz Ooo_2.4.1_LinuxIntel_install_en-US_deb.tar.gz
Enter the DEBS folder:
cd OOH680_m17_native_packed-1_en-US.9310/DEBS/
Then run:
sudo dpkg -i *.deb
Even though OpenOffice.org is now installed, we don't have access to the soffice command yet. To install this, enter:
cd desktop-integration/
Then:
dpkg -i *.deb
Testing that OpenOffice.org is Installed
You can now test this by entering:
which soffice
That will output:
/usr/bin/soffice
This is proof that OpenOffice.org is installed. If it returns nothing, then it isn't.
Starting OpenOffice.org Service
Next, start the OpenOffice service. It is best to run 'sudo ls' first. This is merely to get it to prompt you for your password first, so that you do not have to run it when you set it as a background task.
sudo ls sudo soffice -headless -accept="socket,host=localhost,port=8100;urp;" -nofirststartwizard&
If you receive the error "X11 error: Can't open display:" when running the above command, then you may need to install the "headless" OpenOffice.org package from your Linux distribution. On Ubuntu/Debian, this package is called openoffice.org-headless.
sudo apt-get install openoffice.org-headless
If you receive the error "javaldx: Could not find a Java Runtime Environment!" when running the command, then you may need to install the "openoffice-java" package. On Debian this package is called openoffice.org-java-common. Remove the .openoffice2 directory before you retry
sudo apt-get install openoffice.org-java-common rm -r ~/.openoffice2
Testing OpenOffice.org Service
You can test that this is running by entering either:
ps -aux | grep soffice
Or
netstat -an | grep 8100
del.icio.us
reddit

