当前位置:Linux教程 - 美化汉化 - 美化汉化 - 美化rh8

美化汉化 - 美化rh8

美化rh8
2004-04-23 15:18 pm
来自:Linux文档
现载:Www.8s8s.coM
地址:无名

RH8感觉上是目前做的最好的一个distribution,尤其在desktop interface
上有巨大的改进.比如AA字体,Gnome/KDE的统一......不过还是有很多地方需要
自己定制以符合个人口味,增强功能.下面总结一下定制的一些东西.可能和以前的
文章重复了.也算一个总结吧.包括字体的安装,界面的美化,和一些extra package
的安装.

1 Microsoft字体安装
虽然RH8的字体已经很不错了,不过多一点选择总没错的.Microsoft的TrueType
字体一直是以前linux desktop ugly字体的解决方案.现在Microsoft已经取消了
TrueType core fonts的下载,但根据End User License Agreement,除了
Tahoma font,其他的字体还是可以用的.
a. 从
http://prdownloads.sourceforge.net/corefonts/cabextract-0.6-1.i386.rpm?download
下载cabextract.
b. 从
http://prdownloads.sourceforge.net/corefonts/msttcorefonts-1.2-3.src.rpm?download
下用于制作RPM的source
c. rpm -ivh msttcorefonts-1.2-3.src.rpm
然后到/usr/src/redhat/SPECS下面,打开msttcorefonts.spec,根据你的需要
选上一个合适的下载font CAB文件的地点.一般情况下不用修改.
d. rpmbuild -bb msttcorefonts.spec
e. cd /usr/src/redhat/RPMS/noarch/
rpm -ivh msttcorefonts-1.2-3.noarch.rpm
f. /sbin/service xfs restart
g. xlsfonts | grep ^-microsoft 验证安装成功

Reference:
http://corefonts.sourceforge.net/

2 SimSun字体安装
看中文SimSun字体还是不错的,虽然已经有了zysong.
a. mkdir /usr/share/default/fonts/TrueType
当然/usr/X11R6/lib/X11/fonts下面也可以建. 缺省的TrueType字体在Type1目录下
b. 把C:Windowsfonts下面的simsun.[ttc|ttf] copy到这个目录下
c. ttmkfdir > fonts.dir
ttmkfdir对字体编码识别有问题,需要自己改一下.
simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-fcd8859-15
修改为
simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0
另外加上这几行:
ai=0.2:simsun.ttc -misc-simsun-medium-o-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.4:simsun.ttc -misc-simsun-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.4:simsun.ttc -misc-simsun-medium-ri-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.2:simsun.ttc -misc-simsun-medium-ro-normal--0-0-0-0-c-0-gb2312.1980-0
ab=y:simsun.ttc -misc-simsun-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.2:ab=y:simsun.ttc -misc-simsun-bold-o-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.4:ab=y:simsun.ttc -misc-simsun-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.4:ab=y:simsun.ttc -misc-simsun-bold-ri-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.2:ab=y:simsun.ttc -misc-simsun-bold-ro-normal--0-0-0-0-c-0-gb2312.1980-0
以支持bold, italic font. 别忘了修改fonts.dir的第一行的数字(加9).
d. cp fonts.dir fonts.scale
e. cp /usr/X11R6/lib/X11/fonts/encodings/encodings.dir .
f. 修改/etc/X11/XF86Config
Section "Files"
FontPath "unix/:7100"
FontPath "/usr/share/fonts/default/TrueType" (关键)
EndSection

Modules 部分
# Load "freetype" # TrueType font handler (注释掉)
Load "xtt" # TrueType font handler (加上)

g. 重启 X Window.

Reference:
http://www.lslnet.com/linux

3 Chinput设置
参照前面的文章, 在~/.i18n中:
LANG=zh_CN.GB18030
LC_MESSAGES=en_US

4 通明KDE kicker
KDE kicker是指桌面最下面的工具条和任务栏,可以设置成透明.
a. 在KDE Control Center->Look&Feel->Style设成Keramik,选Effect,把
Translucent Menu Effect加上,在最下面调整Alpha值.这样就有通明菜单效果了.
b. 去www.kde-look.org找[Keramik] Transparent Kicker (TARBALL)
(in Theme/Styles->KDE 3.0)
c. 解包运行
export KDEDIR=/usr
./build_trans-keramik

5 Debian的apt-get
Debian的apt-get可以检查RPM的dependencies,随时下载安装或者更新package.
FreshRPM提供了类似的功能,这样不用买Redhat的basic service就可以随时更新
RPM了.
a. 下载:
http://ftp.freshrpms.net/pub/freshrpms/psyche/apt/apt-0.5.4cnc8-fr1.i386.rpm
http://ftp.freshrpms.net/pub/freshrpms/psyche/apt/apt-devel-0.5.4cnc8-fr1.i386.rpm
b. rpm -ivh apt*
c. apt-get update
apt-get -f install
d. 安装apt-get的图形界面:
apt-get install synaptic

Reference:
http://www.osnews.com/story.php?news_id=1890&page=1

6 一些软件可以直接通过apt-get安装
apt-get install xmms-mp3 (MP3 playback)
apt-get install mplayer (DivX playback)

7 GDM theme
对了,可以从www.themedepot.com下GDM的theme,感觉比KDM好多了.

其他?.......
请大家补充.