javaee论坛

普通会员

225648

帖子

334

回复

348

积分

楼主
发表于 2019-11-03 15:52:42 | 查看: 3150 | 回复: 1

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

如题,出现图中错误:

解决方案一yumupdateyumgroupinstall"XWindowSystem"yumgroupinstall"Desktop"

一些安装命令。

无效

解决方案二yumgrouplist...

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

无效

解决方案三1

删掉所有.serverauthXXX和.Xauthority文件。

无效。

解决方案四2

更改/usr/bin/startx文件,

找到:

#createafilewithauthinformationfortheserver.':0'isadummy.**xserverauthfile=$HOME/.serverauth.$$**trap"rm-f'$xserverauthfile'"HUPINTQUITILLTRAPKILLBUSTERMxauth-q-f"$xserverauthfile"<<EOFadd:$dummy.$mcookieEOF

替换为:

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

无效

解决方案五3

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

Itisjust"noise".Therunofxauthinthe/usr/bin/startxscriptthrowsoutthatmessageifthefiledoesn'texistbeforeitcreatesit.The-qreallyoughttostopitcomplaining,butapparentlyitdoesn't.ifitreallybothersyouthenyoucouldmodifystartxtocreateitwithtouchjustbeforethexauthcommandthatwritestoit,butIMOitisnotworththetrouble.

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

References

[SOLVED]Xauthfilehome/user/.serverauth.1436doesnotexist↩︎

[SOLVED]xauth/.serverauthissuewithstartx↩︎

xauth:file/home/semoi/.serverauth.2263doesnotexist↩︎


普通会员

0

帖子

314

回复

318

积分
沙发
发表于 2019-11-10 01:35:09

很好

您需要登录后才可以回帖 登录 | 立即注册

触屏版| 电脑版

技术支持 历史网 V2.0 © 2016-2017