<?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[Install VNC on Ubuntu]]></title><description><![CDATA[<p dir="auto">When using Ubuntu often requires Remote Desktop connection, the most common software is VNC. VNC is an open protocol that implements a lot of clients. But after comparing the various implementations, the best is now x11vnc. This program is not only free of charge, open source, but also supports OpenGL programs. For example, rviz and other programs can also open normally.</p>
<p dir="auto"><code>The X11VNC is already installed by default in the xiaoqiang system image, and if you use a xiaoqiang host or mirror, you can skip the installation process directly. Just follow the instructions for accessing the service.</code></p>
<p dir="auto">The installation method is described below. The following is an example of Ubuntu 14.04, if it is 16.04 and later version, you need to edit the service configuration file.</p>
<h3>Installing X11VNC</h3>
<pre><code class="language-bash">sudo apt-get install x11vnc -y
</code></pre>
<h3>Set access password</h3>
<pre><code class="language-bash">sudo x11vnc -storepasswd /etc/x11vnc.pass 
</code></pre>
<h3>Create a service file</h3>
<p dir="auto">Under/etc/init, create a x11vnc.conf file with the following file contents</p>
<pre><code>description "xiaoqiang vnc server"
start on runlevel [2345]
stop on runlevel [06]

script
    exec /usr/bin/x11vnc -auth guess -capslock -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared
end script
</code></pre>
<h3>Start the service</h3>
<pre><code>sudo service x11vnc start
</code></pre>
<h3>Access the service</h3>
<p dir="auto">Download a VNC client, such as download from <a href="https://www.realvnc.com/en/connect/download/viewer/" target="_blank" rel="noopener noreferrer">here</a></p>
<p dir="auto">Start the client, enter target ip address</p>
<p dir="auto"><img src="/assets/uploads/files/1537790365411-011a41c8-3b09-4c30-997f-eb9b2f9c91cb-image-resized.png" alt="0_1537790364280_011a41c8-3b09-4c30-997f-eb9b2f9c91cb-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">and then enter access password</p>
<p dir="auto"><img src="/assets/uploads/files/1537790386294-6e7da6ba-18eb-4809-b717-91a7fdcaf653-image-resized.png" alt="0_1537790385233_6e7da6ba-18eb-4809-b717-91a7fdcaf653-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">Then you can connect normally.</p>
<p dir="auto">For Ubuntu 16.04 and later, You can configure your service file according to this <a href="https://github.com/longhr/ubuntu1604hub/blob/master/ubuntu1604VNC.sh" target="_blank" rel="noopener noreferrer">script</a></p>
<p dir="auto"><code>Note When the installation is complete, you may still get an error when you use rviz without plugging in the monitor. Just plug in the HDMI to VGA adapter (do not connect the monitor, just the adapter) can be turned on normal use. If you want to adjust the resolution in the same way as normal computer settings, adjust the settings inside system settings</code></p>
]]></description><link>http://community.bwbot.org/topic/618/install-vnc-on-ubuntu</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 06:36:23 GMT</lastBuildDate><atom:link href="http://community.bwbot.org/topic/618.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 22 Sep 2018 07:43:36 GMT</pubDate><ttl>60</ttl></channel></rss>