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"
????????