linux 下經過xhost進入圖形界面,常常會出現報錯「unable to open display」

linux 下經過xhost進入圖形界面,常常會出現報錯「unable to  open display」linux

linux下的操做步驟以下:app

[root@localhost ~]# vncserverspa

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

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

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

注意這塊變換後面爲1.0   0.0等io

[root@localhost ~]# xhost +class

        access control disabled, clients can connect from any hostcli

相關文章
相關標籤/搜索