OpenOffice 4.0.1 as a service on Ubuntu 13.10 (headless)

Issues with installing under all Linux Distributions

OpenOffice 4.0.1 as a service on Ubuntu 13.10 (headless)

Postby cdebauche » Sun Dec 08, 2013 12:16 pm

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
cdebauche
 
Posts: 11
Joined: Sun Dec 08, 2013 11:55 am

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

Postby RoryOF » Sun Dec 08, 2013 12:30 pm

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

Look at
https://forum.openoffice.org/en/forum/viewtopic.php?f=16&t=53875
Apache OpenOffice 4.1.5 on Xubuntu 18.04 (mostly 64 bit version) and infrequently on Win2K/XP
14 October 2016 was Pooh's 90th birthday
User avatar
RoryOF
Moderator
 
Posts: 26904
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

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

Postby cdebauche » Sun Dec 08, 2013 1:52 pm

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

Look at
https://forum.openoffice.org/en/forum/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
cdebauche
 
Posts: 11
Joined: Sun Dec 08, 2013 11:55 am

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

Postby Villeroy » Sun Dec 08, 2013 2:22 pm

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 16.04, OpenOffice 4.x & LibreOffice 5.x
User avatar
Villeroy
Volunteer
 
Posts: 25543
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

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

Postby RoryOF » Sun Dec 08, 2013 2:45 pm

To install OpenOffice on Ubuntu you may need to
Code: Select all   Expand viewCollapse view
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.5 on Xubuntu 18.04 (mostly 64 bit version) and infrequently on Win2K/XP
14 October 2016 was Pooh's 90th birthday
User avatar
RoryOF
Moderator
 
Posts: 26904
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

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

Postby cdebauche » Mon Dec 09, 2013 11:21 pm

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)

Postby cdebauche » Tue Dec 10, 2013 12:14 am

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
cdebauche
 
Posts: 11
Joined: Sun Dec 08, 2013 11:55 am

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

Postby RoryOF » Tue Dec 10, 2013 12:28 am

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.5 on Xubuntu 18.04 (mostly 64 bit version) and infrequently on Win2K/XP
14 October 2016 was Pooh's 90th birthday
User avatar
RoryOF
Moderator
 
Posts: 26904
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

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

Postby cdebauche » Tue Dec 10, 2013 10:38 pm

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)

Postby cdebauche » Thu Dec 12, 2013 7:49 pm

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)

Postby cdebauche » Fri Dec 13, 2013 1:58 am

:( ... 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
cdebauche
 
Posts: 11
Joined: Sun Dec 08, 2013 11:55 am

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

Postby RoryOF » Fri Dec 13, 2013 8:11 am

Apache OpenOffice 4.1.5 on Xubuntu 18.04 (mostly 64 bit version) and infrequently on Win2K/XP
14 October 2016 was Pooh's 90th birthday
User avatar
RoryOF
Moderator
 
Posts: 26904
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

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

Postby cdebauche » Mon Dec 23, 2013 10:32 am

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
cdebauche
 
Posts: 11
Joined: Sun Dec 08, 2013 11:55 am

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

Postby RoryOF » Mon Dec 23, 2013 10:43 am

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.5 on Xubuntu 18.04 (mostly 64 bit version) and infrequently on Win2K/XP
14 October 2016 was Pooh's 90th birthday
User avatar
RoryOF
Moderator
 
Posts: 26904
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

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

Postby RoryOF » Mon Dec 23, 2013 11:07 am

Search the help file using Parameters as a keyword. To start OpenOffice headless the command is
Code: Select all   Expand viewCollapse view
openoffice4 -headless

space between 4 and -, only one -
Apache OpenOffice 4.1.5 on Xubuntu 18.04 (mostly 64 bit version) and infrequently on Win2K/XP
14 October 2016 was Pooh's 90th birthday
User avatar
RoryOF
Moderator
 
Posts: 26904
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

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

Postby dwihardy » Mon Aug 13, 2018 6:59 am

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)
dwihardy
 
Posts: 1
Joined: Mon Aug 13, 2018 5:56 am


Return to Linux

Who is online

Users browsing this forum: No registered users and 3 guests