<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lâmôlabs &#187; remote desktop</title>
	<atom:link href="http://www.lamolabs.org/blog/tag/remote-desktop/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lamolabs.org/blog</link>
	<description>Lame Oh Labs .... Linux &#38; Tech! Is there anything else?</description>
	<lastBuildDate>Thu, 29 Jul 2010 16:00:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>[one-liner]: Getting Remote Desktop Sharing &amp; Compiz to play nice under Ubuntu 9.04 with GNOME</title>
		<link>http://www.lamolabs.org/blog/2708/one-liner-getting-remote-desktop-sharing-compiz-to-play-nice-under-ubuntu-9-04-with-gnome/</link>
		<comments>http://www.lamolabs.org/blog/2708/one-liner-getting-remote-desktop-sharing-compiz-to-play-nice-under-ubuntu-9-04-with-gnome/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 14:12:13 +0000</pubDate>
		<dc:creator>slmingol</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[one-liner]]></category>
		<category><![CDATA[remote desktop]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[VNC]]></category>

		<guid isPermaLink="false">http://www.lamolabs.org/blog/?p=2708</guid>
		<description><![CDATA[Background

<p>This one threw me for a bit but I finally realized that when I had Compiz enabled on an Ubuntu 9.04 system, I couldn&#8217;t use VNC to connect via Remote Desktop Sharing in GNOME (aka. Vino, aka. VNC Server). Apparently this has been an issue going back since 2007 8-(, when Compiz is enabled. Since [...]]]></description>
			<content:encoded><![CDATA[<h4>Background</h4>

<p>This one threw me for a bit but I finally realized that when I had <strong>Compiz</strong> enabled on an <strong>Ubuntu 9.04</strong> system, I couldn&#8217;t use <strong><span class="caps">VNC</span></strong> to connect via <strong>Remote Desktop Sharing</strong> in <strong><span class="caps">GNOME</span></strong> (aka. Vino, aka. <span class="caps">VNC</span> Server). Apparently this has been an issue going back since 2007 8-(, when Compiz is enabled. Since this is the first system that I actually bothered to enable Compiz I&#8217;m dealing with it for the first time.</p>

<p>The problem shows up when you try and connect remotely to a system that has Remote Desktop Sharing enabled &ndash;AND&ndash; Compiz. This <a href="https://bugs.launchpad.net/ubuntu/+source/vnc/+bug/77442">thread on launchpad</a> was helpful in showing the lineage of the problem, and the only real workaround to get Remote Desktop Sharing to work.</p>

<h4>Solution</h4>

<p>The workaround? If you&#8217;re coming at it remotely, and are too lazy to walk over to the remote system &#8230; ssh into the remote system and run these commands to effectively disable Compiz, and enable (re-enable?) the window manager Metacity.</p>


<div class="wp_codebox"><table width="100%" ><tr id="p27083"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p2708code3"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #000000; font-weight: bold;">&lt;</span>remote system<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">DISPLAY</span>=:0
<span style="color: #c20cb9; font-weight: bold;">nohup</span> metacity <span style="color: #660033;">--replace</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">&amp;</span></pre></td></tr></table></div>




<p><strong><span class="caps">NOTE</span>:</strong> I&#8217;m wrapping a <strong>&#8220;nohup &#8230; &gt; /dev/null &amp;&#8221;</strong> around the <strong>&#8220;metacity &#8211;replace&#8221;</strong> so that when/if I close the ssh connection, the metacity running in there doesn&#8217;t get inexplicably killed off. Additionally, this version of <strong>nohup</strong> (/usr/bin/nohup), likes to leave a <strong>nohup.out</strong> file lying around, which is just <strong>cruft</strong> in our case, so by sending <strong>all</strong> the <strong>output</strong> to <strong>/dev/null</strong> we are effectively <strong>disabling</strong> the creation of the <strong>nohup.out</strong> file.</p>

<p>Now you can do your work remotely with Compiz turned off. But now what to do when you&#8217;re all done and you want to turn Compiz back on? Easy. Do this:</p>


<div class="wp_codebox"><table width="100%" ><tr id="p27084"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p2708code4"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #000000; font-weight: bold;">&lt;</span>remote system<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">DISPLAY</span>=:0
<span style="color: #c20cb9; font-weight: bold;">nohup</span> compiz <span style="color: #660033;">--replace</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">&amp;</span></pre></td></tr></table></div>




<h4>Useful Links</h4>


<ul>
<li><a href="https://bugs.launchpad.net/ubuntu/+source/vnc/+bug/77442">launchpad bug #77442: compiz / vnc screen updates with nVidia restricted</a></li>
<li><a href="http://ubuntuforums.org/showthread.php?t=964856">forum thread on how to restart compiz</a></li>
</ul>



<p><strong><span class="caps">NOTE</span>:</strong> For further details regarding my <strong>one-liner</strong> blog posts, check out my <a href="http://www.lamolabs.org/blog/2147/intro-blogs-one-liner-code-block-style-guides/">one-liner style guide primer</a>.</p><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.lamolabs.org/blog/2702/delicious-bookmarks-for-october-3rd-from-0255-to-1530/" rel="bookmark" class="wherego_title">Delicious Bookmarks for October 3rd from 02:55 to 15:30</a></li><li><a href="http://www.lamolabs.org/blog/2706/delicious-bookmarks-for-october-3rd-through-october-7th/" rel="bookmark" class="wherego_title">Delicious Bookmarks for October 3rd through October 7th</a></li><li><a href="http://www.lamolabs.org/blog/370/installing-python-25-on-centos-5/" rel="bookmark" class="wherego_title">Installing Python 2.5 on CentOS 5</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.lamolabs.org/blog/2708/one-liner-getting-remote-desktop-sharing-compiz-to-play-nice-under-ubuntu-9-04-with-gnome/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
