https://blog.csdn.net/hnhuangyiyang/article/details/50827670
按以上链接安装
然后/etc/rc.d/rc.local里追加以下
rm -f /tmp/.X11-unix/X*
rm -f ~/.vnc/*.pid
rm -f ~/.vnc/*.log
并 chmod 777 /etc/rc.d/rc.local 赋权限
一般/root/.vnc/config配置如下
geometry=1680x1024
alwaysshared