码迷,mamicode.com
首页 > 系统相关 > 详细

Linux 如何解决 xhost: unable to open display ""

时间:2017-01-04 23:33:34      阅读:226      评论:0      收藏:0      [点我收藏+]

标签:ops   密码   pass   from   roo   tin   class   access   author   

[root@host02 ~]# vncservice
You will require a password to access your desktops.

Password:
Verify:
xauth:  creating new authority file /root/.Xauthority

New host02:1 (root) desktop is host02:1
#我没设置过密码  这里需要设置密码
[root@host02 ~]# export DISPLAY=host02:2
#根据上面的结果   设置DISPLAY
[root@host02 ~]# xhost +
access control disabled, clients can connect from any host

 

Linux 如何解决 xhost: unable to open display ""

标签:ops   密码   pass   from   roo   tin   class   access   author   

原文地址:http://www.cnblogs.com/liuxiya/p/6250399.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!