How to run unoconv without xServer

I want to run unoconv on a computer with a Cent OS processor, without a GUI. Unoconv uses OpenOffice with the -headless option, but it also doesn't work.

I got the following error:

/usr/lib64/openoffice.org3/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) 

Is there an easy way to run unoconv on a server?

+4
source share
2 answers

The link http://www.openvpms.org/documentation/install-openoffice-headless-service-ubuntu describes that you need to install openoffice.org-writer openoffice.org-draw or you get an error message: This URL- The address is not supported.

I install these two packages and run unoconv without X sever and it works fine for me

+3
source

The reason you couldn't run the soffice command was because the libreoffice-headless.x86_64 package was not installed. The conversion command works correctly after it is installed. how to set

+1
source

Source: https://habr.com/ru/post/1395813/


All Articles