novnc-web控制桌面
-
远程桌面工具安装过程
参考地址(noVNC): https://github.com/novnc/noVNC类似于向日葵
系统安装 x11vnc 服务 $ sudo apt install x11vnc启动服务
$ x11vnc 打印(主要观察端口号:默认5900): The VNC desktop is: zhangfanglin-PC:0 PORT=5900noVNC docker启动:
1、修改服务配置
IP端口为x11vnc的服务端口:--vnc 192.168.0.147:5900
$ vi supervisord.conf # 内容 [supervisord] nodaemon=true logfile=/dev/null logfile_maxbytes=0 pidfile=/run/supervisord.pid [program:novnc_proxy] command=/opt/noVNC/utils/novnc_proxy --vnc 192.168.0.147:5900 --listen 127.0.0.1:6081 stdout_logfile=/var/log/noutovnc_proxy stdout_logfile_maxbytes=0 stderr_logfile=/var/log/errnovnc_proxr stderr_logfile_maxbytes=0 autorestart=false startretries=0 #"nginx", "-g", "daemon off;" [program:nginx] command=nginx -g 'daemon off;' stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 autorestart=false startretries=02、启动服务
将第1步的文件映射到 /etc/supervisor/conf.d/supervisord.conf
$ docker run -itd --name=novnc -p 6081:80 \ -v supervisord.conf:/etc/supervisor/conf.d/supervisord.conf \ dockerhub.genostack.com:8090/library/novnc:V0.1 -
启动x11vnc 最后一个链接断开时,不停止vnc
-forever
x11vnc -forever