#!/bin/bash
echo "开始安装LibreOffice"
sudo apt update
sudo apt install libreoffice
sudo apt install unzip
echo "开始安装中文字体"
wget -N http://qiniu.ttk.ink/upgrade/v3.0.5/fonts.zip
unzip -o fonts.zip
sudo mv -f fonts /usr/share/fonts/win
sudo rm -f fonts.zip
cd /usr/share/fonts/win
sudo chmod -Rf 755 *
sudo apt-get install fontconfig
sudo mkfontscale
sudo mkfontdir
sudo fc-cache
echo '安装完成'
soffice --version
rm -f install.sh