Install OpenOffice for headless use

Ubuntu switched to libreoffice instead of openoffice quite a while ago.

Install libreoffice-common, then you can run the libreoffice service by adding the "--headless" runtime argument.

$ /usr/bin/libreoffice --headless

The rest of that article should be compatible if you replace "openoffice.org" with "libreoffice" across the board.


Install OpenOffice following the instruction given at their Website.

The installation procedure is as follows:

  1. First Download the openOffice.org all in one tar package. You should select Your OS (For me Linux 64-bit (x86-64) DEB), Language and Version. Then click on Download full installation button to get a .tar.gz file

  2. Then extract the .tar.gz file into a suitable directory. I downloaded in my home directory. You can extract it using a command like this (replace the file name with the exact name you downloaded)

    tar xf Apache_OpenOffice_4.1.2_Linux_x86-64_install-deb_en-US.tar.gz
    
  3. Then open a terminal and go the the directory containing the .deb files. If you extracted in Home directory, the command is

    cd ~/en-US/DEBS/
    
  4. Then install all the .deb files with the command:

    sudo dpkg -i *.deb
    
  5. Since, OpenOffice 2.3 it can be started in headless mode. So, you can start it in headless mode with the command

    soffice --headless 
    

Hope this will help.

Tested again in 16.04. It works as before


Make sure that you have first completely removed LibreOffice, then follow Olive Twist's installation instructions and that should work for you.