xhost + command not found
短信预约 -IT技能 免费直播动态提醒
1. [oracle@11GR2-test ~]$ export DISPLAY=192.168.181.128:1
在虚拟机中安装ORACLE, 设置完DISPLAY变量后,运行xhost +命令无法找到,明显为xhost相对应的rpm包未安装.
用yum命令加参数whatprovides 加xhost查到相对应的包为xorg-x11-server-utils-7.7-14.el6.x86_64,如下图.
2. [root@11GR2-test ~]# yum whatprovides */xhost
Loaded plugins: refresh-packagekit, security, ulninfo
xorg-x11-server-utils-7.7-14.el6.x86_64 : X.Org X11 X server utilities
Repo : public_ol6_latest
Matched from:
Filename : /usr/bin/xhost
3. yum安装xorg-x11-server-utils-7.7-14.el6.x86_64包
[root@11GR2-test ~]# yum install -y xorg-x11-server-utils-7.7-14.el6.x86_64
Loaded plugins: refresh-packagekit, security, ulninfo
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-server-utils.x86_64 0:7.7-14.el6 will be installed
--> Processing Dependency: mcpp for package: xorg-x11-server-utils-7.7-14.el6.x86_64
--> Running transaction check
---> Package mcpp.x86_64 0:2.7.2-4.1.el6 will be installed
--> Processing Dependency: libmcpp.so.0()(64bit) for package: mcpp-2.7.2-4.1.el6.x86_64
--> Running transaction check
---> Package libmcpp.x86_64 0:2.7.2-4.1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================
Package Arch Version Repository Size
==================================================================
Installing:
xorg-x11-server-utils x86_64 7.7-14.el6 public_ol6_latest 156 k
Installing for dependencies:
libmcpp x86_64 2.7.2-4.1.el6 public_ol6_latest 68 k
mcpp x86_64 2.7.2-4.1.el6 public_ol6_latest 23 k
Transaction Summary
====================================================================
Install 3 Package(s)
Total download size: 246 k
Installed size: 548 k
Downloading Packages:
------------------------------------------------------------------------------------------------------------------------------------
Total 11 MB/s | 246 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libmcpp-2.7.2-4.1.el6.x86_64 1/3
Installing : mcpp-2.7.2-4.1.el6.x86_64 2/3
Installing : xorg-x11-server-utils-7.7-14.el6.x86_64 3/3
Verifying : xorg-x11-server-utils-7.7-14.el6.x86_64 1/3
Verifying : libmcpp-2.7.2-4.1.el6.x86_64 2/3
Verifying : mcpp-2.7.2-4.1.el6.x86_64 3/3
Installed:
xorg-x11-server-utils.x86_64 0:7.7-14.el6
Dependency Installed:
libmcpp.x86_64 0:2.7.2-4.1.el6 mcpp.x86_64 0:2.7.2-4.1.el6
Complete!
4. 安装完xorg-x11-server-utils-7.7-14.el6.x86_64包后,产生了xhost +
[oracle@11GR2-test ~]$ xhost +
access control disabled, clients can connect from any host
在虚拟机中安装ORACLE, 设置完DISPLAY变量后,运行xhost +命令无法找到,明显为xhost相对应的rpm包未安装.
用yum命令加参数whatprovides 加xhost查到相对应的包为xorg-x11-server-utils-7.7-14.el6.x86_64,如下图.
2. [root@11GR2-test ~]# yum whatprovides */xhost
Loaded plugins: refresh-packagekit, security, ulninfo
xorg-x11-server-utils-7.7-14.el6.x86_64 : X.Org X11 X server utilities
Repo : public_ol6_latest
Matched from:
Filename : /usr/bin/xhost
3. yum安装xorg-x11-server-utils-7.7-14.el6.x86_64包
[root@11GR2-test ~]# yum install -y xorg-x11-server-utils-7.7-14.el6.x86_64
Loaded plugins: refresh-packagekit, security, ulninfo
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-server-utils.x86_64 0:7.7-14.el6 will be installed
--> Processing Dependency: mcpp for package: xorg-x11-server-utils-7.7-14.el6.x86_64
--> Running transaction check
---> Package mcpp.x86_64 0:2.7.2-4.1.el6 will be installed
--> Processing Dependency: libmcpp.so.0()(64bit) for package: mcpp-2.7.2-4.1.el6.x86_64
--> Running transaction check
---> Package libmcpp.x86_64 0:2.7.2-4.1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================
Package Arch Version Repository Size
==================================================================
Installing:
xorg-x11-server-utils x86_64 7.7-14.el6 public_ol6_latest 156 k
Installing for dependencies:
libmcpp x86_64 2.7.2-4.1.el6 public_ol6_latest 68 k
mcpp x86_64 2.7.2-4.1.el6 public_ol6_latest 23 k
Transaction Summary
====================================================================
Install 3 Package(s)
Total download size: 246 k
Installed size: 548 k
Downloading Packages:
------------------------------------------------------------------------------------------------------------------------------------
Total 11 MB/s | 246 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libmcpp-2.7.2-4.1.el6.x86_64 1/3
Installing : mcpp-2.7.2-4.1.el6.x86_64 2/3
Installing : xorg-x11-server-utils-7.7-14.el6.x86_64 3/3
Verifying : xorg-x11-server-utils-7.7-14.el6.x86_64 1/3
Verifying : libmcpp-2.7.2-4.1.el6.x86_64 2/3
Verifying : mcpp-2.7.2-4.1.el6.x86_64 3/3
Installed:
xorg-x11-server-utils.x86_64 0:7.7-14.el6
Dependency Installed:
libmcpp.x86_64 0:2.7.2-4.1.el6 mcpp.x86_64 0:2.7.2-4.1.el6
Complete!
4. 安装完xorg-x11-server-utils-7.7-14.el6.x86_64包后,产生了xhost +
[oracle@11GR2-test ~]$ xhost +
access control disabled, clients can connect from any host
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341