<?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/"
	>

<channel>
	<title>Yong's Blog</title>
	<atom:link href="http://blog.yongster.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://blog.yongster.com</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Tue, 14 Apr 2009 09:07:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Getting vnc4server on ubuntu 8.10 working</title>
		<link>http://blog.yongster.com/?p=3</link>
		<comments>http://blog.yongster.com/?p=3#comments</comments>
		<pubDate>Tue, 14 Apr 2009 09:07:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Ubuntu 8.10]]></category>

		<category><![CDATA[8.10]]></category>

		<category><![CDATA[intrepid]]></category>

		<category><![CDATA[ubuntu]]></category>

		<category><![CDATA[vnc server]]></category>

		<category><![CDATA[vnc4server]]></category>

		<category><![CDATA[xvnc]]></category>

		<guid isPermaLink="false">http://blog.yongster.com/?p=3</guid>
		<description><![CDATA[1) From inside a gdm session:
System > Administration > Login Window
Remote Tab: Change &#8220;Style&#8221; from &#8220;Remote Login Disabled&#8221; to &#8220;Same as Local&#8221;
2) Install vnc4server and xinetd
apt-get install vnc4server xinetd
3) Set VNC passwd
sudo vncpasswd /root/.vncpasswd
4) Copy the following into /etc/xinetd.d/Xvnc (new file)
service Xvnc
{
        type = UNLISTED
    [...]]]></description>
			<content:encoded><![CDATA[<p><strong>1)</strong> From inside a gdm session:</p>
<p>System > Administration > Login Window<br />
Remote Tab: Change &#8220;Style&#8221; from &#8220;Remote Login Disabled&#8221; to &#8220;Same as Local&#8221;</p>
<p><strong>2)</strong> Install vnc4server and xinetd<br />
<code>apt-get install vnc4server xinetd</code></p>
<p><strong>3)</strong> Set VNC passwd<br />
<code>sudo vncpasswd /root/.vncpasswd</code></p>
<p><strong>4)</strong> Copy the following into /etc/xinetd.d/Xvnc (new file)<br />
<code>service Xvnc<br />
{<br />
        type = UNLISTED<br />
        disable = no<br />
        socket_type = stream<br />
        protocol = tcp<br />
        wait = yes<br />
        user = root<br />
        server = /usr/bin/Xvnc<br />
        server_args = -inetd :2 -query localhost -geometry 1680x1050 -depth 16 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd -extension XFIXES<br />
        port = 5902<br />
}</code></p>
<p><strong>5)</strong> Restart xinetd<br />
<code>sudo /etc/init.d/xinetd restart</code></p>
<p><strong>6)</strong> To fix gnome-settings-daemon crash issue, we need to install xvnc >= 4.1.2, which as of this post is not in ubuntu repos. So, using rpmfind.net, get the latest vnc-libs, and vnc-server rpms (4.1.3 as of this post), and convert them to ubuntu friendly .deb packages with alien<br />
<code>wget ftp://rpmfind.net/linux/fedora/updates/9/x86_64.newkey/vnc-libs-4.1.3-1.fc9.x86_64.rpm<br />
wget ftp://rpmfind.net/linux/fedora/updates/9/x86_64.newkey/vnc-server-4.1.3-1.fc9.x86_64.rpm<br />
sudo apt-get install alien<br />
sudo alien vnc-libs-4.1.3-1.fc9.x86_64.rpm<br />
sudo alien vnc-server-4.1.3-1.fc9.x86_64.rpm<br />
sudo dpkg -i vnc-libs_4.1.3-2_amd64.deb<br />
sudo dpkg -i vnc-server_4.1.3-2_amd64.deb</code></p>
<p>These packages require libcrypto++7, and with a specific filename to boot, so:<br />
<code>sudo apt-get install libcrypto++7 libcrypto++-utils<br />
sudo ln -snf /usr/lib/libcrypto.so.0.9.8 /usr/lib/libcrypto.so.7</code></p>
<p>Note that this step creates all sorts of dependency issues since the 2 fedora packages overwrite the ubuntu ones without uninstalling vnc4server, oops. I&#8217;ll update this post one day to make this a bit cleaner to install. Just keep in mind when ubuntu finally updates its xvnc to do a bit of cleanup.</p>
<p><strong>7)</strong> Finalle, restart xinetd again, and it should be working<br />
<code>sudo /etc/init.d/xinetd restart</code></p>
<p><strong>References:</strong><br />
<a href="http://ubuntuforums.org/showthread.php?t=122402">http://ubuntuforums.org/showthread.php?t=122402</a><br />
<a href="http://www.motionstandingstill.com/setting-up-a-resumable-remote-login-to-ubuntu-with-vnc/2008-10-13/">http://www.motionstandingstill.com/setting-up-a-resumable-remote-login-to-ubuntu-with-vnc/2008-10-13/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yongster.com/?feed=rss2&amp;p=3</wfw:commentRss>
		</item>
	</channel>
</rss>
