安装缺失插件
yum install at-spi2-atk -y
yum install libXss.so.1 -y
yum install libXScrnSaver-1.2.2-6.1.el7.x86_64 -y
yum install gtk3 -y
字体安装
//1
// 先选择看服务 /usr/share文件夹里面看到fonts和fontconfig 有的话跳过,没有执行下面
yum -y install fontconfig
//2
//新建chinese目录,拷贝字体放到CentOS的/usr/share/fonts/chinese里面,
//修改权限
chmod -R 775 /usr/share/fonts/chinese
//3
//安装ttmkfdir来搜索目录中所有的字体信息,并汇总生成fonts.scale文件
yum -y install ttmkfdir
ttmkfdir -e /usr/share/X11/fonts/encodings/encodings.dir
//4
//修改配置字体
vi /etc/fonts/fonts.conf
// 在Font directory list 下添加
//<dir>/usr/share/fonts/chinese</dir>
//5刷新, 查看
fc-cache
//看一下现在机器上已经有了刚才添加的字体。fc-list :lang=zh
字体文件
站酷免费商用字体.ziphyc1gjm.ttf.zip