vps 主机  安装 centos 7使用 xshell 远程连接# yum groupinstall "X Window System"# yum groupinstall "GNOME Desktop" 安装顺利,没有报错#startx显示如下信息:xauth:  file /root/.serverauth.1227 does not existX.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.请问这是什么原因? 应该怎么解决?
谢谢

解决方案 »

  1.   

    你好,请参考https://www.cnblogs.com/SLKnate/p/linux_centos7_XWindowSystem.html,能否解决你的问题,安装完成后,重启试下,本人很少去安装X Window System,所以能力有限
      

  2.   

    你应该使用Xmanager
      

  3.   

    楼主解决了吗
    [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.
      

  4.   

    我已经解决了,我的是腾讯云服务器,只需要切换登录服务器的方式(用VNC登录方式登录服务器),其他的方式登录默认是命令行界面
      

  5.   

    你这是在什么环境下的?虚拟机?还是云服务?如果你想要是使用VNC连接的话,你得在系统上安装tigrevnc 还有gnome桌面。配置root目录下的隐藏文件“.vnc”。
    然后再去“/etc/sysconfig/vncserver”文件设置用户以及桌面的分辨率。
    再启动vnc服务。如果是ssh连接的话,直接开启sshd就行了。