参考了网上的一些回答, 下面的blog说的基本到位了
https://www.cnblogs.com/LiuYanYGZ/p/7487873.html
但是有些改进的地方,
说明一下,此处的日志1.log表示客户端号为1的连接日志。
error opening security policy file /etc/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!
Could not init font path element /usr/share/fonts/X11/75dpi/, removing from list!
Could not init font path element /usr/share/fonts/X11/100dpi/, removing from list!
上述问题是因为 没有安装一些包
sudo apt-get install xvfb xfonts-100dpi xfonts-75dpi xfonts-cyrillic xorg dbus-x11
其次xstartup是一个可执行文件,要确认是否有x权限
一般默认连接都是连接5900端口,要想指定端口连接localhost:90 代表localhost:5900,localhost::5900代表localhost:5900
网友评论