sudo apt install -y xorg lxde-core vnc4server
设置密码:vncpasswd
然后先开启服务,然后再终止服务:(这是为了创建一个默认的配置文件)vncserver :1vncserver -kill :1
编辑配置nano ~/.vnc/xstartup
将下面的配置追加进去/usr/bin/lxsession -s LXDE &
启动vncsudo vncserver -geometry 1024x768