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