centos 6.4 卡在了进度条界面

1.从新启动

     reboot

     在进度条界面时按住F5,可以看到启动过程,定位到starting certmonger卡住了。

    原因分析:X11图形化界面服务引起的,导致开机无法进入图形化界面。 

    用xshell,或者secureCRT连接虚拟机

修改配置文件/etc/X11/,如果xorg.conf 存在,修改名字

mv /etc/X11/xorg.conf /etc/X11/old_xorg.conf

如果xorg.conf不存在

修改启动级别

vi /etc/inittab

# Default runlevel. The runlevels used are:

#   0 - halt (Do NOT set initdefault to this)

#   1 - Single user mode

#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)

#   3 - Full multiuser mode

#   4 - unused

#   5 - X11

#   6 - reboot (Do NOT set initdefault to this)

#

id:5:initdefault:#把最底行的5改为3,

启动startx命令 ,可以进入操作界面

上面是网上的教程,试了我的操作界面一闪而过,查看日志

vi /var/log/Xorg.0.log

  693.838] (II) XINPUT: Adding extended input device "Macintosh mouse button emulation" (type: MOUSE, id 9)
[   693.838] (II) evdev: Macintosh mouse button emulation: initialized for relative axes.
[   693.838] (**) Macintosh mouse button emulation: (accel) keeping acceleration scheme 1
[   693.838] (**) Macintosh mouse button emulation: (accel) acceleration profile 0
[   693.838] (**) Macintosh mouse button emulation: (accel) acceleration factor: 2.000
[   693.838] (**) Macintosh mouse button emulation: (accel) acceleration threshold: 4
[   693.899] (II) VMWARE(0): VMMOUSE DEVICE_OFF/CLOSE
[   693.951] (II) evdev: Macintosh mouse button emulation: Close
[   693.951] (II) UnloadModule: "evdev"
[   693.951] (II) evdev: Power Button: Close
[   693.951] (II) UnloadModule: "evdev"
[   693.951] (II) evdev: AT Translated Set 2 keyboard: Close
[   693.951] (II) UnloadModule: "evdev"
[   693.951] (II) VMWARE(0): VMMOUSE DEVICE_OFF/CLOSE
[   694.252] (II) VMWARE(0): VMMouseUnInit
[   694.253] (II) vmware(0): Terminating Xv video-stream id:0
[   694.371] Server terminated successfully (0). Closing log file.
~                                                                  

安装以下组件
yum groupinstall -y "Desktop" "Desktop Platform" "Desktop Platform Development"  "Fonts"  "General Purpose Desktop"  "Graphical Administration Tools"  "Graphics Creation Tools"  "Input Methods"  "X Window System"  "Chinese Support [zh]" "Internet Browser"
安装xorg组件
yum install xorg-x11*

执行startx success出现界面了,退出startx 界面又没了

 

重启系统变成了命令行输入用户名密码,通过startx才能启动操作界面。而且terminal 右键不能显示,只能通过系统查找

貌似第一个问题是编辑vi /etc/inittab,把最后一行改成5,重启生效了。

第二个问题是centos6.2以上默认右键都没有terminal,现添加方法 如下

1》  yum -y install nautilus-open-terminal

2》 shutdown -r now

OK

已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页