阅 读 文 章

[求助]xhost问题!

[来源:网上转载 (http://bbs.chinaunix.net) | 作者:网友() | 时间:2007-06-23 | 浏览: 人次 ]

一台sun120(没有显卡,我用Xmanager连接的)
安装完Solaris后安装Oracle时候出现的问题!
配置完系统参数和环境变量后,执行安装程序出现如下错误!

CODE:
[Copy to clipboard]
$ ./runInstaller
$ Initializing Java Virtual Machine from /tmp/OraInstall2007-06-18_11-35-05AM/jre/bin/java. Please wait...
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
                                                                                
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window
server using '192.168.0.253:0.0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.<clinit>;(X11GraphicsEnvironment.java:59)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:120)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
        at java.awt.Window.<init>;(Window.java:188)
        at java.awt.Frame.<init>;(Frame.java:315)
        at java.awt.Frame.<init>;(Frame.java:262)
        at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:593)
通过这个帖子
http://bbs.chinaunix.net/viewthread.php?tid=170975&extra=&page=1

了解到有两种解决方法,
1、以root 身份执行xhost +192.168.0.253:
提示xhost:unknown address family "192.168.0.253"
xhost: bad hostname "192.168.0.253:"
2、以Oracle用户登录,错误依旧!


请大家帮忙!~谢谢!




Xmanager直接登录,不用设置xhost +


谢谢Race~
但是执行./runInstaller时出错啊!

有个问题,
vi .profile
DISPLAY=hostname:1.0 export DISPLAY
关于环境变量, hostname是Xmanager端的IP还是Sun服务器端的IP?


DISPLAY=hostname:1.0 export DISPLAY
可以注释掉之后,再试一下。xmanager登录成功之后,DISPLAY已经自动设置好了,.profile
再设置一次的话肯定会报错的。


谢谢!可以了!




最新评论 共有1位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表
网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.newhtm.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.