1 进入root权限
sudo -i
输入密码
2 联网下载VNC Server安装包
wget https://downloads.realvnc.com/download/file/vnc.files/VNC-Server-6.11.0-Linux-x64.deb
3 解压安装
dpkg -i VNC-Server-6.11.0-Linux-x64.deb
4 密钥(失效的话可以上网搜下其他的)
vnclicense -add HHJRK-UXY7V-Q34H9-CZU8L-8KGFA
sudo vnclicense -add WHJRK-UXY7V-Q34M9-CZU8L-8KGFA
5
apt install xserver-xorg-video-dummy
6
vncinitconfig -enable-system-xorg
一路yes
7
systemctl enable vncserver-virtuald.service
systemctl start vncserver-virtuald.service
systemctl status vncserver-virtuald.service