Ask Your Question
0

How to use LibreOffice without X? [closed]

asked 2012-11-26 18:40:36 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hello,

I'm trying to use a test server to do a massive conversion of format (from .doc to .html).

So I installed LibreOffice and tried to do the conversion.

Unfortunately, it didn't work:

root@panda-dev:~/bin $ soffice --headless --convert-to txt:text blah.doc
/usr/lib64/libreoffice/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)

Can't we use LibreOffice in batch mode when X is not installed?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-10-19 02:46:39.056260

2 Answers

Sort by » oldest newest most voted
0

answered 2012-11-27 20:44:59 +0200

There is some ongoing work from a volunteer to provide a way to compile Libreoffice for headless use. But for this you would need to compile Libreoffice yourself.

See http://wiki.documentfoundation.org/Development/HeadlessBuild for some details but that does not mean that it can be used in a productive environment yet.

edit flag offensive delete link more
0

answered 2012-11-29 12:39:15 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Thank you for you answer. I will try this as soon as I manage to compile LibreOffice on my system.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-11-26 18:40:36 +0200

Seen: 11,429 times

Last updated: Nov 29 '12