xhost: unable to open display ":0.0"

简介: -bash: xhost: 未找到命令原因是因未没有安装相关的包(其他类似command not found命令没有可以用这种方式解决)yum whatprovides "*/xhost" 安装对应版本

[root@lepus client]# DISPLAY=:0.0
[root@lepus client]# export DISPLAY
[root@lepus client]# xhost +
xhost: unable to open display ":0.0"

yum search tigervnc-server
yum -y install tigervnc-server.x86_64
vncserver
New 'lepus:1 (root)' desktop is lepus:1

再次执行,可以
[root@lepus ~]# DISPLAY=lepus:1
[root@lepus ~]# export DISPLAY
[root@lepus ~]# xhost +
access control disabled, clients can connect from any host

目录
相关文章
remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2
remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2
5513 0
|
缓存 安全 Linux
Linux系统查看操作系统版本信息、CPU信息、模块信息
在Linux系统中,常用命令可帮助用户查看操作系统版本、CPU信息和模块信息
2998 23
|
缓存 Linux 测试技术
安装【银河麒麟V10】linux系统--并挂载镜像12
【7月更文挑战第12天】安装【银河麒麟V10】linux系统--并挂载镜像
6799 0
|
存储 固态存储 关系型数据库
PostgreSQL核心操作之数据备份恢复
PostgreSQL核心操作之数据备份恢复
1733 0
|
NoSQL Linux Shell
Linux MongoDB重启命令
【5月更文挑战第8天】
1832 6
|
存储 Linux 虚拟化
Hyper-V 安装 CentOS 8.5
本文档介绍了在 Windows 10 上使用 Hyper-V 安装 CentOS 8.5.2111 的详细步骤
1216 3
|
Web App开发 Java 网络安全
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
4991 0
|
关系型数据库 MySQL Linux
【Linux】安装Mysql(附加service mysql启动失败 提示unit not found 解决办法)
【Linux】安装Mysql(附加service mysql启动失败 提示unit not found 解决办法)
1297 0
|
Oracle 关系型数据库 数据安全/隐私保护
Docker安装oracle11g
Docker安装oracle11g步骤

热门文章

最新文章