linux解决xhost unable to open display

第一步:用root登陆linux,启动vnc服务;
第二步:根据vnc起来的端口,设置export DISPLAY=localhost:1(1表示vnc在第一个tty上启动的),vnc的启动信息见附件1;
第三步:执行xhost +,并且提示“access control disabled, clients can connect from any host”才正确。
linux下的操作日志如下:
[[email protected] ~]# vncserver
New 'localhost:1 (root)' desktop is localhost:1
Starting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/localhost:1.log
[[email protected] ~]# export DISPLAY=localhost:1
[[email protected] ~]# xhost +
access control disabled, clients can connect from any host 

在设置xhost时,出现了unable的问题。使用上诉方法就可以搞定。

linux解决xhost unable to open display

相关文章:

  • 2021-07-04
  • 2021-04-24
  • 2021-12-29
  • 2021-09-09
  • 2021-07-21
  • 2021-10-26
  • 2021-11-06
  • 2021-12-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-21
  • 2022-12-23
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案