| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Fri Feb 27, 2004 6:55 am Post subject: OpenOffice as a Linux Service running silently |
|
|
Hi!
For a long time i am searching for a way, to start OOO automatically when Linux is booting.
But i didn't found anything.
My Problem is, Openoffice should run in a invisible mode, so a java-client can send requests to openoffice to use the interface. Until now i always have to start OpenOffice manually. But this is not comfortable. Is there a way to register OpenOffice as a kind of system daemon on my linux system, so every user who is logged in can use OpenOffice with my selfprogrammed Java-client?
I would be happy about some hints for my problem.
Thanks a lot |
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
Posted: Fri Feb 27, 2004 7:47 am Post subject: |
|
|
Related discussions have occured before. (Links below.)
The best (only?) way I know of is to run an invisible X windows, such as Xvfb (X virtual frame buffer) which does not use any hardware device. The X display is a disembodied pixmap in memory. No reason the X display has to be 1024x768. To save memory, make the Xvbp trick OOo into thinking that you are poor and your display hardware is only 640x480 or somesuch. (When launching Xvfb, pass geometry parameterr to set screen size.) See discussions below.
I also provided links below on how to terminate OOo. Basically call the terminate() method on the desktop object.
Here is what I would really wish for. If you do this, please post it and make your work available to others!
Write a start/stop script which does all the heavy lifting. Something that takes the Start | Stop | Status | Reload parameters, and that goes into /etc/rc.d
Such a script would fire up a Xvfb, remember it's pid and/or display number. Then start an OOo.
When it gets the "stop" parameter, the script would call a Java program which invokes the Desktop.terminate() method to nicely shutdown OOo, but if OOo doesn't shut down, then forceably shut it down. Then shut down the Xvfb.
To use OOo with Java, you have to configure OOo to listen on a port. You can either pass the 'accept' parameter to OOo from the command line, or configure OOo to listen by editing its configuration. If you do the latter, edit its configuration, I have a macro which makes the editing job easy.
http://www.oooforum.org/forum/viewtopic.php?t=3754
Before you read through the maze of links to past discussion below, here is perhaps the most relevant link....
http://www.oooforum.org/forum/viewtopic.php?p=14934#14934
X-Windows and headless
======================
http://www.oooforum.org/forum/viewtopic.php?t=4975
http://www.oooforum.org/forum/viewtopic.php?t=3600
http://www.oooforum.org/forum/viewtopic.php?t=2986
http://www.oooforum.org/forum/viewtopic.php?t=2977
http://www.oooforum.org/forum/viewtopic.php?t=2707
http://www.oooforum.org/forum/viewtopic.php?t=2403
http://www.oooforum.org/forum/viewtopic.php?t=4193
http://www.oooforum.org/forum/viewtopic.php?t=3929
See "The Office Headless Mode" at this site...
http://framework.openoffice.org/servlets/ProjectDocumentList?folderID=151
Running second X session
http://www.oooforum.org/forum/viewtopic.php?p=21046#21046
Discussion of headless on XVfb on Solaris
http://www.oooforum.org/forum/viewtopic.php?t=5095
Windows headless or NT Service
==============================
http://www.oooforum.org/forum/viewtopic.php?t=4899
http://www.oooforum.org/forum/viewtopic.php?t=2977
http://www.oooforum.org/forum/viewtopic.php?t=2707
See "The Office Headless Mode" at this site...
http://framework.openoffice.org/servlets/ProjectDocumentList?folderID=151
The Office headless mode
http://framework.openoffice.org/servlets/ProjectDocumentList?folderID=151
Install on Citrix or Terminal Server
====================================
http://www.oooforum.org/forum/viewtopic.php?t=32
http://www.oooforum.org/forum/viewtopic.php?t=351
http://www.oooforum.org/forum/viewtopic.php?t=5604
How to terminate OOo
====================
http://www.oooforum.org/forum/viewtopic.php?t=5019
http://www.oooforum.org/forum/viewtopic.php?t=3764 _________________ Want to make OOo Drawings like the colored flower design to the left? |
|
| Back to top |
|
 |
ialongiya Newbie

Joined: 27 Nov 2009 Posts: 1
|
Posted: Sun Nov 29, 2009 9:45 pm Post subject: |
|
|
How do I establish a linux operatings system that would be similar to windows? Linux is free right. So if I have to buy a new hardrive, I won't need windows which is expensive. But how do I know which I should use. There seems to be many different linux operating system.
_________________
affiliateelite ~ affiliateelite.com ~ adgooroo ~ adgooroo.com |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|