( Note: This method can also be used in your program to use custom fonts to cause the Web program to deploy to the Linux Web container after the garbled problem, only need to find the font used in your program, follow the steps below to execute the command, install the custom font to the system, after the Web program started, You will not see garbled or small squares. )
RedHat5.4 System in the work of the more commonly used, first provide a 32-bit version (rhel-server-5.4-i386-dvd.iso) Download: Click I download
System installed, set the language, found that after restarting the display is small box garbled, it appears that there is no support for Chinese fonts. Looks like you need to copy the Windows7 in the past.
The steps to solve the problem are as follows:
1, open the Linux terminal, switch the root user,
Su-
Enter path fonts:
Cd/usr/share/fonts
2. Create the following folder:
Mkdir-p Truetype/simsun
3. To Window7 's C:\Windows\Fonts directory, find the font "Arial Normal" as shown in:
Use the software to upload "Arial routine", also known as SIMSUN.TTC file, to the/usr/share/fonts/truetype/simsun/directory
4, in the terminal/usr/share/fonts/truetype/simsun/path to execute the following command, you can generate the Fonts.scale file:
Mkfontscale
5, continue to execute the command, generated the Fonts.dir file:
Mkfontdir
6. Execute the following command to add the path of this new font to the font path of the XFS service:
Chkfontpath--add/usr/share/fonts/truetype/simsun/
9. Reload the XFS font service:
Service XFS Reload
10, finally back to Redhat desktop, as shown below, enter the Languange, select Simplified Chinese, and then restart the system is OK, and then enter the system is Chinese
RedHat5.4 system download and Chinese settings