LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: kiron

不知误改了什么,X不能进入

[复制链接]
 楼主| 发表于 2004-1-16 22:39:25 | 显示全部楼层
最初由 folklore 发表
看来它是生成XF86Config的;
你看一下XF86Config和它的back
有什么不同
贴出来给我看好吗?
thks


其中它让我选择了分辨率的配置,颜色深度等,其他的没给配置

新的XF86Config如下:
  1. # XFree86 4 configuration created by redhat-config-xfree86

  2. Section "ServerLayout"
  3.         Identifier     "Default Layout"
  4.         Screen      0  "Screen0" 0 0
  5.         InputDevice    "Mouse0" "CorePointer"
  6.         InputDevice    "Keyboard0" "CoreKeyboard"
  7.         InputDevice    "DevInputMice" "AlwaysCore"
  8. EndSection

  9. Section "Files"

  10. # RgbPath is the location of the RGB database.  Note, this is the name of the
  11. # file minus the extension (like ".txt" or ".db").  There is normally
  12. # no need to change the default.
  13. # Multiple FontPath entries are allowed (they are concatenated together)
  14. # By default, Red Hat 6.0 and later now use a font server independent of
  15. # the X server to render fonts.
  16.         RgbPath      "/usr/X11R6/lib/X11/rgb"
  17.         FontPath     "unix/:7100"
  18. EndSection

  19. Section "Module"
  20.         Load  "dbe"
  21.         Load  "extmod"
  22.         Load  "fbdevhw"
  23.         Load  "glx"
  24.         Load  "record"
  25.         Load  "freetype"
  26.         Load  "type1"
  27. #        Load  "dri"
  28. EndSection

  29. Section "InputDevice"

  30. # Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
  31. #        Option        "Xleds"                "1 2 3"
  32. # To disable the XKEYBOARD extension, uncomment XkbDisable.
  33. #        Option        "XkbDisable"
  34. # To customise the XKB settings to suit your keyboard, modify the
  35. # lines below (which are the defaults).  For example, for a non-U.S.
  36. # keyboard, you will probably want to use:
  37. #        Option        "XkbModel"        "pc102"
  38. # If you have a US Microsoft Natural keyboard, you can use:
  39. #        Option        "XkbModel"        "microsoft"
  40. #
  41. # Then to change the language, change the Layout setting.
  42. # For example, a german layout can be obtained with:
  43. #        Option        "XkbLayout"        "de"
  44. # or:
  45. #        Option        "XkbLayout"        "de"
  46. #        Option        "XkbVariant"        "nodeadkeys"
  47. #
  48. # If you'd like to switch the positions of your capslock and
  49. # control keys, use:
  50. #        Option        "XkbOptions"        "ctrl:swapcaps"
  51. # Or if you just want both to be control, use:
  52. #        Option        "XkbOptions"        "ctrl:nocaps"
  53. #
  54.         Identifier  "Keyboard0"
  55.         Driver      "keyboard"
  56.         Option            "XkbRules" "xfree86"
  57.         Option            "XkbModel" "pc105"
  58.         Option            "XkbLayout" "us"
  59. EndSection

  60. Section "InputDevice"
  61.         Identifier  "Mouse0"
  62.         Driver      "mouse"
  63.         Option            "Protocol" "IMPS/2"
  64.         Option            "Device" "/dev/psaux"
  65.         Option            "ZAxisMapping" "4 5"
  66.         Option            "Emulate3Buttons" "no"
  67. EndSection

  68. Section "InputDevice"

  69. # If the normal CorePointer mouse is not a USB mouse then
  70. # this input device can be used in AlwaysCore mode to let you
  71. # also use USB mice at the same time.
  72.         Identifier  "DevInputMice"
  73.         Driver      "mouse"
  74.         Option            "Protocol" "IMPS/2"
  75.         Option            "Device" "/dev/input/mice"
  76.         Option            "ZAxisMapping" "4 5"
  77.         Option            "Emulate3Buttons" "no"
  78. EndSection

  79. Section "Monitor"
  80.         Identifier   "Monitor0"
  81.         VendorName   "Monitor Vendor"
  82.         ModelName    "MAG 796FD"
  83.         DisplaySize  330        240
  84.         HorizSync    29.0 - 97.0
  85.         VertRefresh  50.0 - 160.0
  86.         Option            "dpms"
  87. EndSection

  88. Section "Device"
  89.         Identifier  "Videocard0"
  90.         Driver      "nvidia"
  91.         VendorName  "Videocard vendor"
  92.         BoardName   "NVIDIA GeForce 2 GTS (generic)"
  93.         VideoRam    65536
  94. EndSection

  95. Section "Screen"
  96.         Identifier "Screen0"
  97.         Device     "Videocard0"
  98.         Monitor    "Monitor0"
  99.         DefaultDepth     24
  100.         SubSection "Display"
  101.                 Depth     24
  102.                 Modes    "1024x768" "800x600" "640x480"
  103.         EndSubSection
  104. EndSection

  105. Section "DRI"
  106.         Group        0
  107.         Mode         0666
  108. EndSection


  109.      
复制代码


旧的错误的配置清单如下:
  1. # XFree86 4 configuration created by pyxf86config

  2. Section "ServerLayout"
  3.         Identifier     "Default Layout"
  4.         Screen      0  "Screen0" 0 0
  5.         InputDevice    "Mouse0" "CorePointer"
  6.         InputDevice    "Keyboard0" "CoreKeyboard"
  7.         InputDevice    "DevInputMice" "AlwaysCore"
  8. EndSection

  9. Section "Files"
  10. # RgbPath is the location of the RGB database.  Note, this is the name of the
  11. # file minus the extension (like ".txt" or ".db").  There is normally
  12. # no need to change the default.

  13. # Multiple FontPath entries are allowed (they are concatenated together)
  14. # By default, Red Hat 6.0 and later now use a font server independent of
  15. # the X server to render fonts.

  16.         RgbPath      "/usr/X11R6/lib/X11/rgb"
  17.         FontPath     "unix/:7100"
  18. EndSection

  19. Section "Module"
  20.         Load  "dbe"
  21.         Load  "extmod"
  22.         Load  "fbdevhw"
  23.         Load  "glx"
  24.         Load  "record"
  25.         Load  "freetype"
  26.         Load  "type1"
  27. #        Load  "dri"
  28. EndSection

  29. Section "InputDevice"
  30. # Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
  31. #        Option        "Xleds"                "1 2 3"

  32. # To disable the XKEYBOARD extension, uncomment XkbDisable.
  33. #        Option        "XkbDisable"

  34. # To customise the XKB settings to suit your keyboard, modify the
  35. # lines below (which are the defaults).  For example, for a non-U.S.
  36. # keyboard, you will probably want to use:
  37. #        Option        "XkbModel"        "pc102"
  38. # If you have a US Microsoft Natural keyboard, you can use:
  39. #        Option        "XkbModel"        "microsoft"
  40. #
  41. # Then to change the language, change the Layout setting.
  42. # For example, a german layout can be obtained with:
  43. #        Option        "XkbLayout"        "de"
  44. # or:
  45. #        Option        "XkbLayout"        "de"
  46. #        Option        "XkbVariant"        "nodeadkeys"
  47. #
  48. # If you'd like to switch the positions of your capslock and
  49. # control keys, use:
  50. #        Option        "XkbOptions"        "ctrl:swapcaps"
  51. # Or if you just want both to be control, use:
  52. #        Option        "XkbOptions"        "ctrl:nocaps"
  53. #
  54.         Identifier  "Keyboard0"
  55.         Driver      "keyboard"
  56.         Option            "XkbRules" "xfree86"
  57.         Option            "XkbModel" "pc105"
  58.         Option            "XkbLayout" "us"
  59. EndSection

  60. Section "InputDevice"
  61.         Identifier  "Mouse0"
  62.         Driver      "mouse"
  63.         Option            "Protocol" "IMPS/2"
  64.         Option            "Device" "/dev/psaux"
  65.         Option            "ZAxisMapping" "4 5"
  66.         Option            "Emulate3Buttons" "no"
  67. EndSection

  68. Section "InputDevice"
  69. # If the normal CorePointer mouse is not a USB mouse then
  70. # this input device can be used in AlwaysCore mode to let you
  71. # also use USB mice at the same time.
  72.         Identifier  "DevInputMice"
  73.         Driver      "mouse"
  74.         Option            "Protocol" "IMPS/2"
  75.         Option            "Device" "/dev/input/mice"
  76.         Option            "ZAxisMapping" "4 5"
  77.         Option            "Emulate3Buttons" "no"
  78. EndSection

  79. Section "Monitor"
  80.         Identifier   "Monitor0"
  81.         VendorName   "Monitor Vendor"
  82.         ModelName    "MAG 796FD"
  83.         DisplaySize  330        240
  84.         HorizSync    29.0 - 97.0
  85.         VertRefresh  50.0 - 160.0
  86.         Option            "dpms"
  87. EndSection

  88. Section "Device"
  89.         Identifier  "Videocard0"
  90.         Driver      "nvidia"
  91.         VendorName  "Videocard vendor"
  92.         BoardName   "NVIDIA GeForce 2 GTS (generic)"
  93.         VideoRam    65536
  94. EndSection

  95. Section "Screen"
  96.         Identifier "Screen0"
  97.         Device     "Videocard0"
  98.         Monitor    "Monitor0"
  99.         DefaultDepth     24
  100.         SubSection "Display"
  101.                 Depth     24
  102.                 Modes    "1024x768" "800x600" "640x480"
  103.         EndSubSection
  104. EndSection

  105. Section "DRI"
  106.         Group        0
  107.         Mode         0666
  108. EndSection

复制代码
发表于 2004-1-16 22:47:45 | 显示全部楼层
最初由 kiron 发表
用单用户模式进入,改为运行级别3再进入字符去配置



可以,但我每次用单用户修改inittab后,以后将3改为5还是一样的错误

最重要是根本就不知道错在哪里
 楼主| 发表于 2004-1-16 22:50:00 | 显示全部楼层
我粗略看了一下,
两者好像是一样的:(
 楼主| 发表于 2004-1-16 22:52:44 | 显示全部楼层
最初由 pinksnoopy 发表
可以,但我每次用单用户修改inittab后,以后将3改为5还是一样的错误

最重要是根本就不知道错在哪里


应该修改XF86Config后再改为5运行级
至于怎么改,我也不清楚,要深入学习XF86Config的配置文件才能改吧
发表于 2004-1-16 22:54:31 | 显示全部楼层
估计一般的文本文件是不会改变的,不知道,对系统了解不够?
发表于 2004-1-16 22:59:43 | 显示全部楼层
最初由 home 发表
估计一般的文本文件是不会改变的,不知道,对系统了解不够?

可以将做好的配置文件留一个副本,如果出现错误的话,进入single后在cp过来用以恢复.
发表于 2004-1-16 23:38:22 | 显示全部楼层
最初由 kiron 发表
应该修改XF86Config后再改为5运行级
至于怎么改,我也不清楚,要深入学习XF86Config的配置文件才能改吧


你理解错了,我之前说的是init的运行级,而我并不知道有XF86运行级
 楼主| 发表于 2004-1-16 23:40:35 | 显示全部楼层
最初由 pinksnoopy 发表
你理解错了,我之前说的是init的运行级,而我并不知道有XF86运行级


我也不知道有XF86Config的运行级

你也理解错了,我说的就是init运行级;) ;)
发表于 2004-1-17 19:51:06 | 显示全部楼层
我现在就是这种故障
x光标能出现了
但键入
redhat-config-xfree86
说没有这个命令啊
难道真要重装X
发表于 2004-1-17 20:10:36 | 显示全部楼层
最初由 Parakeet 发表
我现在就是这种故障
x光标能出现了
但键入
redhat-config-xfree86
说没有这个命令啊
难道真要重装X

把用绝对路径试试看
/usr/bin/redhat-config-xfree86
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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