CentOS启动图形界面startx:xauth: file /root/.serverauth.25690 does not exist

  • Post author:
  • Post category:其他


CentOS启动图形界面startx:xauth: file /root/.serverauth.25690 does not exist

如题,出现图中错误:

在这里插入图片描述



  • 解决方案一

    yum update
    yum groupinstall "X Window System"
    yum groupinstall "Desktop"
    

    一些安装命令。

    无效



  • 解决方案二

    yum grouplist
    ...
    

    先查看有哪些适用,再选择。

    无效



  • 解决方案三


    1


    删掉所有

    .serverauthXXX



    .Xauthority

    文件。

    无效。



  • 解决方案四


    2


    更改

    /usr/bin/startx

    文件,

    找到:

    # create a file with auth information for the server. ':0' is a dummy.
        **xserverauthfile=$HOME/.serverauth.$$**
        trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP KILL BUS TERM
        xauth -q -f "$xserverauthfile" << EOF
    add :$dummy . $mcookie
    EOF
    

    替换为:

     **xserverauthfile=$HOME/.serverauth.$$** 
     # 替换为
     **xserverauthfile= `mktemp -p /tmp serverauth.XXXXXXXXXX`**
    

    无效



  • 解决方案五


    3


    认为这只是噪音,不是X不能启动的真正原因。

    It is just "noise".
    
    The run of xauth in the /usr/bin/startx script throws out that message if the file doesn't exist before it creates it. The -q really ought to stop it complaining, but apparently it doesn't. if it really bothers you then you could modify startx to create it with touch just before the xauth command that writes to it, but IMO it is not worth the trouble.
    

最后,还是不知道怎么解决,有谁知道的,麻烦告知,谢谢。



  • References



  1. [SOLVED] Xauth file home/user/.serverauth.1436 does not exist


    ↩︎


  2. [SOLVED] xauth/.serverauth issue with startx


    ↩︎



  3. xauth: file /home/semoi/.serverauth.2263 does not exist



    ↩︎



版权声明:本文为The_Time_Runner原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。