<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[novnc-web控制桌面]]></title><description><![CDATA[<h1>远程桌面工具安装过程</h1>
<pre><code>参考地址（noVNC）：
https://github.com/novnc/noVNC
</code></pre>
<h3>类似于向日葵</h3>
<pre><code>系统安装 x11vnc 服务
$ sudo apt install x11vnc
</code></pre>
<h3>启动服务</h3>
<pre><code>$ x11vnc   
打印（主要观察端口号：默认5900）：

The VNC desktop is:      zhangfanglin-PC:0
PORT=5900

</code></pre>
<h3>noVNC docker启动：</h3>
<h4>1、修改服务配置</h4>
<p dir="auto">IP端口为x11vnc的服务端口：<strong>--vnc 192.168.0.147:5900</strong></p>
<pre><code>$ 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


</code></pre>
<h4>2、启动服务</h4>
<p dir="auto">将第1步的文件映射到 /etc/supervisor/conf.d/supervisord.conf</p>
<pre><code>
$ 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
</code></pre>
]]></description><link>http://an.forum.genostack.com/topic/1069/novnc-web控制桌面</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 13:44:57 GMT</lastBuildDate><atom:link href="http://an.forum.genostack.com/topic/1069.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 20 May 2024 03:40:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to novnc-web控制桌面 on Mon, 20 May 2024 10:26:49 GMT]]></title><description><![CDATA[<h3>启动x11vnc 最后一个链接断开时，不停止vnc</h3>
<p dir="auto"><strong>-forever</strong></p>
<pre><code>x11vnc -forever

</code></pre>
]]></description><link>http://an.forum.genostack.com/post/2593</link><guid isPermaLink="true">http://an.forum.genostack.com/post/2593</guid><dc:creator><![CDATA[zhangfanglin]]></dc:creator><pubDate>Mon, 20 May 2024 10:26:49 GMT</pubDate></item></channel></rss>