libreoffice6.3 error "Failed to open display" & soffice command not found. in cenos7

1.1k views Asked by At

i'm using centos7, i have installed libreoffice6.3. it was working file before changing of my computer ip. but after changing ip it is not working. and then i have reinstalled many time. but still it's not working. command & and outputs below libreoffice6.3 --version ==== LibreOffice 6.3.4.2 60da17e045e08f1793c57c00ba83cdfce946d0aa soffice --version ===== -bash: soffice: command not found libreoffice6.3 ===== Failed to open display

1

There are 1 answers

1
MyNameIsLinuxx On

I know this is old, but just a tip: Every time you need / want to use LibreOffice's functionality without starting up the GUI, add --headless the the soffice command. soffice --help says

Starts in "headless mode" which allows using the application without GUI. This special mode can be used when the application is controlled by external clients via the API.