liboffice linux 安装过程

  • 安装 LibreOffice
  • 安装字体

安装 LibreOffice

[安装包在CSDN和官网很容易搜索到]
root 用户登录执行:

cd /content/setup
tar xzvf LibreOffice_5.3.7_Linux_x86-64_rpm.tar.gz
tar xzvf LibreOffice_5.3.7_Linux_x86-64_rpm_langpack_zh-CN.tar.gz

cd /nas/setup/LibreOffice_5.3.7.2_Linux_x86-64_rpm/RPMS/

sudo rpm -e --nodeps  *.rpm
rpm -Uvh *.rpm
cd /nas/setup/LibreOffice_5.3.7.2_Linux_x86-64_rpm_langpack_zh-CN/RPMS/
rpm -Uvh *.rpm

安装字体

deployer用户登录
sudo mkdir /usr/share/fonts/simsun
sudo chmod 755 /usr/share/fonts/simsun
cd /usr/share/fonts/simsun
cp -vf /nas/setup/simsunb.ttf .
mkfontscale 
mkfontdir 
fc-cache -fv
source /etc/profile

错误:officeHome not set and could not be auto-detected (客户端访问错误)

主要执行

sudo ln -s /opt/libreoffice5.3 /opt/libreoffic

然后重启服务器就可以

你可能感兴趣的:(安装配置)