请教: centos 7 运行 X Window 失败

shiguangxin 2018-06-27 10:42:25
vps 主机 安装 centos 7

使用 xshell 远程连接

# yum groupinstall "X Window System"

# yum groupinstall "GNOME Desktop"

安装顺利,没有报错

#startx

显示如下信息:

xauth: file /root/.serverauth.1227 does not exist

X.Org X Server 1.19.5
Release Date: 2017-10-12
X Protocol Version 11, Revision 0
Build Operating System: 3.10.0-693.17.1.el7.x86_64
Current Operating System: Linux host.localdomain 3.10.0-862.3.3.el7.x86_64 #1 SMP Fri Jun 15 04:15:27 UTC 2018 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-3.10.0-862.3.3.el7.x86_64 root=UUID=3437f1a0-f850-4f1b-8a7c-819c5f6a29e4 ro crashkernel=auto consoleblank=0 vga=0x305 LANG=en_US.UTF-8
Build Date: 11 April 2018 04:40:54PM
Build ID: xorg-x11-server 1.19.5-5.el7
Current version of pixman: 0.34.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) 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: Wed Jun 27 10:20:31 2018
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"

init: connection to X server lost
waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.

请问这是什么原因? 应该怎么解决?
谢谢
...全文
3151 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
路遥知马力~ 2020-03-30
  • 打赏
  • 举报
回复
引用 6 楼 shadder2k丶 的回复:
我已经解决了,我的是腾讯云服务器,只需要切换登录服务器的方式(用VNC登录方式登录服务器),其他的方式登录默认是命令行界面
谢谢啦
  • 打赏
  • 举报
回复
你这是在什么环境下的?虚拟机?还是云服务? 如果你想要是使用VNC连接的话,你得在系统上安装tigrevnc 还有gnome桌面。配置root目录下的隐藏文件“.vnc”。 然后再去“/etc/sysconfig/vncserver”文件设置用户以及桌面的分辨率。 再启动vnc服务。 如果是ssh连接的话,直接开启sshd就行了。
ikeepo 2019-10-16
  • 打赏
  • 举报
回复
引用 4 楼 丶shadder2k丶 的回复:
楼主解决了吗 [root@VM_0_13_centos ~]# startx xauth: file /root/.serverauth.3268 does not exist X.Org X Server 1.20.4 X Protocol Version 11, Revision 0 Build Operating System: 3.10.0-957.1.3.el7.x86_64 Current Operating System: Linux VM_0_13_centos 3.10.0-1062.1.2.el7.x86_64 #1 SMP Mon Sep 30 14:19:46 UTC 2019 x86_64 Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.10.0-1062.1.2.el7.x86_64 root=UUID=4b499d76-769a-40a0-93dc-4a31a59add28 ro crashkernel=auto console=ttyS0 console=tty0 panic=5 net.ifnames=0 biosdevname=0 LANG=en_US.utf8 Build Date: 09 August 2019 03:27:09AM Build ID: xorg-x11-server 1.20.4-7.el7 Current version of pixman: 0.34.0 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) 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: Mon Oct 14 08:16:55 2019 (==) Using system config directory "/usr/share/X11/xorg.conf.d" pci id for fd 15: 1013:00b8, driver (null) (II) modeset(0): Initializing kms color map for depth 16, 6 bpc.
同问,解决了么
shadder2k丶 2019-10-16
  • 打赏
  • 举报
回复
我已经解决了,我的是腾讯云服务器,只需要切换登录服务器的方式(用VNC登录方式登录服务器),其他的方式登录默认是命令行界面
shadder2k丶 2019-10-14
  • 打赏
  • 举报
回复
楼主解决了吗 [root@VM_0_13_centos ~]# startx xauth: file /root/.serverauth.3268 does not exist X.Org X Server 1.20.4 X Protocol Version 11, Revision 0 Build Operating System: 3.10.0-957.1.3.el7.x86_64 Current Operating System: Linux VM_0_13_centos 3.10.0-1062.1.2.el7.x86_64 #1 SMP Mon Sep 30 14:19:46 UTC 2019 x86_64 Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.10.0-1062.1.2.el7.x86_64 root=UUID=4b499d76-769a-40a0-93dc-4a31a59add28 ro crashkernel=auto console=ttyS0 console=tty0 panic=5 net.ifnames=0 biosdevname=0 LANG=en_US.utf8 Build Date: 09 August 2019 03:27:09AM Build ID: xorg-x11-server 1.20.4-7.el7 Current version of pixman: 0.34.0 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) 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: Mon Oct 14 08:16:55 2019 (==) Using system config directory "/usr/share/X11/xorg.conf.d" pci id for fd 15: 1013:00b8, driver (null) (II) modeset(0): Initializing kms color map for depth 16, 6 bpc.
LubinLew 2018-06-29
  • 打赏
  • 举报
回复
你应该使用Xmanager
李庆海 2018-06-27
  • 打赏
  • 举报
回复
你好,请参考https://www.cnblogs.com/SLKnate/p/linux_centos7_XWindowSystem.html,能否解决你的问题,安装完成后,重启试下,本人很少去安装X Window System,所以能力有限

19,619

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧