RedHat9.0 and 8.0 Final beautification

Source: Internet
Author: User
Title: RedHat9.0 and 8.0. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
It has been verified that it can be used in the beautification of Redhat 9.0 Redhat 8.0. Clear font. Perfect.
Although we already have some beautification methods, some new linux beginners are still confused. I practiced all the beautifying posts from the past and found many problems. It is mainly manifested in the following aspects:
I. Some brothers do not have fonts, such as simsun. ttc, but they do not know that they can also be renamed with simsun. ttf. It's mainly because we use 98's brother. it's normal if we don't have this or that font. I found that many of my friends could not find a font, but ran around and couldn't see it anymore. Oh ..
II. Some beautification methods are not suitable for beginners.
3. Beautification packages cannot be used universally. This may be caused by the differences between the compiling environment and the components selected during installation.
Simsun beautification is completely feasible, and the official website fontcofig has recognized this method. This is a reasonable name for simsun's beautification work!
Disclaimer: This article has referred to several fellow posts
Thanks to Iou and dpmc. Flysail, Xiaobao, Xiang Yu, blackwhite, and many other brothers also said thank you!
Note:
1. linux commands and file names are case sensitive.
2. back up the original file you want to modify before beautification
For example, if I want to back up the. bashrc in the/root directory, there is a small dot in front. Don't forget. To do so
# Cd/root
# Cp. bashrc. bashrc. BAK
If we make a mistake, we can restore it as follows:
# Cp. bashrc. BAK. bashrc
3. use vi or kate to modify related file tools. do not use gedit. Remember !!
4. the three files simsun. ttc; fonts. dir; fonts. scale are in one directory, that is, in the same directory/home/fonts
5. we use simsun. ttc instead of simsun. ttf for beautification. If you have a simsun. ttf font, you can change simsun. ttf to simsun. ttc. Note the file suffix.
If the font of the system is ready, we have to study it in depth. please put it into practice. we cannot spend too much time beautifying the system. Otherwise, we will get nothing! The fonts of other programs are easy to use. Please add and supplement in practice. we must have a practical spirit!
Beautification process:
Body:
1. create a directory fonts under the/home directory
Click "system tools" on the menu and enter the "Create directory" command.
[Root @ linuxsir01 root] # mkdir/home/fonts
2. copy the simsun. ttc font to the/home/fonts directory. If you do not have simsun. ttc and only have simsun. ttf, you can change simsun. ttf to simsu. ttc. If your font is in windows partition. We can use mount to solve the problem. How to use mount. because there are many contents, we recommend that you check the top posts.
If it is simsun. ttf, we will rename it simsun. ttf to simsun. ttc. if you have copied simsun. ttf to/home/fonts, follow these steps. This step is unnecessary if your font is simsun. ttc.
[Root @ linuxsir01 root] # cd/home/fonts
[Root @ linuxsir01 fonts] # mv simsun. ttf simsun. ttc
3. create a font file for simsun. ttc. There are two in total: fonts. dir and fonts. scale. We still operate on the directory/home/fonts in the simsun font.
Go to the/home/fonts directory
[Root @ linuxsir01 root] # cd/home/fonts
Use touch to create a fonts. dir file first
[Root @ linuxsir01 fonts] # touch fonts. dir
Check whether the fonts. dir file has been created?
[Root @ linuxsir01 fonts] # ls
Then, we can use the kate editor to open fonts. dir, or in the/home/fonts directory.
[Root @ linuxsir01 fonts] # kate fonts. dir
Then, import the following blue segment into the fonts. dir file opened by kate, save and exit.
31
Simsun. ttc-misc-fixed-medium-r-normal -- 0-0-0-0-c-0-gb2312.1980-0
Simsun. ttc-misc-simsun-medium-r-normal -- 0-0-0-0-c-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
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
Sw = 1: bw = 0.5: simsun. ttc-misc-simsun-medium-r-normal -- 0-0-0-0-c-0-iso8859-1
AB = y: sw = 1: bw = 0.5: simsun. ttc-misc-simsun-bold-r-normal -- 0-0-0-0-c-0-iso8859-1
Ai = 0.2: sw = 1: bw = 0.5: simsun. ttc-misc-simsun-medium-o-normal -- 0-0-0-0-0-c-0-iso8859-1
Ai = 0.4: sw = 1: bw = 0.5: simsun. ttc-misc-simsun-medium-I-normal -- 0-0-0-0-0-c-0-iso8859-1
Ai = 0.2: AB = y: sw = 1: bw = 0.5: simsun. ttc-misc-simsun-bold-o-normal -- 0-0-0-0-0-c-0-iso8859-1
Ai = 0.4: AB = y: sw = 1: bw = 0.5: simsun. ttc-misc-simsun-bold-I-normal -- 0-0-0-0-0-c-0-iso8859-1
Ai =-0.2: sw = 1: bw = 0.5: simsun. ttc-misc-simsun-medium-ro-normal -- 0-0-0-0-0-c-0-iso8859-1
Ai =-0.4: sw = 1: bw = 0.5: simsun. ttc-misc-simsun-medium-ri-normal -- 0-0-0-0-0-c-0-iso8859-1
Ai =-0.2: AB = y: sw = 1: bw = 0.5: simsun. ttc-misc-simsun-bold-ro-normal -- 0-0-0-0-0-c-0-iso8859-1
Ai =-0.4: AB = y: sw = 1: bw = 0.5: simsun. ttc-misc-simsun-bold-ri-normal -- 0-0-0-0-0-c-0-iso8859-1
Ai =-0.4: simsun. ttc-misc-simsun-medium-ri-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: simsun. ttc-misc-simsun-medium-ro-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
Simsun. ttc-misc-simsun-medium-r-normal -- 0-0-0-0-c-0-gbk-0
Ai = 0.2: simsun. ttc-misc-simsun-medium-o-normal -- 0-0-0-0-c-0-gbk-0
Ai = 0.4: simsun. ttc-misc-simsun-medium-I-normal -- 0-0-0-0-c-0-gbk-0
AB = y: simsun. ttc-misc-simsun-bold-r-normal -- 0-0-0-0-c-0-gbk-0
Ai = 0.2: AB = y: simsun. ttc-misc-simsun-bold-o-normal -- 0-0-0-0-c-0-gbk-0
Ai = 0.4: AB = y: simsun. ttc-misc-simsun-bold-I-normal -- 0-0-0-0-c-0-gbk-0
Ai =-0.4: simsun. ttc-misc-simsun-medium-ri-normal -- 0-0-0-0-c-0-gbk-0
Ai =-0.4: AB = y: simsun. ttc-misc-simsun-bold-ri-normal -- 0-0-0-0-c-0-gbk-0
Ai =-0.2: simsun. ttc-misc-simsun-medium-ro-normal -- 0-0-0-0-c-0-gbk-0
Ai =-0.2: AB = y: simsun. ttc-misc-simsun-bold-ro-normal -- 0-0-0-0-c-0-gbk-0
Note: Copy the downloaded attachment font.txt to the/home/fonts directory and change it to fonts. dir and fonts. scale.
If you download the attachment to the/root directory, perform the following operations:
[Root @ linuxsir01 root] # cp font.txt/home/fonts. dir
[Root @ linuxsir01 root] # cp font.txt/home/fonts. scale
It should be easy.
4. modify the/etc/X11/XF86Config file. You can also use the kate editor to modify the settings. Back up the/etc/X11/XF86Config file and then operate it. The purpose is to correct the file and restore the original file.
1] Backup
Go to the/etc/X11 Directory
[Root @ linuxsir01 root] # cd/etc/X11/
Backup
[Root @ linuxsir01 X11] # cp XF86Config XF86ConfigBAK
If we make a mistake, we need to restore it in this way. This will be the process of changing files in the future, so I will not talk about it any more.
[Root @ linuxsir01 X11] # cp XF86ConfigBAK XF86Config
2] use the kate editor to change the file and operate it in the/etc/X11 directory.
[Root @ linuxsir01 X11] # kate XF86Config
Add a line like FontPath "/home/fonts" to the row before FontPath "unix/: 7100"
Add Section "Module"
Load "xtt". For more details, see the second post. if you do not add the Load "xtt" line, the program will be garbled !!
Add the # number before the Load "freetype" and Load "type1" lines to log out.
5. modify/etc/fonts. conf and back up the file as mentioned earlier. This process is omitted
[Root @ linuxsir01 X11] # cd/etc/fonts
Open fonts. conf in the kate editor
[Root @ linuxsir01 fonts] # kate fonts. conf
Add the following line to the opened fonts. conf file.
   /Home/fonts
Where can I add it? Add the preceding three rows.
   /Usr/X11R6/lib/X11/fonts/Type1
   /Usr/share/fonts
   ~ /. Fonts
[COLOIR = blue] you can also download fonts. conf file. after downloading the file, change it to fonts. conf, and copy it to the/etc/fonts directory. for example, if you downloaded it to the/tmp Directory, we can do this.
# Cd/tmp
# Cp fonts.conf.txt/etc/fonts. conf
That is to say, you can overwrite the original file.
[/COLOR]
Http://www.linuxsir.com/bbs/attachm...=&postid=207853
6. to modify the/etc/gtk/gtkrc. zh_CN file, back up the file first. I have already said this before and after.
[Root @ linuxsir01 root] # cd/etc/gtk/
[Root @ linuxsir01 gtk] # kate gtkrc. zh_CN
Change to the following.
# $ (Gtkconfigdir)/gtkrc. zh_CN
#
# This file defines the fontsets for Chinese language (zh) using
# The simplified chinese standard GuoBiao as in mainland China (CN)
#
#1999, Pablo Saratxaga
#
Style "gtk-default-zh-cn "{
Fontset = "-misc-simsun-medium-r-normal -- 14-*-gb2312.1980-0, -misc-simsun-medium-r-normal -- 14-*-gb2312.1980-0"
}
Class "GtkWidget" style "gtk-default-zh-cn"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.