LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: 超级用户

又升级了一次,X彻底挂了. (OK now)

[复制链接]
发表于 2006-4-17 12:40:55 | 显示全部楼层
请出现诸如字体路径之类问题的用户,务必

zless /usr/share/doc/xserver-xorg/changelog.Debian.gz zless /usr/share/doc/xserver-xorg-core/NEWS.Debian.gz

由于整个X11R7的prefix从/usr/X11R6转移到/usr,字体路径也由/usr/X11R6/lib/X11/fonts/*,相应变为/usr/share/fonts/X11/*,而旧的xorg.conf中的字体路径没有改变,所以会出现找不到字体的情况。

理论上升级xserver-xorg或dpkg-reconfigure xserver-xorg会重新配置xorg.conf,但是由于一些bug,只有在原始的xorg.conf没有被用户手动修改的情况下,也就是/etc/X11/xorg.conf的md5sum值和/var/lib/x11/xorg.conf.md5sum一致时,才会重写xorg.conf。但是xorg.conf没有被用户手动修改的情况是很少的。

所以我说删除xorg.conf,并且purge掉xserver-xorg,然后重新安装,这样就能确保重新生成
包含正确字体路径xorg.conf。

任何手动对字体目录做符号链接之类的举动都是不正确的,/usr/X11R6最终是会被废弃的。
回复 支持 反对

使用道具 举报

发表于 2006-4-17 12:43:36 | 显示全部楼层
Post by zhhero
大家都用的那个源啊 ?
我用的 ftp://debian.ustc.edu.cn 这个源xorg的版本怎么才 6.9.0.dfsg.1-6

我用的testing版本,是不是这个版本就到6.9.0.dfsg.1-6   ?


不用sid的源好象是没办法升级到7.0的。想尝新还是升级吧,呵呵。
回复 支持 反对

使用道具 举报

发表于 2006-4-17 12:43:51 | 显示全部楼层
当然,如果你也可以手动修改xorg.conf,订正字体路径,但只应该修改xorg.conf,而不是像前面有的人说的,把/usr/X11R6/lib/X11/fonts作为符号链接到/usr/share/fonts/X11。
回复 支持 反对

使用道具 举报

发表于 2006-4-17 12:52:03 | 显示全部楼层
乱成一团,还是等稳定点了再说吧:sleep
回复 支持 反对

使用道具 举报

发表于 2006-5-19 11:59:11 | 显示全部楼层
我用的是Ubuntu 安装的是5.04 然后升级了
结果无法进入X 提示也是无法找到字体
你给出的是debian的,好像和我的系统不是很一样,您能告诉我该怎么做么?
谢谢!

关于xorg.conf
Post by seamonkey
请出现诸如字体路径之类问题的用户,务必

zless /usr/share/doc/xserver-xorg/changelog.Debian.gz zless /usr/share/doc/xserver-xorg-core/NEWS.Debian.gz

由于整个X11R7的prefix从/usr/X11R6转移到/usr,字体路径也由/usr/X11R6/lib/X11/fonts/*,相应变为/usr/share/fonts/X11/*,而旧的xorg.conf中的字体路径没有改变,所以会出现找不到字体的情况。

理论上升级xserver-xorg或dpkg-reconfigure xserver-xorg会重新配置xorg.conf,但是由于一些bug,只有在原始的xorg.conf没有被用户手动修改的情况下,也就是/etc/X11/xorg.conf的md5sum值和/var/lib/x11/xorg.conf.md5sum一致时,才会重写xorg.conf。但是xorg.conf没有被用户手动修改的情况是很少的。

所以我说删除xorg.conf,并且purge掉xserver-xorg,然后重新安装,这样就能确保重新生成
包含正确字体路径xorg.conf。

任何手动对字体目录做符号链接之类的举动都是不正确的,/usr/X11R6最终是会被废弃的。
回复 支持 反对

使用道具 举报

发表于 2006-5-19 12:08:26 | 显示全部楼层
breezy升到dapper啊,注意事项和Debian估计差不多吧,你的具体“症状”是什么?仔细检查/var/log/Xorg.0.log,特别注意以(EE)开头的行。
回复 支持 反对

使用道具 举报

发表于 2006-5-19 12:12:18 | 显示全部楼层
开机后一直在命令行  
尝试启动几次x-windows界面  
然后告诉我无法启动x-windows界面  

然后提示是不是要看什么文件以诊断系统问题  

运行了一个什么命令(忘记了)
然后高五我说是默认字体找不到  
could not open default font "fixed"  可能引起无法加载图形界面


-----------------------
补充说明一下
我之前没有弄好,重装2次了
然后这次装完5.04的时候就备份了xorg.conf 不知道有没有用?
回复 支持 反对

使用道具 举报

发表于 2006-5-19 16:36:28 | 显示全部楼层
我的xorg.0.log

  1. (II) XINPUT: Adding extended input device "Configured Mouse" (type: MOUSE)
  2. (II) XINPUT: Adding extended input device "Generic Keyboard" (type: KEYBOARD)
  3. (II) Configured Mouse: ps2EnableDataReporting: succeeded
  4. Warning: font renderer for ".pcf" already registered at priority 0
  5. Warning: font renderer for ".pcf.Z" already registered at priority 0
  6. Warning: font renderer for ".pcf.gz" already registered at priority 0
  7. Warning: font renderer for ".snf" already registered at priority 0
  8. Warning: font renderer for ".snf.Z" already registered at priority 0
  9. Warning: font renderer for ".snf.gz" already registered at priority 0
  10. Warning: font renderer for ".bdf" already registered at priority 0
  11. Warning: font renderer for ".bdf.Z" already registered at priority 0
  12. Warning: font renderer for ".bdf.gz" already registered at priority 0
  13. Warning: font renderer for ".pmf" already registered at priority 0

  14. Fatal server error:
  15. could not open default font 'fixed';
  16. the X server's font paths might be misconfigured, remote font server(s)
  17. may be unreachable, and/or local fonts may not be installed or are not
  18. configured correctly.

  19. People inexperienced with the X Window System should have either the
  20. "x-window-system" or "x-window-system-core" packages installed.
  21. # apt-get install x-window-system-core
  22. # apt-get install x-window-system

  23. Other useful commands to run include:
  24. $ dpkg --status xserver-common
  25. $ dpkg --status xfonts-base
  26. $ zmore /usr/share/doc/xorg-common/FAQ.gz

  27. Please consult the The X.Org Foundation support
  28.          at http://wiki.X.Org
  29. for help.
  30. Please also check the log file at "/var/log/Xorg.0.log" for additional information.
复制代码

我的xorg.conf,我按照网上一个人的修改,改了下,不行

  1. # /etc/X11/xorg.conf (xorg X Window System server configuration file)
  2. #
  3. # This file was generated by dexconf, the Debian X Configuration tool, using
  4. # values from the debconf database.
  5. #
  6. # Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
  7. # (Type "man /etc/X11/xorg.conf" at the shell prompt.)
  8. #
  9. # This file is automatically updated on xserver-xorg package upgrades *only*
  10. # if it has not been modified since the last upgrade of the xserver-xorg
  11. # package.
  12. #
  13. # If you have edited this file but would like it to be automatically updated
  14. # again, run the following command:
  15. #   sudo dpkg-reconfigure -phigh xserver-xorg

  16. Section "Files"

  17. #原来没有相关的东西,按照网上有人写的,我尝试了下,不行,后来给我注释掉了
  18. #RgbPath  "/usr/share/X11/rgb"
  19. #ModulePath "/usr/lib/xorg/modules"
  20. #****END****

  21. #原来的
  22.         FontPath        "/usr/share/X11/fonts/misc"
  23.         FontPath        "/usr/share/X11/fonts/cyrillic"
  24.         FontPath        "/usr/share/X11/fonts/100dpi/:unscaled"
  25.         FontPath        "/usr/share/X11/fonts/75dpi/:unscaled"
  26.         FontPath        "/usr/share/X11/fonts/Type1"
  27.         FontPath        "/usr/share/X11/fonts/CID"
  28.         FontPath        "/usr/share/X11/fonts/100dpi"
  29.         FontPath        "/usr/share/X11/fonts/75dpi"

  30. #****我添加的****
  31. FontPath           "/usr/share/fonts/misc"
  32. FontPath          "/usr/share/fonts/75dpi"
  33. FontPath          "/usr/share/fonts/100dpi"
  34. FontPath          "/usr/share/fonts/TTF"
  35. FontPath          "/usr/share/fonts/Type1"
  36. FontPath        "/usr/share/fonts/wqy"
  37. FontPath         "/usr/share/fonts/CID"
  38. FontPath       "/usr/share/fonts/cyrillic"
  39. FontPath       "/usr/share/fonts/75dpi/:unscaled"
  40. Fontpath       "/usr/share/fonts/100dpi/:unscaled"
  41. #****END****

  42.         # paths to defoma fonts
  43.         FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
  44.         FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
  45. EndSection

  46. Section "Module"
  47.         Load        "GLcore"
  48.         Load        "i2c"
  49.         Load        "bitmap"
  50.         Load        "ddc"
  51.         Load        "dri"
  52.         Load        "extmod"
  53.         Load        "freetype"
  54.         Load        "glx"
  55.         Load        "int10"
  56.         Load        "type1"
  57.         Load        "vbe"
  58. EndSection

  59. Section "InputDevice"
  60.         Identifier        "Generic Keyboard"
  61.         Driver                "kbd"
  62.         Option                "CoreKeyboard"
  63.         Option                "XkbRules"        "xorg"
  64.         Option                "XkbModel"        "pc104"
  65.         Option                "XkbLayout"        "us"
  66. EndSection

  67. Section "InputDevice"
  68.         Identifier        "Configured Mouse"
  69.         Driver                "mouse"
  70.         Option                "CorePointer"
  71.         Option                "Device"                "/dev/input/mice"
  72.         Option                "Protocol"                "ImPS/2"
  73.         Option                "Emulate3Buttons"        "true"
  74.         Option                "ZAxisMapping"                "4 5"
  75. EndSection

  76. Section "Device"
  77.         Identifier        "NVIDIA Corporation NV18 [GeForce4 MX 440 AGP 8x]"
  78.         Driver                "nv"
  79.         BusID                "PCI:2:0:0"
  80. EndSection

  81. Section "Monitor"
  82.         Identifier        "MAG 770FT"
  83.         Option                "DPMS"
  84. EndSection

  85. Section "Screen"
  86.         Identifier        "Default Screen"
  87.         Device                "NVIDIA Corporation NV18 [GeForce4 MX 440 AGP 8x]"
  88.         Monitor                "MAG 770FT"
  89.         DefaultDepth        24
  90.         SubSection "Display"
  91.                 Depth                1
  92.                 Modes                "1024x768" "800x600" "720x400" "640x480"
  93.         EndSubSection
  94.         SubSection "Display"
  95.                 Depth                4
  96.                 Modes                "1024x768" "800x600" "720x400" "640x480"
  97.         EndSubSection
  98.         SubSection "Display"
  99.                 Depth                8
  100.                 Modes                "1024x768" "800x600" "720x400" "640x480"
  101.         EndSubSection
  102.         SubSection "Display"
  103.                 Depth                15
  104.                 Modes                "1024x768" "800x600" "720x400" "640x480"
  105.         EndSubSection
  106.         SubSection "Display"
  107.                 Depth                16
  108.                 Modes                "1024x768" "800x600" "720x400" "640x480"
  109.         EndSubSection
  110.         SubSection "Display"
  111.                 Depth                24
  112.                 Modes                "1024x768" "800x600" "720x400" "640x480"
  113.         EndSubSection
  114. EndSection

  115. Section "ServerLayout"
  116.         Identifier        "Default Layout"
  117.         Screen                "Default Screen"
  118.         InputDevice        "Generic Keyboard"
  119.         InputDevice        "Configured Mouse"
  120. EndSection

  121. Section "DRI"
  122.         Mode        0666
  123. EndSection
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-7-29 02:01:17 | 显示全部楼层
出处 http://blog.csdn.net/bat603
作者 prophet
本文可随意转载,但须保留出处。   
  该文只是针对具体问题的解决方法,主要是抛砖引砖。
这次感觉到了linux的脆弱,或者说真正体会到了在linux中一切都是以文件实现的。也许在系统重新启动以前我装了一些字体软件包,还有可能是因为我没有把程序关闭就执行了reboot命令,我不能确定,有待以后找到原因。
          总之,系统无法进入X-Window了,提示信息是: could not open default font 'fixed'。在网上搜索了好多方法,比如:
1.
重新配置
删了xorg.conf

apt-get --purge remove xserver-xorg

然后

apt-get install xserver-xorg
2.
dpkg-reconfigure也不行。
关于上面的命令的作用,可以到网上查找。
我的解决办法:
关于X-Window的配置文件在 /etc/X11/xorg.conf,本人是菜鸟,不太懂详细的配置信息,所以我把它删除(记得备份,笔者由于疏忽删除后才想起备份,幸亏最终能启动X-Window了,否则会痛心疾首的)。
a. rm  -f /etc/X11/xorg.conf
生成默认的X-Window配置文件,名字为 xorg.conf.new
b. Xorg -configure
c. cp xorg.conf.new /etc/X11/xorg.conf
d. starx (大部分不能启动,主要是看错误信息)
错误信息大意是错误信息在/var/log/xorg.0.log文件中,其中错误信息是
(EE) xf860penSerial:Cannot open device  /dev/mouse
no such file or directory
(EE) Mouse0:cannot open input device
(EE) PreInit failed for input device "Mouse0"
No core pointer
有上面可知,出现错误的原因是鼠标的问题
e. find / -name "mouse*"
发现 鼠标驱动的位置 /dev/input/mouse0
f. vi /etc/X11/xorg.conf
看到
Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "rotocol" "auto"
    Option        "Device" "/dev/mouse"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection
发现了问题,果然是鼠标驱动位置出现了问题,改为
Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "rotocol" "auto"
    Option        "Device" "/dev/input/mouse0"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

g. startx
成功!可爱的X-Window出现了,当然,还要设置你想要的显示设置的分辨率。
然后注销,成功。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表