如何在CentOS服务器上以无头模式安装OpenOffice

如何在我的CentOS服务器上以无头模式下载和安装OpenOffice 3.1 …我正在使用一个需要OpenOffice作为表单生成服务的Java应用程序….我有一个困难的时间…任何头上采取什么步骤将是伟大的…

yum install openoffice.org-<package> 

例子:

 yum install openoffice.org-base yum install openoffice.org-calc yum install openoffice.org-writer 
 yum install openoffice.org-base yum install openoffice.org-calc yum install openoffice.org-writer yum install openoffice.org-headless 

您还需要最后一个命令才能以无头模式运行。 否则,你会得到:

 /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) 
 yum install openoffice.org-headless