Traffic and Adsense

Share my tips of website traffic and adsense income promotion.

Thursday, July 27, 2006

 

how to config font in Redhat 9

Today, I repaired one linux server.

error information:

failed to set dafault font path 'unix:/7100'
Fatal server error:
could not open default font 'fixed'


Usually, Your server's x-windows can not restart because of font loss. This is a bug of XFS(X Font Server), so you can
config your system font in XF86Config and uninstall the XFS.

Step 1 : Show the font setting:

[root@linux ~]# vi /etc/X11/fs/config
# allow a max of 10 clients to connect to this font server
client-limit = 10

# when a font server reaches its limit, start up a new one
clone-self = on

# where to look for fonts
catalogue = /usr/X11R6/lib/X11/fonts/misc:unscaled,
        /usr/X11R6/lib/X11/fonts/75dpi:unscaled,
        /usr/X11R6/lib/X11/fonts/100dpi:unscaled,
        /usr/X11R6/lib/X11/fonts/Type1,
        /usr/share/fonts/default/Type1,
        ,
        /usr/share/fonts/zh_CN/TrueType,
        /usr/share/fonts/zh_TW/TrueType
# in 12 points, decipoints
default-point-size = 120

# 100 x 100 and 75 x 75
default-resolutions = 75,75,100,100

# use lazy loading on 16 bit (usually Asian) fonts
deferglyphs = 16

# how to log errors
use-syslog = on

# don't listen to TCP ports by default for security reasons
no-listen = tcp

Step 2 : Copy the font path:
Example:  /usr/share/fonts/zh_CN/TrueType

Step 3 : Edit XF86Config

Delete this row: FontPath  "unix/:7100"
Add these rows:
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/X11R6/lib/X11/fonts/CID"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"

 




Archives

05/21/06   06/19/06   06/21/06   06/23/06   06/26/06   06/27/06   06/29/06   07/02/06   07/05/06   07/10/06   07/27/06   07/30/06   08/01/06   08/06/06   08/07/06   08/09/06   08/12/06   08/18/06   09/14/06   09/21/06   09/26/06   09/27/06   10/03/06   10/04/06   10/05/06   10/06/06   10/07/06   10/22/06   10/25/06   10/26/06   10/28/06   10/29/06   10/30/06   10/31/06   11/05/06   11/06/06   11/07/06   11/08/06   11/09/06   11/11/06   11/18/06   12/02/06   02/19/07  

This page is powered by Blogger. Isn't yours?