最近VMWare下搞了2個CentOS 32bit虛擬機, 裝了些軟件之后,都遇到開機無法顯示登錄界面, 僅能看見桌面背景圖的情況。 ?以下是我搜索很久匯總的方法。
?
嘗試按 ctrl + alt + F3(快捷鍵可能有所不同), ?由桌面模式進入命令行模式。?
直接 startx 報錯:
Fatal server error:Server is already active for display 0If this server is no longer running, remove /tmp/.X0-lock and start agin.
? 查看程序( ` 非 ' )
#?ps aux | grep `cat /tmp/.X0-lock`
若查找到像這樣:
root ?2283 ?0.5 ?5.1 27796 6536 ? ? ?S ?Apr21 ?59:03 [X]
,則嘗試啟動 display 1
# startx -- : 1
否則, 刪掉 /tmp/.X0-lock。
當我刪除掉?/tmp/.X0-lock, 啟動,出現以下提示
Fatal server error:Server is already active for display 0If this server is no longer running, remove /tmp/.X0-lock and start agin.
此時運行 # startx -- :1?
已經能登錄了。 此時生成了 /tmp/.X1-lock
?
Thank the Buddha!
?
詳情或類似參見?http://www.x.org/wiki/FAQErrorMessages/#index6h2
?