首页 > 其他 > 详细

Centos6.9下安装OpenOffice 4.1.4

时间:2017-11-23 20:51:02      阅读:340      评论:0      收藏:0      [点我收藏+]

# 对一下时间,时间不准,解压不了
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

Centos6.9下安装OpenOffice 4.1.4

原文:http://www.cnblogs.com/littlehb/p/7886646.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!