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.