This configuration file was broken by system-config-keyboard

     

5 posts • Page 1 of 1 





problem with startx

Postby evarie » 2013/02/09 11:45:54 

Normally i can get started with the x window system. But i get in troubles.

 This is my screen output:
Code: Select allmarkers:
-- probed
** from config file
== default setting
++ from command line
!! notice
II informational
WW warning
EE error
NI not implemented
?? unknown
== Log file : "/var/log/Xorg.0.log", Time Sat 25 februari 2012 15:37:12 ==
Using config file : "/etc/X11/xorg.conf"
Parse error on line 6 of section ServerLayout in file /etc/X11/xorg.conf
This section must have an Identifier line.
EE problem/error parsing the config line
Fatal server error: no screens found
Please consult the redhat, inc support at
https://www.redhat.com/apps/support
for help
please also check the log file at :/var/log/Xorg.0.log" for additional
information.
giving up.
xinit: No such file or directory (error no 2): unable to connect to X server
xinit: No such process (error no 3): server error.
[root@www]#


And this is my xorg.conf

Code: Select all# This configuration file was broken by system-config-keyboard
Section "ServerLayout"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection
Section "InputDevice"
# Keyboard added by system-config-keyboard
    Identifier  "Keyboard0"
    Driver      "kbd"
    Option        "XkbModel" "pc105+inet"
    Option        "XkbLayout" "us"
EndSection
Section "Device"
    Identifier  "Videocard0"
    Driver      "vesa"
EndSection
evarie  Posts: 29Joined: 2010/11/11 22:47:00
 
Top

--------------------------------------------------------------------------------
 



problem with startx

Postby AlanBartlett » 2013/02/09 21:12:08 

My suggestion is to try the following as your xorg.conf file -- 

Code: Select allSection "ServerLayout"
    Identifier    "system-config-keyboard Configured"
    InputDevice   "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
    Identifier    "Keyboard0"
    Driver        "kbd"
    Option        "XkbModel" "pc105+inet"
    Option        "XkbLayout" "us"
EndSection

Section "Device"
    Identifier    "Videocard0"
    Driver        "vesa"
EndSection

From: https://www.centos.org/forums/viewtopic.php?t=6234

原文地址:https://www.cnblogs.com/timssd/p/4413794.html