安装xvfb
apt update
apt install xvfb
安装x11vnc
apt install x11vnc
启动xvfb(渲染第五屏,分辨率1920x1080,颜色24)
Xvfb :5 -screen 0 1920x1080x24 &
设置x11vnc密码(是否生成密码到文件选择Y),启动(第五屏,映射到5905端口)
x11vnc -storepasswd
x11vnc -display :5 -once -loop -noxdamage -repeat -rfbauth ~/.vnc/passwd -rfbport 5905 -shared -scale 1920x1080 &
安装git,clone novnc项目
apt install git
git clone https://github.com/novnc/noVNC.git
cd noVNC
./utils/launch.sh --vnc localhost:5905 &
安装firefox,启动(第五屏,全屏)
apt install firefox
firefox --display :5 -fullscreen -no-remote -P default -new-window http: