On Wed, 22 Dec 2004, Lionel PLAIS wrote:
+ Hello, I'm a newbie and I have update XFree86 on my Mandrake 10.0
+ and I have a problem: whenever I want to run X an error message is + print + + Fatal server error:
+ could not open default font 'fixed'
+ + I don't understand, I have install all XFree86's packages.
+ Do you know what's the error?
+ Thank
Could be this:
(WW) `fonts.dir' not found (or not valid) in "/usr/local/share/fonts". Entry deleted from font path. (Run 'mkfontdir' on "/usr/local/share/fonts"). (WW) `fonts.dir' not found (or not valid) in "/usr/X11R6/lib/X11/fonts". Entry deleted from font path. (Run 'mkfontdir' on "/usr/X11R6/lib/X11/fonts"). (**) FontPath set to "/usr/share/fonts"
Check the manual pages about "mkfontdir", "mkfontscale", and "fc-cache". Go see if there's actually fonts in those directories:
ls /usr/local/share/fonts
ls /usr/X11R6/lib/X11/fonts
If there's no actual fonts in /usr/local/share/fonts then take it out of the config. You should have fonts in the subdirectories of /usr/X11R6/lib/X11/fonts though. Here's an example of my "cyrillic" directory:
ls /usr/X11R6/lib/X11/fonts/cyrillic
crox1cbo.pcf.gz crox2to.pcf.gz crox5hbo.pcf.gz koi10x20.pcf.gz crox1cb.pcf.gz crox2t.pcf.gz crox5hb.pcf.gz koi12x24b.pcf.gz crox1co.pcf.gz crox3cbo.pcf.gz crox5ho.pcf.gz koi12x24.pcf.gz crox1c.pcf.gz crox3cb.pcf.gz crox5h.pcf.gz koi5x8.pcf.gz <and on and on...>
The utils mkfontdir, mkfontscale, and fc-cache handle making the files that X needs to use the fonts. You should see files in with the fonts like this example from the above directory:
encodings.dir fonts.alias fonts.cache-1 fonts.dir fonts.scale
You probably either have an empty directory, or haven't ran the utilities to process the font directories.
You might want to stick a piece of shell coding like this in your system boot scripts (/etc/rc.d/rc.M on mine) to update the font caches every so often:
# Update the X font indexes: if [ -x /usr/X11R6/bin/fc-cache ]; then echo "Updating X font indexes with FC-CACHE ..." /usr/X11R6/bin/fc-cache fi
If you're new to linux and X11 both, you'll save yourself some trouble by reading the man pages for XFree86 and its config file. Many times I see that the default config that's included in with people's distributions of linux just doesn't work.
--- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ _______________________________________________ XFree86 mailing list XFree86@xxxxxxxxxxx http://XFree86.Org/mailman/listinfo/xfree86