# 对一下时间,时间不准,解压不了
yum install -y ntp unzip
ntpdate -u 202.112.10.36
yum install libXext.x86_64 -y
yum groupinstall "X Window System" -y
cd /usr/local/software/OpenOffice
rpm -ivh jdk-7u80-linux-x64.rpm
tar -zxvf Apache_OpenOffice_4.1.4_Linux_x86-64_install-rpm_zh-CN.tar.gz
tar -zxvf Apache_OpenOffice_4.1.4_Linux_x86-64_langpack-rpm_zh-CN.tar.gz
cd zh-CN/
cd RPMS/
yum localinstall -y *.rpm
cd desktop-integration/
yum localinstall -y openoffice4.1.4-redhat-menus-4.1.4-9788.noarch.rpm
mkdir -p /usr/java/jdk1.7.0_80/jre/lib/fonts/fallback
cd /usr/local/software/OpenOffice
cp simhei.ttf /usr/java/jdk1.7.0_80/jre/lib/fonts/fallback/simhei.ttf
cp simsun.ttc /usr/java/jdk1.7.0_80/jre/lib/fonts/fallback/simsun.ttc
# 安装系统字体
yum install fontconfig -y
yum install mkfontscale -y
mkdir /usr/share/fonts/winFonts
cp simhei.ttf /usr/share/fonts/winFonts/simhei.ttf
cp simsun.ttc /usr/share/fonts/winFonts/simsun.ttc
cd /usr/share/fonts/winFonts
chmod 755 *.ttf
mkfontscale
mkfontdir
fc-cache -fv
source /etc/profile
unzip jodconverter-2.2.2.zip
# 启动
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
# 测试转换
cd /usr/local/software/OpenOffice
java -jar /usr/local/software/OpenOffice/jodconverter-2.2.2/lib/jodconverter-cli-2.2.2.jar 1.ppt 111.pdf
链接:http://pan.baidu.com/s/1c1ZDUoC 密码:33xj
原文:http://www.cnblogs.com/littlehb/p/7886646.html