zoukankan      html  css  js  c++  java
  • 安装数据库Typical path for xclock: /usr/X11R6/bin/xclock 错误问题

    [oracle@localhost database]$ ./runInstaller
    Starting Oracle Universal Installer...

    Checking Temp space: must be greater than 120 MB. Actual 2847 MB Passed
    Checking swap space: must be greater than 150 MB. Actual 2047 MB Passed
    Checking monitor: must be configured to display at least 256 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/OraInstall2019-06-05_12-05-20AM. Please wait ...
    DISPLAY not set. Please set the DISPLAY and try again.
    Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:
    - For csh: % setenv DISPLAY 192.168.1.128:0.0
    - For sh, ksh and bash: $ DISPLAY=192.168.1.128:0.0; export DISPLAY
    Use the following command to see what shell is being used:
    echo $SHELL
    Use the following command to view the current DISPLAY environment variable setting:
    echo $DISPLAY
    - Make sure that client users are authorized to connect to the X Server.
    To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and type the following command:
    % xhost +
    To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native operating system such as 'xclock':
    % <full path to xclock.. see below>
    If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.
    Typical path for xclock: /usr/X11R6/bin/xclock

    DISPLAY变量是用来设置将图形显示到何处.比如CENTOS,你用图形界面登录进去,DISPLAY自动设置为DISPLAY=:0.0表示显式到本地监视器,那么通过终端工具(例如:xshell)进去,运行图形界面的程序,如果没有设置,系统是不允许程序启动的。
    在执行xhost +命令(使得所有客户都可以访问)

    正常返回信息为:
    access control disabled,clients can connect from any host

    如果xhost +不能执行,报错:xhost :  unable to open display ""

    可以输入命令export DISPLAY=:0执行一下

    再执行xhost +  

    就可以安装oracle了,但是如果没有安装成功 重启linux,还会包上面这个错,再重新执行一下就好了

    如果启动图形界面显示错误 可以执行 xhost + 来解决

    这是因为Xserver默认情况下不答应别的用户的图形程序的图形显示在当前屏幕上. 假如需要别的用户的图形显示在当前屏幕上, 则应以当前登陆的用户, 也就是切换身份前的用户执行如下命令

    xhost +

    这个命令将答应别的用户启动的图形程序将图形显示在当前屏幕上. 

     

  • 相关阅读:
    中国MOOC_零基础学Java语言_第1周 计算_第1周编程题_1温度转换
    郝斌_GUI
    郝斌_生产消费
    WCF技术剖析(卷1)WCF全面解析文摘
    构建搞性能可扩展asp.net网站文摘
    net 程序员面试宝典
    【工具推荐】ELMAH——可插拔错误日志工具(转)
    各大主流.Net的IOC框架性能测试比较(转)
    2013年总结
    GCT英语口语复试中的常见问题总汇
  • 原文地址:https://www.cnblogs.com/JIKes/p/10979801.html
Copyright © 2011-2022 走看看