Xlib connection to 0.0 refused by server
在linux系统中用Oracle帐号执行DBCA或其他JAVA图形界面程序时,报错:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Error: Can't open display: :0.0
解决办法:用root登陆,在#提示符后输入:
xhost local:oracle non-network local connections being added to access control list
敲回车运行后出现:
non-network local connections being added to access control list
xhost: bad hostname "non-network"
xhost: bad hostname "local"
xhost: bad hostname "connections"
xhost: bad hostname "being"
xhost: bad hostname "added"
xhost: bad hostname "to"
xhost: bad hostname "access"
xhost: bad hostname "control"
xhost: bad hostname "list"
此时再 su - oracle 切换到Oracle用户执行图形界面任务就可以了
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的问题的。
分享到:
相关推荐
#Xlib: connection to ":0.0" refused by server Xlib: No protocol specified 错误三 warning: Cannot convert string "-isas-song ti-medium-r-normal--*-140-*-*-c-*-gb2312.1980-0" to type 错误四 Checking ...
linux-JAVA图形处理 错误信息1: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable. ...Xlib: connection to ":0.0" refused by server Xlib: No protocol specified
Permuted index to Xlib functions Description of macros and reference pages for their function versions Listing of the server-side color database Alphabetical index and description of structures ...
Permuted index to Xlib functions Description of macros and reference pages for their function versions Listing of the server-side color database Alphabetical index and description of structures ...
Permuted index to Xlib functions Description of macros and reference pages for their function versions Listing of the server-side color database Alphabetical index and description of structures ...
xlib编程手册
目前比较全面描述linux下底层开发API,所有的gtk、qt都是基于xlib进行开发的,类似于win32的api参考
xlib开发参考手册,将官方文档编译为chm文件供大家参考
常见问题:./runInstaller前缺包报错:Xlib: connection to ":0.0" refused by server 169 常见问题:./runInstaller前权限报错:/oracle/product/10.2.0/db_1.. 170 常见问题:通过命令给Linux(CentOS)分区.... ...
学习底层xlib开发流程,直接编写x11客户端程序
xlib开发手册 linux下底层开发API xlib开发文档,比较强
Xlib Manual xlib手册 X窗口系统客户端程序库手册
Xlib Reference Manual Xlib Reference Manual Xlib Reference Manual
xlib program manul.pdf xlib的编程指导文档,来源自网络
X library, known as Xlib, is the lowest level of programming interface to X. This library enables a programmer to write applications with an advanced user interface based on windows on the screen, ...
xlib的一个小例子,简单使用了xlib编写了窗口程序,按钮和xlib消息响应等等。
一本学习xlib很不错的书,详细的了xlib的框架和如何设计,很值得一看
Xlib Programming Manual
用Xlib库进行基本图形编程,可以开发各控件
Linux底层Xlib库函数的一些说明 X编程很好的文档