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

目录
相关文章
|
7月前
|
存储 Android开发
/storage/emulated/0/bluetooth/Screenshot.competeordersb.png: open failed: EACCES (Permission denied)
/storage/emulated/0/bluetooth/Screenshot.competeordersb.png: open failed: EACCES (Permission denied)
141 1
|
Ubuntu
解决办法:GLib-ERROR **: Creating pipes for GWakeup: Too many open files
解决办法:GLib-ERROR **: Creating pipes for GWakeup: Too many open files
175 0
|
Unix Linux
Symantec Backup Exec 报"Access denied to directory xxx" Error Code E0008488
使用Symantec Backup Exec将几台Linux服务器上的RMAN备份收带时,偶尔会遇到作业备份失败的情况,检查Job History,就会发现有“Access denied to directory u05/backup/backupsets" 这类错误,当然实际路径为/u05/backup/backupsets.
2581 0