1.sudo vim ~/.bashrc
最后添加xhost+
2.source ~/.bashrc
3.export DISPLAY=:0
4.xhost+
显示access control disabled, clients can connect from any host
成功!
Unable to init server: Could not connect: Connection refused cannot open display: 0
最新推荐文章于 2024-06-07 21:38:08 发布