<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: How to Install and Configure VNC Server on Ubuntu	</title>
	<atom:link href="https://www.tecmint.com/install-and-configure-vnc-server-on-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/install-and-configure-vnc-server-on-ubuntu/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Sat, 21 Aug 2021 20:09:17 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: raj		</title>
		<link>https://www.tecmint.com/install-and-configure-vnc-server-on-ubuntu/comment-page-1/#comment-1573175</link>

		<dc:creator><![CDATA[raj]]></dc:creator>
		<pubDate>Sat, 21 Aug 2021 20:09:17 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=32867#comment-1573175</guid>

					<description><![CDATA[Is this VNC setup works for headless ubuntu servers? i.e without monitor connection.]]></description>
			<content:encoded><![CDATA[<p>Is this VNC setup works for headless ubuntu servers? i.e without monitor connection.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: mb		</title>
		<link>https://www.tecmint.com/install-and-configure-vnc-server-on-ubuntu/comment-page-1/#comment-1541807</link>

		<dc:creator><![CDATA[mb]]></dc:creator>
		<pubDate>Thu, 08 Jul 2021 18:50:45 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=32867#comment-1541807</guid>

					<description><![CDATA[In your:
&lt;pre&gt;
~/.vnc/xstartup

#!/bin/sh
exec /etc/vnc/xstartup
xrdb $HOME/.Xresources
vncconfig -iconic &#038;
dbus-launch --exit-with-session gnome-session &#038;
&lt;/pre&gt;

&quot;exec /etc/vnc/xstartup&quot; - does not exist]]></description>
			<content:encoded><![CDATA[<p>In your:</p>
<pre>
~/.vnc/xstartup

#!/bin/sh
exec /etc/vnc/xstartup
xrdb $HOME/.Xresources
vncconfig -iconic &amp;
dbus-launch --exit-with-session gnome-session &amp;
</pre>
<p>&#8220;exec /etc/vnc/xstartup&#8221; &#8211; does not exist</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Richard Stevens		</title>
		<link>https://www.tecmint.com/install-and-configure-vnc-server-on-ubuntu/comment-page-1/#comment-1464294</link>

		<dc:creator><![CDATA[Richard Stevens]]></dc:creator>
		<pubDate>Mon, 29 Mar 2021 09:26:10 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=32867#comment-1464294</guid>

					<description><![CDATA[This approach doesn&#039;t work with the latest ubuntu (20.10). 

Mär 29 11:19:26 hostname systemd[2597]: pam_unix(login:session): session closed for user rst
Mär 29 11:19:26 hostname dbus-daemon[1487]: [system] Rejected send message, 2 matched rules; type=&quot;method_call&quot;, sender=&quot;:1.129&quot; (uid=1000 pid=2597 comm=&quot;(sd-pam) &quot; label=&quot;unconfined&quot;) interface=&quot;org.freedesktop.login1.Manager&quot; member=&quot;Rele&#062;
Mär 29 11:19:26 hostname systemd[2597]: pam_systemd(login:session): Failed to release session: Access denied]]></description>
			<content:encoded><![CDATA[<p>This approach doesn&#8217;t work with the latest ubuntu (20.10). </p>
<p>Mär 29 11:19:26 hostname systemd[2597]: pam_unix(login:session): session closed for user rst<br />
Mär 29 11:19:26 hostname dbus-daemon[1487]: [system] Rejected send message, 2 matched rules; type=&#8221;method_call&#8221;, sender=&#8221;:1.129&#8243; (uid=1000 pid=2597 comm=&#8221;(sd-pam) &#8221; label=&#8221;unconfined&#8221;) interface=&#8221;org.freedesktop.login1.Manager&#8221; member=&#8221;Rele&gt;<br />
Mär 29 11:19:26 hostname systemd[2597]: pam_systemd(login:session): Failed to release session: Access denied</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Abraham Diaz de Leon Camou		</title>
		<link>https://www.tecmint.com/install-and-configure-vnc-server-on-ubuntu/comment-page-1/#comment-1362048</link>

		<dc:creator><![CDATA[Abraham Diaz de Leon Camou]]></dc:creator>
		<pubDate>Wed, 09 Sep 2020 17:17:19 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=32867#comment-1362048</guid>

					<description><![CDATA[Hi, thanks for the procedure, I managed to get it working on ubuntu 18.04 LTS with cinnamon by starting  manually the server using: 
&lt;pre&gt;
$ vncserver -localhost no -geometry 800x600 -depth 24,
&lt;/pre&gt;
It works fine in local LAN with RealVNC on an Ipad, however for some reason, the server startup via systemd does not work, the service status log shows an inactive status (dead), what would be the problem? I&#039;ve tried doing the systemd procedure locally on a server Terminal, and remotely via SSH, also checked the proper username in the script and rebooted with no success and ran out of ideas, your kind help is required, the status log is down below. 

Please let me know your ideas or suggestion to remedy this issue.

Thanks and regards
Abraham


PS: during the interim, I also experienced the problem that when a desktop session was already started, locally or remotely an attempt to start a second session remotely or locally would fail with the error &quot;&lt;strong&gt;could not acquire name on session bus&lt;/strong&gt;&quot;,
 
This problem was fixed, as per unix.stackexchange.com by adding the following line to &lt;strong&gt;~/.vnc/xstartup&lt;/strong&gt;:
&lt;pre&gt;
unset DBUS_SESSION_BUS_ADDRESS
&lt;/pre&gt;
After applying this patch, I can now have concurrent desktop sessions, locally and remotely, I can also have a Mate desktop running locally on the server and a cinnamon desktop remotely on my iPad via RealVNC.


Vnc server startup status log:
&lt;pre&gt;
abesr@abesr-UbuntuMate:~$ sudo systemctl status vncserver@1                     
[sudo] password for abesr:                                                      
 vncserver@1.service - Remote desktop service (VNC)                             
   Loaded: loaded (/etc/systemd/system/vncserver@.service; indirect; vendor pres
   Active: inactive (dead) since Tue 2020-09-08 23:57:04 CDT; 11h ago           
  Process: 1155 ExecStop=/usr/bin/vncserver -kill :1 (code=exited, status=0/SUCC
  Process: 1137 ExecStart=/usr/bin/vncserver :1 -localhost no -geometry 800x600 
  Process: 852 ExecStartPre=/usr/bin/vncserver -kill :1 &#062; /dev/null 2&#062;&#038;1 &#124;&#124; : (c
 Main PID: 1137 (code=exited, status=0/SUCCESS)                                 
                                                                                
sep 08 23:56:59 abesr-UbuntuMate systemd[1]: Starting Remote desktop service (VN
sep 08 23:56:59 abesr-UbuntuMate systemd[852]: pam_unix(login:session): session 
sep 08 23:57:03 abesr-UbuntuMate systemd[1]: Started Remote desktop service (VNC
sep 08 23:57:03 abesr-UbuntuMate systemd[1137]: pam_unix(login:session): session
sep 08 23:57:04 abesr-UbuntuMate systemd[1155]: pam_unix(login:session): session
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Hi, thanks for the procedure, I managed to get it working on ubuntu 18.04 LTS with cinnamon by starting  manually the server using: </p>
<pre>
$ vncserver -localhost no -geometry 800x600 -depth 24,
</pre>
<p>It works fine in local LAN with RealVNC on an Ipad, however for some reason, the server startup via systemd does not work, the service status log shows an inactive status (dead), what would be the problem? I&#8217;ve tried doing the systemd procedure locally on a server Terminal, and remotely via SSH, also checked the proper username in the script and rebooted with no success and ran out of ideas, your kind help is required, the status log is down below. </p>
<p>Please let me know your ideas or suggestion to remedy this issue.</p>
<p>Thanks and regards<br />
Abraham</p>
<p>PS: during the interim, I also experienced the problem that when a desktop session was already started, locally or remotely an attempt to start a second session remotely or locally would fail with the error &#8220;<strong>could not acquire name on session bus</strong>&#8220;,</p>
<p>This problem was fixed, as per unix.stackexchange.com by adding the following line to <strong>~/.vnc/xstartup</strong>:</p>
<pre>
unset DBUS_SESSION_BUS_ADDRESS
</pre>
<p>After applying this patch, I can now have concurrent desktop sessions, locally and remotely, I can also have a Mate desktop running locally on the server and a cinnamon desktop remotely on my iPad via RealVNC.</p>
<p>Vnc server startup status log:</p>
<pre>
abesr@abesr-UbuntuMate:~$ sudo systemctl status vncserver@1                     
[sudo] password for abesr:                                                      
 vncserver@1.service - Remote desktop service (VNC)                             
   Loaded: loaded (/etc/systemd/system/vncserver@.service; indirect; vendor pres
   Active: inactive (dead) since Tue 2020-09-08 23:57:04 CDT; 11h ago           
  Process: 1155 ExecStop=/usr/bin/vncserver -kill :1 (code=exited, status=0/SUCC
  Process: 1137 ExecStart=/usr/bin/vncserver :1 -localhost no -geometry 800x600 
  Process: 852 ExecStartPre=/usr/bin/vncserver -kill :1 &gt; /dev/null 2&gt;&amp;1 || : (c
 Main PID: 1137 (code=exited, status=0/SUCCESS)                                 
                                                                                
sep 08 23:56:59 abesr-UbuntuMate systemd[1]: Starting Remote desktop service (VN
sep 08 23:56:59 abesr-UbuntuMate systemd[852]: pam_unix(login:session): session 
sep 08 23:57:03 abesr-UbuntuMate systemd[1]: Started Remote desktop service (VNC
sep 08 23:57:03 abesr-UbuntuMate systemd[1137]: pam_unix(login:session): session
sep 08 23:57:04 abesr-UbuntuMate systemd[1155]: pam_unix(login:session): session
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aaron Kili		</title>
		<link>https://www.tecmint.com/install-and-configure-vnc-server-on-ubuntu/comment-page-1/#comment-1341421</link>

		<dc:creator><![CDATA[Aaron Kili]]></dc:creator>
		<pubDate>Mon, 29 Jun 2020 05:00:19 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=32867#comment-1341421</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/install-and-configure-vnc-server-on-ubuntu/comment-page-1/#comment-1341258&quot;&gt;keat&lt;/a&gt;.

@keat

The error is display related, allow us to review the guide and find out what the issue is exactly.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/install-and-configure-vnc-server-on-ubuntu/comment-page-1/#comment-1341258">keat</a>.</p>
<p>@keat</p>
<p>The error is display related, allow us to review the guide and find out what the issue is exactly.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
