headless mode,无头模式,即没有连接显示器。

realvnc server是商业软件,7.0之后的版本,授权方式变更,推荐使用6.x.x版本。最后一个版本是6.11.0 – > 下载

安装

sudo apt install ./VNC-Server-6.11.0-Linux-x64.deb

运行配置脚本,设置序列号,设置VNC Server运行模式。

The following options are available:

1. License VNC Server and enable cloud connectivity
2. Set up VNC Server in Service Mode (to remote this computer’s actual desktop and login screen)
3. Set up VNC Server in Virtual Mode daemon (Enterprise only, to create virtual desktops on demand)

此时,可以在连接显示器的模式下,远程桌面访问

安装 xorg-video-dummy虚拟显示器

sudo apt-get install -y xserver-xorg-video-dummy

设置 xorg-video-dummy

sudo cp /etc/X11/vncserver-virtual-dummy.conf /etc/X11/xorg.conf.d/

reboot重启即可