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

    1. #!/bin/bash
    2. # rc.local config file created by use
    3. x11vnc -auth guess -once -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared
    4. exit 0