Can't connect to X11 window server using ':0.0' 解决方法

1. 以oracle 用户登陆X window

或者

2. root 身份执行

# xhost +

=======================

[oracle@rusky-oracle11g database]$ ./runInstaller  //安装报错
Starting Oracle Universal Installer... Checking Temp space: must be greater than MB. Actual MB Passed
Checking swap space: must be greater than MB. Actual MB Passed
Checking monitor: must be configured to display at least colors
>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<< Some requirement checks failed. You must fulfill these requirements before continuing with the installation, Continue? (y/n) [n] y >>> Ignoring required pre-requisite failures. Continuing...
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015--02_07--20AM. Please wait ...[oracle@rusky-oracle11g database]$ Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified Exception in thread "main" java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:)
at java.awt.Toolkit$.run(Toolkit.java:)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:)
at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)
at com.jgoodies.looks.LookUtils.<clinit>(Unknown Source)
at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:)
at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:)
at oracle.install.commons.util.Application.startup(Application.java:)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:)
at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:)
at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:)
at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:) --------------------
-------------------
[oracle@rusky-oracle11g database]$ xhost + -----必须以root用户执行
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified xhost: unable to open display ":0.0"
[oracle@rusky-oracle11g database]$
DISPLAY=rusky-oracle11g.com:0.0; export DISPLAY
DISPLAY=rusky-oracle11g.com:0.0; export DISPLAY
[oracle@rusky-oracle11g database]$ ./runInstaller
Starting Oracle Universal Installer... Checking Temp space: must be greater than MB. Actual MB Passed
Checking swap space: must be greater than MB. Actual MB Passed
Checking monitor: must be configured to display at least colors
>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<< Some requirement checks failed. You must fulfill these requirements before continuing with the installation, -----------------------按文档要求以root用户执行以下命令还是不行
[root@rusky-oracle11g ~]# xhost rusky-oracle11g.com
xhost: unable to open display "rusky-oracle11g.com:0.0"
[root@rusky-oracle11g ~]# xhost +
xhost: unable to open display "rusky-oracle11g.com:0.0"
[root@rusky-oracle11g ~]# [oracle@rusky-oracle11g ~]# $DISPLAY=192.168.1.203:0.0;export DISPLAY //以oracle用户执行

最终解决办法:logout,以oracle用户登录图形界面,测试执行xclock弹出图形界面时钟。执行./runinstaller安装oracle正常。

To verify that X applications display is set properly, run a X11 based program that comes with the operating system such as xclock:

$ xclock    //正常情况下,切换到oracle用户执行xclock命令会弹出一个图形界面的时钟。

[oracle@rusky-oracle11g database]$ ./runInstaller
Starting Oracle Universal Installer... Checking Temp space: must be greater than MB. Actual MB Passed
Checking swap space: must be greater than MB. Actual MB Passed
Checking monitor: must be configured to display at least colors. Actual Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015--[oracle@rusky-oracle11g database]$
参考资料:http://blog.itpub.net/12801008/viewspace-1023688/  官方文档:http://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm#CEGEGDBA

oracle Can't connect to X11 window server using ':0.0' /Checking monitor: must be configured to display at least 256 colors解决方法的更多相关文章

  1. Can't connect to X11 window server using ':1.0' as the value of the DISPLAY variable.

    安装oracle数据时需要用到图形界面安装,当我们用root用户登录后切换到oracle用户时运行./runInstaller提示报错: Can't connect to X11 window ser ...

  2. Can't connect to X11 window server using 'localhost:0.0' 的解决

    Can't connect to X11 window server using 'localhost:0.0' 的解决 http://lufei-99999.blog.163.com/blog/st ...

  3. 23. Can't connect to X11 window server using '127.0.0.1:0.0' as the value of the DISPLAY variable.解决办法

    在终端里 以root用户执行 #xhost + 然后su - oracle 执行#export DISPLAY=:0 运行runinstaller

  4. Linux上 Can't connect to X11 window server using XX as the value of the DISPLAY 错误解决方法

    在Linux上运行需要图形界面的程序时出现如下错误提示: No protocol specified Exception in thread "main" java.awt.AWT ...

  5. Java在Linux下 不能处理图形的解决办法 Can't connect to X11 window server

    java在图形处理时调用了本地的图形处理库.在利用Java作图形处理(比如:图片缩放,图片签名,生成报表)时,如果运行在windows上不会出问题.如果将程序移植到Linux/Unix上的时候有可能出 ...

  6. Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable.

    刚刚在一台Linux服务器上安装了jdk和Tomcat,然后部署了一个web项目,在项目中有个添加图片的功能,保存图片时报错 org.springframework.web.util.NestedSe ...

  7. Linux启动应用(比如jmeter)报An error occurred: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

    Linux启动应用(比如jmeter)报An error occurred: Can't connect to X11 window server using ':0.0' as the value ...

  8. 【java异常】org.springframework.web.util.NestedServletException: Handler processing failed;Can't connect to X11 window server using 'localhost:10.0' as the value of th

    tomcat工程中创建二维码失败.抛出异常Can't connect to X11 window server using 'localhost:10.0' as the value of th 因为 ...

  9. Linux 下centos7启动 Tomcat 抛出Can't connect to X11 window server 问题的解决方法

    1 问题 今天启动 Tomcat 后,登录页验证码不见了.在 localhost.xxx.log 发现以下错误: org.apache.catalina.core.StandardWrapperVal ...

随机推荐

  1. 在OC和Swift中使用IBDesignable/IBInspectable

    iOS8新特性IBDesignable/IBInspectable,可以直接在XIB或者Storyboard中直接,设置UI类的属性.例 如:UIView.layer.borderWidth.bord ...

  2. zabbix server is not running: the information displayed may not be current

    一.1.关闭selinux及防火墙 2.在/etc/hosts文件里加入ip及对应的主机名. 3.修改配置文件:zabbix.conf.php /opt/data/apache2/htdocs/zab ...

  3. 关于.net 对.manifest清单文件查找缓存的猜想

    问题背景: winform调用unity web player 插件. 按如下操作: ,编译后会生成.manifest清单文件: 通过清单内容可以看出程序在运行时是按照以上信息来查找ActiveX控件 ...

  4. JS软键盘代码

    页面代码如下: <HTML> <HEAD> <TITLE>一个不错的js软键盘代码</TITLE> <meta http-equiv=" ...

  5. Django 实战 之 搭项目(正在更新)

    系统:win10 python版本:python 3.5 工具: pyCharm 3.4 professional 源码来源:https://github.com/ouzhigang/django-o ...

  6. OpenGL ES 2.0 shader开发

    1.创建一个shader容器 GLES20.glCreateShader(shaderType); 函数原型为: int glCreateShader (int type) 方法参数: GLES20. ...

  7. BZOJ 2176 Strange String (最小表示法)

    题目大意: 与别的裸题的唯一不同点是其符号的ASCII码值在3 ~ 254 之间. 算法讨论: 最小表示法直接上.但是唯一不同的就是注意这里的字符范围,用char是会get wa的,所以要用unsig ...

  8. Android 6.0 闪光灯的使用

    Android6.0 已经抛弃了Camer 相关的API,改用新的API接口CamerManager,下面给出使用的简单实例 package com.inper.duqiang.slashlight; ...

  9. ajax 传值 中文乱码问题

    使用encodeURI编码内容 var Path = encodeURI("中文.xls"); url: "ashx/Data.ashx?Path =" + P ...

  10. 数字转化为人民币大写(PHP)

    <?php function numTrmb($num) { $d = array("零", "壹", "贰", "叁&qu ...