暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
linux7安装xclock和xhost的详细文档.docx
44
3页
0次
2023-11-16
10墨值下载
xhost + command not found
如下是一个示例:
原本我以为在没有联网的情况下、不能使用
yum
的、可能是本地配置了
yum
了吧也可以使用
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-20.el7.x86_64
[root@11GR2-test ~]# yum install -y xorg-x11-server-utils-7.7-20.el7.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
5
.配置
DISPLAY
export DISPLAY=192.168.1.200:0.0
[root@oracle11 ~]# export DISPLAY=192.168.1.200:0.0
[root@oracle11 ~]# xhost +
access control disabled, clients can connect from any host
of 3
10墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论