OpenOffice 4.0.1 as a service on Ubuntu 13.10 (headless)

Issues with installing under all GNU/Linux Distributions
Post Reply
cdebauche
Posts: 11
Joined: Sun Dec 08, 2013 11:55 am

OpenOffice 4.0.1 as a service on Ubuntu 13.10 (headless)

Post by cdebauche »

Hello !

I am new in Linux / Ubuntu / OpenOffice. I would like to run OpenOffice 4.0.1 as a service on my Ubuntu 13.10 and would like this service to start automatically at start-up.

I try to get information about how to do this on the web but didn't find my way. :crazy:

Because I am a Newbie :? , can you give me a step by step process ?

I want to use it with a Java application (Jahia) that need this service to convert documents and built previews.

Thanks a lot !!
Zeb
OpenOffice 4.0.1 on Ubuntu 13.10
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: OpenOffice 4.0.1 as a service on Ubuntu 13.10 (headless)

Post by RoryOF »

Start by doing a Forum Search, using search box at top right of Forum window,

Look at
viewtopic.php?f=16&t=53875
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
cdebauche
Posts: 11
Joined: Sun Dec 08, 2013 11:55 am

Re: OpenOffice 4.0.1 as a service on Ubuntu 13.10 (headless)

Post by cdebauche »

RoryOF wrote:Start by doing a Forum Search, using search box at top right of Forum window,

Look at
viewtopic.php?f=16&t=53875
Thanks for the quick answer !

What I find seems to be for the previous version 3 of Open Office. I look at your post but I am running Ubuntu 13.10 64-bit and I don't know if I have to install Yum to get OpenOffice Service running.

When I try :
$ sudo apt-get install openoffice.org-headless

I get this :
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package openoffice.org-headless
E: Couldn't find any package by regex 'openoffice.org-headless'

:(
OpenOffice 4.0.1 on Ubuntu 13.10
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: OpenOffice 4.0.1 as a service on Ubuntu 13.10 (headless)

Post by Villeroy »

You should become a tiny little bit familiar with your new operating system before you try to install any 3rd-party software.

A software named "openoffice-headless" does not exist.
OpenOffice is not in the Ubuntu repositories, therefore the apt-get program can not download and install OpenOffice automatically.
Ubuntu comes with an almost identical software named "LibreOffice". It should be installed already. If not: sudo apt-get install libreoffice
libreoffice --headless starts this program in headless mode.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: OpenOffice 4.0.1 as a service on Ubuntu 13.10 (headless)

Post by RoryOF »

To install OpenOffice on Ubuntu you may need to

Code: Select all

sudo apt-get remove libreoffice-core
(there are ways to install OpenOffice alongside LibreOffice, but the above is my usual method of working)

then download OpenOffice from http://www.openoffice.org/download and install as in the tutorial at
[Tutorial] Installing OpenOffice on Ubuntu, Debian and Co.

Note that spaces are important in your invocation of headless mode and you need a space before the --headless.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
cdebauche
Posts: 11
Joined: Sun Dec 08, 2013 11:55 am

Re: OpenOffice 4.0.1 as a service on Ubuntu 13.10 (headless)

Post by cdebauche »

Thanks a lot for your help RoryOF and Villeroy.

In fact, I think I did exactly the right installation ...

I did this :
sudo apt-get remove --purge libreoffice*
sudo apt-get clean
sudo apt-get autoremove

After having downloaded Apache_OpenOffice_4.0.1_Linux_x86-64_install-deb_en-US.tar.gz
I did the following :
tar -zxvf Apache_OpenOffice_4.0.1_Linux_x86_install-deb_en-US.tar.gz
cd en-US/DEBS
sudo dpkg -i *.deb
cd desktop-integration
dpkg -i *.deb

OpenOffice is working fine, all the programs works from the menu and LibreOffice has been removed.

I tried to launch openoffice4 --headless but it start normally and not in headless mode.

How can I start in headless mode ? is-it possible with the version 4 ? Do I have to install something else ?
Sorry, but I didn't find information about headless mode in he links you give me :-/ ... did I miss something ?
OpenOffice 4.0.1 on Ubuntu 13.10
cdebauche
Posts: 11
Joined: Sun Dec 08, 2013 11:55 am

Re: OpenOffice 4.0.1 as a service on Ubuntu 13.10 (headless)

Post by cdebauche »

I try this but It does not allow me to do anything else in the terminal... I have to use CTRL-C to exit...

$ /opt/openoffice4/program/soffice -nofirststartwizard -headless -accept="socket,host=localhost,port=8100;urp;"
$ /opt/openoffice4/program/soffice -headless -accept="socket,port=8100;urp;"
$ /opt/openoffice4/program/soffice -headless -nofirststartwizard

Is the command
pidof soffice
is correct to know if the openoffice headless is up ?

Thanks again for your help !
OpenOffice 4.0.1 on Ubuntu 13.10
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: OpenOffice 4.0.1 as a service on Ubuntu 13.10 (headless)

Post by RoryOF »

If you look in the OpenOffice Help and search for "headless" (no quotes) you get a full list of command line parameters. I only use OpenOffice directly, so cannot help with details of running it in headless mode.

It might be that you need to invoke openoffice4 rather than soffice - I'm not certain.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
cdebauche
Posts: 11
Joined: Sun Dec 08, 2013 11:55 am

Re: OpenOffice 4.0.1 as a service on Ubuntu 13.10 (headless)

Post by cdebauche »

Thanks RoryOF !

I really need someone who use openoffice in headless mode (server mode)... I can't find my way in the documentation...

I hope someone will answer about how it works :?
OpenOffice 4.0.1 on Ubuntu 13.10
cdebauche
Posts: 11
Joined: Sun Dec 08, 2013 11:55 am

Re: OpenOffice 4.0.1 as a service on Ubuntu 13.10 (headless)

Post by cdebauche »

If agree, could you please Bump this topic ?

When I launch the server with this command :
"/usr/bin/soffice -headless -accept="socket,host=0.0.0.0,port=8100;urp;" -nofirststartwizard -nologo -norestore -nolockcheck -nocrashreport -nodefault > /dev/null"

The terminal don't give me the hand back. I have to use CTRL-C to get back to the terminal input... I don't find any logs and don't see any errors... :-/ ...

Please help...
OpenOffice 4.0.1 on Ubuntu 13.10
cdebauche
Posts: 11
Joined: Sun Dec 08, 2013 11:55 am

Re: OpenOffice 4.0.1 as a service on Ubuntu 13.10 (headless)

Post by cdebauche »

:( ... I have a lot of X11 directories in usr/bin... do you know why ?

/usr/bin$ cd X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11/X11

Thanks,
OpenOffice 4.0.1 on Ubuntu 13.10
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: OpenOffice 4.0.1 as a service on Ubuntu 13.10 (headless)

Post by RoryOF »

Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
cdebauche
Posts: 11
Joined: Sun Dec 08, 2013 11:55 am

Re: OpenOffice 4.0.1 as a service on Ubuntu 13.10 (headless)

Post by cdebauche »

Did someone starts OpenOffice in headless mode on Ubuntu 13.10 ? ... :-/

Can you bump this topic ? i don't have the right to do it...
OpenOffice 4.0.1 on Ubuntu 13.10
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: OpenOffice 4.0.1 as a service on Ubuntu 13.10 (headless)

Post by RoryOF »

A posting to the thread automatically bumps the topic. If you are getting no replies, perhaps no one has done this yet, or your thread has fallen into the slack time before the Christmas holidays.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: OpenOffice 4.0.1 as a service on Ubuntu 13.10 (headless)

Post by RoryOF »

Search the help file using Parameters as a keyword. To start OpenOffice headless the command is

Code: Select all

openoffice4 -headless
space between 4 and -, only one -
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
dwihardy
Posts: 1
Joined: Mon Aug 13, 2018 5:56 am

Re: OpenOffice 4.0.1 as a service on Ubuntu 13.10 (headless)

Post by dwihardy »

I manage to run the service in background by using this init.d script, so I can have my terminal back without stopping the service

https://gist.github.com/stuzart/3787679

But I change the command to use (because I'm using 4.1.5) : soffice -nofirststartwizard -headless -accept="socket,host=localhost,port=8100;urp;" & > /dev/null 2>&1

Hope this can help other person who come across this page :D
OpenOffice 4.1.5 on SUSE Linux Enterprise Server 11 (i586)
Post Reply