Unable to run openoffice in headless mode
Posted
by uswaretech
on Super User
See other posts from Super User
or by uswaretech
Published on 2010-03-18T08:06:02Z
Indexed on
2010/03/18
8:11 UTC
Read the original article
Hit count: 638
I want to automoate some PPT -> PDF conversions, so I want to run openoffice in headless mode for scripting.
On my machine with X running I can start opemoffice in headless mode via
soffice -accept="socket,port=8100;urp;" -headless
This doesn't seem to work on a server with X not running.
$ soffice -accept="socket,port=8100;urp;" -headless
/usr/lib/openoffice/program/soffice.bin X11 error: Can't open display:
Set DISPLAY environment variable, use -display option
or check permissions of your X-Server
(See "man X" resp. "man xhost" for details)
$
The error doesnt seem to make sense as well, as the point of specifying -headless
was so that I do not need X, while this command seems to look for X.
© Super User or respective owner