debian 美化字体 的脚本
时间:2007-02-27 来源:ilovedebian
#!/bin/bash
#如何用圆体字美化字体
#author: john.yu
#date: 2007_2_27
#步骤如下:
#0. ready
if [ ! $USER = "root" ];then
echo "$0 must run by sudo"
exit
fi
mkdir buildroot_font
cd buildroot_font
#1,下载所需的字体包(地址)
wget http://download.ubuntu.org.cn/software/VeraSansYuanTi.tar.gz
#2,用tar解报
tar -zxvf VeraSansYuanTi.tar.gz
#3,移动所解开的文件夹
mv VeraSansYuanTi /usr/share/fonts/
#4,刷新字符缓存
fc-cache -f
#5,备份原有的fonts.conf
cp /etc/fonts/fonts.conf /etc/fonts/fonts.conf.bak
#6,使用新的fonts.conf
cp /usr/share/fonts/VeraSansYuanTi/fonts.conf /etc/fonts/
#7,重新启动X windows ctrl+alt+backspace
init 6
~
#如何用圆体字美化字体
#author: john.yu
#date: 2007_2_27
#步骤如下:
#0. ready
if [ ! $USER = "root" ];then
echo "$0 must run by sudo"
exit
fi
mkdir buildroot_font
cd buildroot_font
#1,下载所需的字体包(地址)
wget http://download.ubuntu.org.cn/software/VeraSansYuanTi.tar.gz
#2,用tar解报
tar -zxvf VeraSansYuanTi.tar.gz
#3,移动所解开的文件夹
mv VeraSansYuanTi /usr/share/fonts/
#4,刷新字符缓存
fc-cache -f
#5,备份原有的fonts.conf
cp /etc/fonts/fonts.conf /etc/fonts/fonts.conf.bak
#6,使用新的fonts.conf
cp /usr/share/fonts/VeraSansYuanTi/fonts.conf /etc/fonts/
#7,重新启动X windows ctrl+alt+backspace
init 6
~
相关阅读 更多 +