Word 文書をプレーン テキストに変換しようとすると、次のエラーが発生します。
user@server$ unoconv --format=txt test.docx
/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)
Error: Unable to connect or start own listener. Aborting.
このサーバー上の libreoffice のバージョンは LibreOffice 4.3.7.2 430(Build:2) で、CentOS 7 を実行しています。
そのため、自分のコンピューターの VirtualBox に Debian 8.3.0 をインストールし (CentOS マシンのルート権限を持っていないため)、LibreOffice 4.3.3.2 430m0(Build:2) が付属していました。驚いたことに、MS Word ファイルの変換を SSH 経由で試したところうまくいきましたが、X はまったく実行されていませんでした。
CentOSで動作させる方法を知っている人はいますか? libreoffice の更新は必要ですか?