linux 下通过xhost进入图形界面,经常会出现报错“unable to  open display”

linux下的操作步骤如下:

[root@localhost ~]# vncserver

        New 'localhost:1 (root)' desktop is localhost:1

        Starting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/localhost:1.log

[root@localhost ~]# export DISPLAY=localhost:1.0

注意这块变换后面为1.0   0.0等

[root@localhost ~]# xhost +

        access control disabled, clients can connect from any host

相关文章:

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