RedHat5.4 system download and Chinese settings

Source: Internet
Author: User

RedHat5.4 system download and Chinese settings

(Note:This method can also solve the problem of garbled code after the web program is deployed to the web Container in linux by using a Custom font in your program. You only need to find the font used in your program, run the following command to install the Custom font to the system. After the web program is started, no Garbled text or small blocks will be displayed .)

RedHat5.4 systems are commonly used at work, first provide a 32-bit version (rhel-server-5.4-i386-dvd.iso) download: click I download

After the system is installed, the language is set. After the system is restarted, a small box of garbled characters is displayed. It seems that the Chinese font is not supported. It seems that the font in Windows 7 needs to be copied.

To solve the problem, follow these steps:

1. Open the linux terminal and switch to the root user,

su -

Path fonts:

cd /usr/share/fonts

2. Create the following folder:

mkdir -p truetype/simsun

3. Go to the C: \ Windows \ Fonts directory of window7 and find the font of "regular", as shown in:

Use the software to upload the "simsun. ttc" file to the/usr/share/fonts/truetype/simsun/directory.
4. Run the following command in the/usr/share/fonts/truetype/simsun/path of the terminal to generate the fonts. scale file:

mkfontscale

5. Run the following command to generate the fonts. dir file:

mkfontdir

6. Run the following command to add the new font path to the xfs service font path:

chkfontpath --add /usr/share/fonts/truetype/simsun/

9. Reload the xfs font service:

service xfs reload

10. Return to the RedHat desktop, as shown in the following figure. Go to Ange, select Simplified Chinese, restart the system, and then enter Chinese as the system.

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.