Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Xhost + command not found

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. [oracle@11GR2-test ~] $export DISPLAY=192.168.181.128:1

Install ORACLE in the virtual machine. After setting the DISPLAY variable, you cannot find it by running the xhost + command. Obviously, the corresponding rpm package of xhost is not installed.

Use the yum command plus parameter whatprovides and xhost to find that the corresponding package is xorg-x11-server-utils-7.7-14.el6.x86_64, as shown below.

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. Install the xorg-x11-server-utils-7.7-14.el6.x86_64 package for yum

[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 0RU 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 0RU 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 0RU 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 million 64 7.7-14.el6 public_ol6_latest 156k

Installing for dependencies:

Libmcpp x8631 64 2.7.2-4.1.el6 public_ol6_latest 68k

Mcpp x8631 64 2.7.2-4.1.el6 public_ol6_latest 23k

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 Compact 3

Installing: mcpp-2.7.2-4.1.el6.x86_64 2 Compact 3

Installing: xorg-x11-server-utils-7.7-14.el6.x86_64 3 Compact 3

Verifying: xorg-x11-server-utils-7.7-14.el6.x86_64 1 Compact 3

Verifying: libmcpp-2.7.2-4.1.el6.x86_64 2 Compact 3

Verifying: mcpp-2.7.2-4.1.el6.x86_64 3 Compact 3

Installed:

Xorg-x11-server-utils.x86_64 0RV 7.7-14.el6

Dependency Installed:

Libmcpp.x86_64 0VO 2.7.2-4.1.el6 mcpp.x86_64 0RO 2.7.2-4.1.el6

Complete!

4. After installing the xorg-x11-server-utils-7.7-14.el6.x86_64 package, xhost + is generated

[oracle@11GR2-test ~] $xhost +

Access control disabled, clients can connect from any host

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report