2.43. ubuntu20.04-desktop-vmware-workstation

sudo apt install -y vim build-essential linux-headers-generic libaio-dev x11vnc
chmod 755 VMware-Workstation-Full-16.2.0-18760230.x86_64.bundle
sudo ./VMware-Workstation-Full-16.2.0-18760230.x86_64.bundle
sudo x11vnc -storepasswd /etc/x11vnc.pass

sudo vim /etc/systemd/system/x11vnc.service
[Unit]
Description=Start x11vnc at startup.
After=multi-user.target

[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth /run/user/1000/gdm/Xauthority -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared

[Install]
WantedBy=multi-user.target


sudo vim /etc/gdm3/custom.conf
# Enabling automatic login
AutomaticLoginEnable = true
AutomaticLogin = gitee


sudo systemctl enable x11vnc
sudo service x11vnc start
reboot