linux下执行xhost命令报错:unabletoopendisplay,解决方法,linux下通过xhost进入图形界面,经常会出现报错unabletoopendisplay
linux下的操作步骤如下:
1、复制代码:
复制内容到剪贴板[root@localhost~]#vncserverNew'localhost:1(root)'desktopislocalhost:1Startingapplicationsspecifiedin/root/.vnc/xstartupLogfileis/root/.vnc/localhost:1.log[root@localhost~]#exportDISPLAY=localhost:1[root@localhost~]#xhost+accesscontroldisabled,clientscanconnectfromanyhost