centos 5 和fedora安装完成以后,不能进入x图形界面

在CentOS 5和Fedora系统中遇到安装完成后无法启动X图形界面的问题。通过编辑配置文件,使用命令'EndSection'退出编辑,然后输入':wq'保存并退出。接下来运行'startx'尝试进入图形界面。如果此方法无效,可以尝试重启计算机以解决问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

保荐退出编辑

按ESC

输入

:wq

然后运行:startx就可以进入图形界面

如果不行就重新启动计算机

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值