1.开启linux系统的桌面环境,使用startx未成功,报如下错误:
提示:
[root@5201351 /]# startxxauth: creating new authority file /root/.serverauth.2002xinit: No such file or directory (errno 2): no server "/usr/bin/X" in PATHUse the -- option, or make sure that /usr/bin is in your path andthat "/usr/bin/X" is a program or a link to the right type of serverfor your display. Possible server names include: Xorg Common X server for most displays Xvfb Virtual frame buffer Xfake kdrive-based virtual frame buffer Xnest X server nested in a window on another X server Xephyr kdrive-based nested X servergiving up.xinit: No such file or directory (errno 2): unable to connect to X serverxinit: No such process (errno 3): Server error.
再继续使用init 5命令进行切换时,同样报错Retrigger failed udev events,如下图所示:
这是因为init 5执行的条件是得linux操作系统得有图形环境,因此很可能是未安装桌面环境
解决方法,安装Gnome桌面环境即可:
[root@5201351 ~]yum groupinstall "Desktop" -y [root@5201351 ~]yum groupinstall "X Window System" -y 安装时间比较长.