centos fedora 无法进入x图形界面
centos 5 和fedora安装完成以后,不能进入x图形界面,界面是黑屏。显卡是via集成显卡。
重启电脑进入grub,然后键入e,再 键入e,在最后输入空格 和1,回车,按b以单用户启动linux。
进入命令行,可以输入system-config-display修改显卡 改成vesa.
或者进入/etc/x11下通过vi编辑器编辑xorg.conf文件。
下面是该文件。
# Xorg configuration created by system-config-display
Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Synaptics" "CorePointer"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Synaptics"
Driver "synaptics"
Option "Device" "/dev/input/mice"
Option "Protocol" "auto-dev"
Option "Emulate3Buttons" "yes"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "via"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
修改driver对应的值为 vesa
Section "Device"
Identifier "Videocard0"
Driver "vesa"
EndSection
重新启动计算机
这样可以保持 800*600的分辨率。然后在按照上篇文章的方法,安装驱动。
祝你好运!