LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2534|回复: 16

[求助]X无法启动——搜索很多地方,还是没解决 (已经解决,感谢redinux)

[复制链接]
发表于 2006-4-8 22:21:06 | 显示全部楼层 |阅读模式
最近(4月8日),通过网络方式安装了debian——把源都选成testing,然后选择“安装桌面系统”。但是,重启之后,startx,无法启动x。
我的xorg.conf文件如下:

  1. # 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 xorg.conf manual page.
  7. # (Type "man 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 commands as root:
  15. #
  16. #   cp /etc/X11/xorg.conf /etc/X11/xorg.conf.custom
  17. #   md5sum /etc/X11/xorg.conf >/var/lib/xfree86/xorg.conf.md5sum
  18. #   dpkg-reconfigure xserver-xorg

  19. Section "Files"
  20.         FontPath        "unix/:7100"                        # local font server
  21.         # if the local font server has problems, we can fall back on these
  22.         FontPath        "/usr/lib/X11/fonts/misc"
  23.         FontPath        "/usr/lib/X11/fonts/cyrillic"
  24.         FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
  25.         FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
  26.         FontPath        "/usr/lib/X11/fonts/Type1"
  27.         FontPath        "/usr/lib/X11/fonts/CID"
  28.         FontPath        "/usr/lib/X11/fonts/100dpi"
  29.         FontPath        "/usr/lib/X11/fonts/75dpi"
  30. EndSection

  31. Section "Module"
  32.         Load        "bitmap"
  33.         Load        "dbe"
  34.         Load        "ddc"
  35.         Load        "dri"
  36.         Load        "evdev"
  37.         Load        "extmod"
  38.         Load        "freetype"
  39.         Load        "glx"
  40.         Load        "int10"
  41.         Load        "record"
  42.         Load        "type1"
  43.         Load        "vbe"
  44. EndSection

  45. Section "InputDevice"
  46.         Identifier        "Generic Keyboard"
  47.         Driver                "keyboard"
  48.         Option                "CoreKeyboard"
  49.         Option                "XkbRules"        "xorg"
  50.         Option                "XkbModel"        "pc104"
  51.         Option                "XkbLayout"        "us"
  52. EndSection

  53. Section "InputDevice"
  54.         Identifier        "Configured Mouse"
  55.         Driver                "mouse"
  56.         Option                "CorePointer"
  57.         Option                "Device"                "/dev/input/mice"
  58.         Option                "Protocol"                "ImPS/2"
  59.         Option                "Emulate3Buttons"        "true"
  60.         Option                "ZAxisMapping"                "4 5"
  61. EndSection
  62. #Section "InputDevice" (虽然我有触摸板,但是没有发现驱动模块,所以手工将它用#注释掉)
  63.         #Identifier        "Synaptics Touchpad"
  64.         #Driver                "synaptics"
  65.         #Option                "SendCoreEvents"        "true"
  66.         #Option                "Device"                "/dev/psaux"
  67.         #Option                "Protocol"                "auto-dev"
  68.         #Option                "HorizScrollDelta"        "0"
  69. #EndSection

  70. Section "Device"
  71.         Identifier        "NVIDIA Corporation NV17 [GeForce4 420 Go 32M]"
  72.         Driver                "nv"
  73.         BusID                "PCI:1:0:0"
  74. EndSection

  75. Section "Monitor"
  76.         Identifier        "Generic Monitor"
  77.         Option                "DPMS"
  78.         HorizSync        28-49
  79.         VertRefresh        43-72
  80. EndSection

  81. Section "Screen"
  82.         Identifier        "Default Screen"
  83.         Device                "NVIDIA Corporation NV17 [GeForce4 420 Go 32M]"
  84.         Monitor                "Generic Monitor"
  85.         DefaultDepth        24
  86.         SubSection "Display"
  87.                 Depth                1
  88.                 Modes                "1024x768" "800x600" "640x480"
  89.         EndSubSection
  90.         SubSection "Display"
  91.                 Depth                4
  92.                 Modes                "1024x768" "800x600" "640x480"
  93.         EndSubSection
  94.         SubSection "Display"
  95.                 Depth                8
  96.                 Modes                "1024x768" "800x600" "640x480"
  97.         EndSubSection
  98.         SubSection "Display"
  99.                 Depth                15
  100.                 Modes                "1024x768" "800x600" "640x480"
  101.         EndSubSection
  102.         SubSection "Display"
  103.                 Depth                16
  104.                 Modes                "1024x768" "800x600" "640x480"
  105.         EndSubSection
  106.         SubSection "Display"
  107.                 Depth                24
  108.                 Modes                "1024x768" "800x600" "640x480"
  109.         EndSubSection
  110. EndSection

  111. Section "ServerLayout"
  112.         Identifier        "Default Layout"
  113.         Screen                "Default Screen"
  114.         InputDevice        "Generic Keyboard"
  115.         InputDevice        "Configured Mouse"
  116. #        InputDevice        "Synaptics Touchpad"                (手工注释掉,理由同上)
  117. EndSection

  118. Section "DRI"
  119.         Mode        0666
  120. EndSection
复制代码


我的Xorg.0.log文件的后5行如下:

  1. Warning: font renderer for ".snf.gz" already registered at priority 0
  2. Warning: font renderer for ".bdf" already registered at priority 0
  3. Warning: font renderer for ".bdf.Z" already registered at priority 0
  4. Warning: font renderer for ".bdf.gz" already registered at priority 0
  5. Warning: font renderer for ".pmf" already registered at priority 0
  6. FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing.
复制代码


之前我没有装xfs,也出现无法启动X的问题。后来,在网上搜寻解决办法后,发现可能是由于字体服务没有启动造成,所以apt-get install xfs。
下面是没有装xfs时,Xorg.0.log的后5行,请参考:

  1. Warning: font renderer for ".bdf.gz" already registered at priority 0
  2. Warning: font renderer for ".pmf" already registered at priority 0
  3. Could not init font path element unix/:7100, removing from list!
  4. FreeFontPath: FPE "/usr/lib/X11/fonts/misc" refcount is 2, should be 1; fixing.
复制代码


恳请大家帮忙解决,好几天没有看到gnome的桌面了,嗨~~,发个帖子都要靠 MS Windows~!

另外,我发现我的debian里,/usr/lib/X11/fonts目录下的内容,与/usr/X11R6/lib/X11/fonts目录下的内容一模一样,不知是什么原因。是不是我之前用其他系统的X配置文件替换现在的X配置文件造成的呢?

解决方法:
[size=+1]
正如11楼的redinux所说的,我的确是在安装x11-common包的时候出现了问题,但是这个问题用"apt-cacahe policy x11-cmomon"是无法发现的。在redinux的提议下,我下载:x11-common_6.9.0.dfsg.1-6_all.deb,
忽略错误重新安装它 :
dpkg --force-all -i /var/cache/apt/archives/x11-common_6.9.0.dfsg.1-6_all.deb,
然后在设置xserver-xorg,启动X,终于我看到久违的灰白的图形窗口(没有gnome,所以不能使用任何窗口)。
接下来,安装gnome,好好享受debian吧!

注意:该方案不一定适合你所遇到情况,请慎重采用。
发表于 2006-4-9 11:49:11 | 显示全部楼层

FontPath        "unix/:7100"       
这行注释掉试试!!
回复 支持 反对

使用道具 举报

发表于 2006-4-9 14:54:17 | 显示全部楼层
Section "InputDevice"
        Identifier        "Configured Mouse"
        Driver                "mouse"
        Option                "CorePointer"
        Option                "Device"                "/dev/psaux"
        Option                "rotocol"                "ImPS/2"
        Option                "Emulate3Buttons"        "true"
        Option                "ZAxisMapping"                "4 5"
EndSection
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-9 19:17:17 | 显示全部楼层
Post by nicle

FontPath        "unix/:7100"       
这行注释掉试试!!


谢谢两位的帮忙!
去掉了这行( FontPath        "unix/:7100"),还是无法启动X,
这回返回的错误最后两行如下:

  1. /usr/X11R6/lib/X11/xinit/xinitrc : line 8 : /etc/X11/Xsession : 没有那个文件或目录
  2. FreeFontPath: FPE "/usr/lib/X11/fonts/misc" refcount is 2, should be 1; fixing.
复制代码


是因为我的显卡没装驱动吗?
还是我要重新指定字体文件的位置?
回复 支持 反对

使用道具 举报

发表于 2006-4-9 20:01:48 | 显示全部楼层
  1. /etc/X11/Xsession : 没有那个文件或目录
复制代码


这个文件属于x11-common
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-9 21:42:20 | 显示全部楼层
Post by seamonkey
  1. /etc/X11/Xsession : 没有那个文件或目录
复制代码


这个文件属于x11-common


是我的配置文件不完全吗,缺少了/etc/X11/Xsession?
不明白,请解释!
回复 支持 反对

使用道具 举报

发表于 2006-4-10 08:49:41 | 显示全部楼层
试试dpkg-reconfigure xserver-xorg
1,关闭内核帧缓冲(老显卡时)
2,关闭部分X.Org服务器模块
dri,glx,v41
如1可以时,2就不必做了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-10 09:59:06 | 显示全部楼层
Post by 神教阳顶天
试试dpkg-reconfigure xserver-xorg
1,关闭内核帧缓冲(老显卡时)
2,关闭部分X.Org服务器模块
dri,glx,v41
如1可以时,2就不必做了


我照着做了,还是不行,显示以下结果:

  1. FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing.
复制代码


另外,我想看看我的xfs服务器是否已经启动,我用了“chkconfig”这个命令,可是系统确报告“没有这个命令”,是不是我的系统还有很多东西没有装呢?

谢谢教主答复!
回复 支持 反对

使用道具 举报

发表于 2006-4-10 13:14:54 | 显示全部楼层

引起这个问题的可能原因有很多

最近一次遇到是直接用root帐户拷了2个字体进来
折腾了一下午才发现拷进来那2个字体权限竟然是500
chmod成755就行了

你的情况根据你做过的操作来吧
想想你做过什么
回复 支持 反对

使用道具 举报

发表于 2006-4-10 14:02:51 | 显示全部楼层
前几天我遇到过同样的问题,安装GDM以后可以顺利进入XFCE4,但是还是不知道如何彻底解决这个问题。
回复 支持 反对

使用道具 举报

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

本版积分规则

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