在Linux系統中,當您要運行X程序時,Linux將無法運行X程序。我們現在如何解決這個問題?現在,讓我們看一下Linux無法使用Ai Station小編運行X程序的解決方案。
	  Xlib: connection to ":0.0" refused by server
	  Xlib: No protocol specified
	  Error: Can't open display: :0.0
	  這雖然是老問題了,但是對我來說卻還有些不同。想在自己的本本Ubuntu上安裝Oracle 10,結果新增加的用戶Oracle不能運行X程序。
	  所以我查了一下手冊,以日常工作用的那個用戶登錄,在shell中運行
	  xhost local:Oracle
	  non-network local connections being added to access control list
	  然后Oracle身份就可以運行X程序了。
	  man xhost中有這樣一段
	  A complete name has the syntax ‘‘family:name’’ where the families are as follows:
	  inet????? Internet host (IPv4)
	  inet6???? Internet host (IPv6)
	  dnet????? DECnet host
	  nis?????? Secure RPC network name
	  krb?????? Kerberos V5 principal
	  local???? contains only one name, the empty string
	  si??????? Server Interpreted
	  其中local那個是用來解決同一臺機器的不同用戶訪問X的問題的。
	  關于Linux不能運行X程序的解決方法你學會了嗎?我盡可能的將我所知道的知識都寫下來了,也希望你們能夠盡可能多的貢獻和分享你的知識。