sudo apt-get update sudo apt-get install x11vnc
sudo x11vnc -storepasswd /etc/x11vnc.pass
手动启动
x11vnc -auth guess -once -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared
注:通过ssh运行会导致失败
开机自动启动
/etc/rc.local
#!/bin/bash# rc.local config file created by usex11vnc -auth guess -once -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -sharedexit 0
