Checking monitor:must be configured to display at least 256 colors

本文详细记录了在使用CentOS虚拟机部署Oracle 10g时遇到的显示颜色配置错误问题,包括错误解析、解决过程以及最终通过调整DISPLAY环境变量成功安装Oracle的过程。

转载地址:http://blog.itpub.net/12801008/viewspace-1023688/

(注,修改部分内容)


在虚拟机Cent os oracle 10g时出现如下错误:

Checking monitor:must be configured to display at least 256 colors 
Failed <<<< >>>Could not execute auto check for display colors using command 
/usr/openwin/bin/xdpyinfo. Checks if the DISPLAY variable is set.

看这个错误提示,应该是display变量没设置,但我分明是已经设定了呀,而且也在root用户下执行过xhost +。

接着又尝试将oraparam.ini中的参数MIN_DISPLAY_COLORS=256去掉,然后执行安装,但虽然跳过了这个检查,却在下一步报错:

java.lang internalerror can not connect to x11 server

后来再检查display设置,发现display设置为了$DISPLAY=192.168.137.66:0.0

但是Xmanager显示的是 [ip]:1.0

于是修改display变量值。

$DISPLAY=172.18.8.155:1.0;export DISPLAY

再次运行安装程序,果然安装界面出来了!

[@more@]Checking monitor:must be configured to display at least 256 colors
[oracle@localhost database]$ ./runInstaller Starting Oracle Universal Installer... Checking Temp space: must be greater than 120 MB. Actual 28566 MB Passed Checking swap space: must be greater than 150 MB. Actual 4095 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/OraInstall2025-08-28_09-41-07AM. 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
最新发布
08-29
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值