LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 39490|回复: 234

RedHat 8.0桌面美化终结篇-》10月18日更新[强烈推荐]

[复制链接]
发表于 2002-10-6 06:02:58 | 显示全部楼层 |阅读模式
声明:本文参考了Iou兄弟兄弟的大作。

参考时,第一帖和第二帖就能解决问题了,所有的问题都更新在第一二帖里。同时也解决了kde洋文不好看的问题。能启用平滑字体效果。

注意事项:
1.linux的命令中有大小写之分
2.美化之前,把你所要改动的原文件备份一下
比如,我想备份/root目录下的.bashrc,前面有个小点。不要忘记了。要这样做
#cd /root
#cp .bashrc .bashrc.BAK
如果我们失误时,我们能够还原,方法如下:
#cp .bashrc.BAK .bashrc

3.修改相关文件的工具,用vi或者kate,请不要用gedit。切记!!

北南 10月18日更新



致谢:多谢Iou兄弟为弟兄们传道、授业、解惑!同时也为美化RedHat 8.0的付出很大努力的flysail、小宝以及翔羽,blackwhite等多位弟兄也同道感谢!

系统的字体弄好了,我们就要深入学习了,请弟兄们多多实践,我们不能再美化方面花过多的时间,否则我们将一无所获!其它的各种程序的字体,都比较好办。请弟兄们在实践过程中加与补充,我们要有实践精神!
美化过程:

1 在.bashrc里面加入:
export GDK_USE_XFT=0

2 在/etc/fonts/fonts.conf里面加入
<dir>/home/fonts</dir>

加在什么地方呢?就加在下面这三行的前面就行

        <dir>/usr/X11R6/lib/X11/fonts/Type1</dir>
        <dir>/usr/share/fonts</dir>
        <dir>~/.fonts</dir>


3 所需要的字体有三个、simsun.ttc、tahomabd.ttf以及tahoma.ttf

4.fonts.dir文件为:见附件,使用方法:
把fonts.txt改名为fonts.dir,然后fonts.dir复制成fonts.scale文件。
#cp fonts.dir fonts.scale


5.在/home/目录下建一个fonts目录,把三种字体全部以及fonts.dir和fonts.scale拷到/home/fonts目录。

如果你美化过完毕后,没有见到simsun字体,或者在mozilla的字体设置中没有发现simsun,那就是这步出了问题,一定要把五个文件[simsun.ttc;tahomabd.ttf;tahoma.ttf;fonts.dir;fonts.scale]
都放到/usr/fonts这个目录下

6.修改/etc/X11/XF86Config文件

1]在FontPath   "unix/:7100"前一行,加入FontPath   "/home/fonts"这样的一行

2]在Section "Module"这段内加入
Load "xtt"这一行
把Load  "freetype"和Load  "type1"这两行前面加上#号来注销掉。

7.修改/etc/gtk/gtkrc.zh_CN
为:
style "gtk-default-zh-cn" {
       fontset = "-misc-simsun-medium-r-normal--14-*-*-*-*-*-iso10646-1,\
                  -misc-simsun-medium-r-normal--14-*-*-*-*-*-iso10646-1"
}
class "GtkWidget" style "gtk-default-zh-cn"

如果出现间字体间距过大,就用我这个文件,下载后,改名为gtkrc.zh_CN(注意文件名有大小写之分),然后放到/etc/gtk目录下
http://www.linuxsir.cn/bbs/attachment.php?s=&postid=45923

8.gnome中设置字体为san12

9.在kde中的控制中心-》观感-》字体中,你可以把字体设置为simsun 11就好了。

10.mozilla的字体
mozilla菜单edit->preference-》appearence-》fonts中。如图设置

全部设定后,不要忘记重新引导一下机器。

11.xmms的字体设置[Iou兄弟提供解决方法]

xmms的playlist字体为:
-microsoft-tahoma-medium-r-normal-*-*-120-*-*-p-*-iso8859-1,-misc-simsun-medium-r-normal-*-*-120-*-*-c-*-gbk-0
main window是:
-microsoft-tahoma-medium-r-normal-*-*-120-*-*-p-*-iso8859-1,-misc-simsun-medium-r-normal-*-*-120-*-*-c-*-gbk-0

12.gnome中的终端的字体设置
在终端的菜单上:选[编辑]-》配制文件-》编辑-》general中,把字体设置为simsun。就OK了。极为漂亮。

13.解决KDE英文不美观的问题[参考了dpmcl兄弟的建议]

运行
#qtconfig
将fonts下的Enable Anti-Aliased Font Support (Xft)
选项禁止,在字体设置中取消字体平滑
就可以了,大家试一下.



美化效果图:

www.linuxsir.cn.cn/photo/mozilla/mozillashot.png
www.linuxsir.cn.cn/photo/rh80/rh80kde.png
www.linuxsir.cn.cn/photo/rh80/rh8gnome.png

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2002-10-6 06:14:03 | 显示全部楼层

/etc/X11/XF86Config文件

# File generated by anaconda.

Section "ServerLayout"
        Identifier     "Anaconda Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice        "Mouse1" "SendCoreEvents"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

# The location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.

    RgbPath        "/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
    FontPath   "/home/fonts"这是加的字体路径
    FontPath   "unix/:7100"

EndSection

Section "Module"
        Load "xtt"要加上这一行
        #Load  "dbe"这行前面加#号
        Load  "extmod"
        Load  "fbdevhw"
        #Load  "dri"
        Load  "glx"
        Load  "record"
        #Load  "freetype"这行前面加#号
        #Load  "type1"这行前面加#号
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"

#        Option        "AutoRepeat"        "500 5"

# when using XQUEUE, comment out the above line, and uncomment the
# following line
#        Option        "rotocol"        "Xqueue"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#        Option        "Xleds"                "1 2 3"

# To disable the XKEYBOARD extension, uncomment XkbDisable.
#        Option        "XkbDisable"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#        Option        "XkbModel"        "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#        Option        "XkbModel"        "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#        Option        "XkbLayout"        "de"
# or:
#        Option        "XkbLayout"        "de"
#        Option        "XkbVariant"        "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#        Option        "XkbOptions"        "ctrl:swapcaps"
        Option        "XkbRules"        "xfree86"
        Option        "XkbModel"        "pc105"
        Option        "XkbLayout"        "us"
        #Option        "XkbVariant"        ""
        #Option        "XkbOptions"        ""
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "rotocol" "IMPS/2"
        Option      "Device" "/dev/psaux"
        Option      "ZAxisMapping" "4 5"
        Option      "Emulate3Buttons" "no"
EndSection


Section "InputDevice"
        Identifier        "Mouse1"
        Driver                "mouse"
        Option                "Device"                "/dev/input/mice"
        Option                "rotocol"                "IMPS/2"
        Option                "Emulate3Buttons"        "no"
        Option                "ZAxisMapping"                "4 5"
EndSection


Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
        HorizSync   30-71
        VertRefresh 50-160
        Option "dpms"

       
EndSection

Section "Device"
        # no known options
        Identifier   "NVIDIA GeForce 2 MX (generic)"
        Driver       "nvidia"
        VendorName   "NVIDIA GeForce 2 MX (generic)"
        BoardName     "NVIDIA GeForce 2 MX (generic)"
        
        #BusID
EndSection

Section "Screen"
        Identifier   "Screen0"
        Device       "NVIDIA GeForce 2 MX (generic)"
        Monitor      "Monitor0"
        DefaultDepth        24

        Subsection "Display"
                Depth       24
                Modes       "1024x768" "800x600" "640x480"
        EndSubsection

EndSection

Section "DRI"
        Mode 0666
EndSection
 楼主| 发表于 2002-10-6 06:16:30 | 显示全部楼层
mozilla的设置

设置图如下:
 楼主| 发表于 2002-10-6 06:41:06 | 显示全部楼层
KDE的设置图:
 楼主| 发表于 2002-10-6 07:13:02 | 显示全部楼层
mozilla的显示效果!
 楼主| 发表于 2002-10-6 08:21:41 | 显示全部楼层
gnome的效果最棒,强烈推荐!
发表于 2002-10-6 09:38:31 | 显示全部楼层
可不可以将这个桌面移植到debian 或是 gentoo呢?:)
南北兄请问与这个桌面相关的包裹有哪些?你能告诉我们么?我试试
发表于 2002-10-6 13:30:37 | 显示全部楼层
好,继续。
发表于 2002-10-6 13:58:32 | 显示全部楼层
可为什么有好些应用程序(如XMMS、GIMP等)的下级菜单行距变得很大?

还有一些未变,还是用以前的那种有点虚的字体,如硬件浏览、系统日志等。
发表于 2002-10-6 15:39:22 | 显示全部楼层
还有XMMS的下级菜单变成英文的了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表