暗能星系

    • 登录
    • 搜索

    novnc-web控制桌面

    软件部署及教程
    1
    2
    17
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • Z
      zhangfanglin 最后由 编辑

      远程桌面工具安装过程

      参考地址(noVNC):
      https://github.com/novnc/noVNC
      

      类似于向日葵

      系统安装 x11vnc 服务
      $ sudo apt install x11vnc
      

      启动服务

      $ x11vnc   
      打印(主要观察端口号:默认5900):
      
      The VNC desktop is:      zhangfanglin-PC:0
      PORT=5900
      
      

      noVNC 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=0
      
      
      

      2、启动服务

      将第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
      
      Z 1 条回复 最后回复 回复 引用 0
      • Z
        zhangfanglin @zhangfanglin 最后由 编辑

        启动x11vnc 最后一个链接断开时,不停止vnc

        -forever

        x11vnc -forever
        
        
        1 条回复 最后回复 回复 引用 0
        • First post
          Last post
        Powered by 暗能星系