OpenOffice

1.下载

wget https://jaist.dl.sourceforge.net/project/openofficeorg.mirror/4.1.11/binaries/zh-CN/Apache_OpenOffice_4.1.11_Linux_x86-64_install-rpm_zh-CN.tar.gz;
mkdir /opt/openoffice4;
tar zxvf Apache_OpenOffice_4.1.11_Linux_x86-64_install-rpm_zh-CN.tar.gz  -C /opt/openoffice4

2.安装

cd /opt/openoffice4/zh-CN/RPMS;
yum localinstall -y openoffice-* desktop-integration/openoffice4.1.11-redhat-menus-4.1.11-9808.noarch.rpm

3.启动

vim /opt/openoffice4/start.sh
#!/bin/bash
/opt/openoffice4/program/soffice -headless -accept="socket,host=0.0.0.0,port=8100;urp;" -nofirststartwizard 2>&1 > nohup.out &
chmod +x /opt/openoffice4/start.sh
/opt/openoffice4/start.sh

启动报错no suitable windowing system found, exiting

yum groupinstall “X Window System”

aws系统上需安装以下依赖

yum install xorg-x11-server-Xvfb

4.中文乱码

#把windows字体上传到/usr/share/fonts/windows/
mkdir -p /usr/share/fonts/windows/
yum install -y fontconfig mkfontscale
mkfontscale
mkfontdir
fc-cache -fv
fc-list
THE END
分享
二维码
< <上一篇
下一篇>>
文章目录
关闭
目 录