当前位置: 首页 > news >正文

Centos Unable to verify the graphical display setup

ERROR: Unable to verify the graphical display setup.
在Linux下安装Oracle时

运行

./runInstaller
报错

ERROR: Unable to verify the graphical display setup. This application requires X display. Make sure that xdpyinfo exist under PATH variable.
No X11 DISPLAY variable was set, but this program performed an operation which requires it.

解决方法:

查了些资料,按照网上的做法:

1.使用root用户执行xhost +操作;

2.直接用oracle用户登陆(不是通过root切换),然后执行export DISPLAY=本地ip:0.0;

试过多次发现仍然不能解决问题,回过头再看报错:/xdpyinfo,试着执行xdpyinfo:

[oracle@linux-oracle6 ~]$ cd /usr/bin/xdpyinfo-bash: /usr/bin/xdpyinfo: No such file or directory

发现该命令不存在,开始怀疑是xdpyinfo问题,于是安装xdpyinfo:

[root@linux-oracle6 ~]# yum -y install xdpyinfo

vncserver

root@localhost ~]# vncserver
    New 'localhost:1 (root)' desktop is localhost:1Starting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/localhost:1.log
export DISPLAY=localhost:1
xhost +

access control disabled, clients can connect from any host

出现上面提示即可。再次运行

./runInstaller

若是运行上述命令的时候,提示没有vncserver这个命令,则执行:

yum install tigervnc-server 

若是提示没有xhost,则执行:

yum whatprovides "*/xhost"     ----------------------查看是哪些提供了 */xhost

Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
base/filelists_db | 3.4 MB 00:00 …
xorg-x11-server-utils-7.7-2.el6.x86_64 : X.Org X11 X server utilities ---------------------就是缺少这个包xorg-x11-server-utils-7.7-2.el6.x86_64
Repo : base
Matched from:
Filename : /usr/bin/xhost

安装xorg-x11-server-utils-7.7-2.el6.x86_64

yum -y install xorg-x11-server-utils-7.7-2.el6.x86_64

这样这两个命令就都可以用啦。

http://www.lryc.cn/news/274844.html

相关文章:

  • Java 说一下 synchronized 底层实现原理?
  • nginx访问路径匹配方法
  • 偌依 项目部署及上线步骤
  • PHP特性知识点扫盲 - 上篇
  • Docker一键极速安装Nacos,并配置数据库!
  • 交换机04_远程连接
  • ES6定义一个类(函数内部定义属性,,原型定义方法 ), 实现继承?
  • 使用 Process Explorer 和 Windbg 排查软件线程堵塞案例分享
  • “智慧”千里眼助力水泵站
  • C++多态性——(5)运算符重载(第二节)
  • ES -极客学习
  • 【大厂秘籍】系列 - Java多线程面试题
  • vue实现画笔回放,canvas转视频播放功能
  • Docker中镜像的相关操作
  • [python]python利用pyaudio录制系统声音没有立体声混音怎么录制系统音频
  • 使用echarts的bmap配置项绘制区域轮廓遮罩
  • 第3章 【课后习题】(完整版)
  • redis安装与配置
  • kotlin first/last/indexOf/elementAt
  • 计算机网络——网络中要解决的问题
  • 初识STL
  • 程序员副业之无人直播助眠
  • imazing破解版百度云2.17.3(附激活许可证下载)
  • VS+QT五子棋游戏开发
  • SpringBoot中动态注册接口
  • CSS 实现两个圆圈重叠部分颜色不同
  • 【数据库系统概念】第7-14章集合
  • Kibana
  • C#使用 OpenHardwareMonitor获取CPU或显卡温度、使用率、时钟频率相关方式
  • K8S--- volumesvolumeMount