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↩︎