<?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>Rob Garth &#187; vnc</title>
	<atom:link href="http://blog.sumostyle.net/robg/tag/vnc/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sumostyle.net/robg</link>
	<description>Mildly Useful Stuff</description>
	<lastBuildDate>Fri, 12 Aug 2011 00:36:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Connecting Leopard to a Linux VNC Server</title>
		<link>http://blog.sumostyle.net/robg/2008/08/05/connecting-leopard-to-linux-vnc-server/</link>
		<comments>http://blog.sumostyle.net/robg/2008/08/05/connecting-leopard-to-linux-vnc-server/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 00:04:01 +0000</pubDate>
		<dc:creator>robg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://blog.sumostyle.net/robg/?p=176</guid>
		<description><![CDATA[Leopard has a nifty VNC implementation built right into the OS, you can share your screen from the Sharing preferences and connect to it using any VNC client. And there is a VNC client built right into the finder ⌘-K (Connect to server) allows you to enter in a vnc server in the form vnc://server:port. But [...]]]></description>
			<content:encoded><![CDATA[<p>Leopard has a nifty VNC implementation built right into the OS, you can share your screen from the Sharing preferences and connect to it using any VNC client. And there is a VNC client built right into the finder ⌘-K (Connect to server) allows you to enter in a vnc server in the form vnc://server:port.</p>
<p>But if you try and connect to an up to date Xvnc server it will probably fail, you need to specify that your VNC server uses the VNC protocol 3.3 for backwards compatibility, the command option is simply &#8220;-Protocol3.3&#8243; you will now be able to connect to your Xvnc server from Leopard using the built in viewer.</p>
<p>If you were to follow my earlier instruction for a <a href="http://blog.sumostyle.net/robg/?p=82" target="_blank">GDM VNC Server</a> then simply add this option to: /etc/xinetd.d/vnc</p>
<p><strong><em>UPDATE #1</em></strong></p>
<p>You will notice that the connecting to server box doesn&#8217;t go away, this is because Apple does not like the option: -securitytypes=none</p>
<p>Setup a password file using vncpasswd and remove the above option and add the option:</p>
<p>-rfbauth=/path/to/vncpasswd_file</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sumostyle.net/robg/2008/08/05/connecting-leopard-to-linux-vnc-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GDM logins using VNC</title>
		<link>http://blog.sumostyle.net/robg/2006/11/15/gdm-logins-using-vnc/</link>
		<comments>http://blog.sumostyle.net/robg/2006/11/15/gdm-logins-using-vnc/#comments</comments>
		<pubDate>Wed, 15 Nov 2006 00:00:00 +0000</pubDate>
		<dc:creator>robg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://blog.sumostyle.net/robg/?p=82</guid>
		<description><![CDATA[It is possible to allow remote users to login to gnome, using gdm as you would on console, via vnc. There are other tools to do this, like NX, which are technically superior, but vnc clients are almost ubiquitous making this solution work for almost any client. We will use xinetd to handle the incoming [...]]]></description>
			<content:encoded><![CDATA[<p>It is possible to allow remote users to login to gnome, using gdm as you would on console, via vnc. There are other tools to do this, like NX, which are technically superior, but vnc clients are almost ubiquitous making this solution work for almost any client.</p>
<p><span id="more-82"></span></p>
<p>We will use xinetd to handle the incoming connections. Since Core 4, xinetd is not installed by default, I have tested this on FC3 &#8211; FC6. We also need the vnc-server software as well. To install the required software:</p>
<p><code># yum install xinetd vnc-server</code></p>
<p>Open the GDM configuration tool: System -&gt; Administration -&gt; Login Screen. Select the &#8216;Remote&#8217; tab. Style will currently read &#8220;Remote login disabled&#8221;. Change this to read &#8220;Same as local&#8221;.</p>
<p><img src="http://blog.sumostyle.net/robg/wp-content/uploads/2007/10/gdm_vnc_01.png" alt="" /></p>
<p>It is probably a good idea to disable remote system logins under the security tab, unless you need it.</p>
<p>All of these gdm settings can be edited directly as well, /etc/X11/gdm/gdm.conf in FC3 and FC4, /etc/gdm/custom.conf for newer versions.</p>
<p>The relevant gdm|custom.conf entries:</p>
<pre>[daemon]
RemoteGreeter=/usr/libexec/gdmgreeter

[security]
AllowRemoteRoot=false

[xdmcp]
Enable=true</pre>
<p>Make sure vnc is not launching on startup:</p>
<p><code class="code"># chkconfig vncserver off</code></p>
<p>Edit /etc/services, adding a new service at the end of the file:</p>
<pre># Local services
vnc             5900/tcp                        # vncserver</pre>
<p>Now we need to define the new service. Create the file /etc/xinetd.d/vnc.</p>
<pre>service vnc
{
     disable = no
     socket-type = stream
     protocol = tcp
     group = tty
     wait = no
     user = nobody
     server = /usr/bin/Xvnc
     server_args = -inetd -query localhost -geometry 1024x768 -depth 16 -once -fp unix/:7100 -securitytypes=none
}</pre>
<p>Save the file. To see the changes, you can restart the machine, or:</p>
<pre># gdm-restart <em>(This will kill X Windows)</em>
# service xinetd restart</pre>
<p>From your machine you will now be able to run &#8216;vncviewer localhost:0&#8242;, and if everything has worked, a vnc window should appear and show a login screen.</p>
<h2>Firewall and Security Issues</h2>
<p>You will probably find however, that if you try this from another machine it won&#8217;t work, your firewall will be stopping the connection. One solution is to open up port 5900 on the firewall, however, vnc sends information over the network un-encrypted, including any passwords you might type in. The better solution is to leave your firewall blocking vnc and tunnel the connection over ssh.</p>
<p>On the client machine (not the vnc server the machine you are connecting from), make an ssh connection to the host machine (the vnc server):</p>
<p><code>$ ssh -L 5901:localhost:5900 vnc.host.machine</code></p>
<p>This will attach your local port 5901 to the remote machine&#8217;s port 5900, the port that runs VNC. You can now attach your vncviewer to your local port, and ssh will tunnel it through to the remote machine.</p>
<p><code>$ vncviewer localhost:1</code></p>
<p>You should now have secure remote logins to your machines.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sumostyle.net/robg/2006/11/15/gdm-logins-using-vnc/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

