<?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>Marcus Povey &#187; ipad</title>
	<atom:link href="http://www.marcus-povey.co.uk/tag/ipad/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.marcus-povey.co.uk</link>
	<description>Making the world a better place, one byte at a time...</description>
	<lastBuildDate>Mon, 06 Feb 2012 19:13:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<atom:link rel='hub' href='http://www.marcus-povey.co.uk/?pushpress=hub'/>
		<item>
		<title>Howto: Printing to any printer with an iPad/iPhone and Apple Airprint</title>
		<link>http://www.marcus-povey.co.uk/2011/11/11/howto-printing-to-any-printer-with-an-ipadiphone-and-apple-airprint/</link>
		<comments>http://www.marcus-povey.co.uk/2011/11/11/howto-printing-to-any-printer-with-an-ipadiphone-and-apple-airprint/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 08:59:38 +0000</pubDate>
		<dc:creator>Marcus Povey</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[airprint]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[avahi]]></category>
		<category><![CDATA[cups]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[printer]]></category>

		<guid isPermaLink="false">http://www.marcus-povey.co.uk/?p=762</guid>
		<description><![CDATA[Apple Airprint is a technology (a zeroconf implementation under the bonnet) which allows apple devices to detect, configure and print without any overt configuration on the part of the user. The bad news is that in only works for a handful of printers natively. But never fear, Linux to the rescue! At this point I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.marcus-povey.co.uk/wp-content/airprint.jpg" alt="" width="150" align="right" />Apple Airprint is a technology (a <a href="http://en.wikipedia.org/wiki/Zero_configuration_networking">zeroconf</a> implementation under the bonnet) which allows apple devices to detect, configure and print without any overt configuration on the part of the user.</p>
<p>The bad news is that in only works for a handful of printers natively. But never fear, Linux to the rescue!</p>
<p>At this point I&#8217;m going to assume that you have a Linux box somewhere on your network acting as a file and print server (pretty regular kit in most geek homes).</p>
<p><strong>Set up your printer</strong></p>
<p>The first step is to set up CUPS on your linux server and then installing the appropriate printer driver for your printer.</p>
<p>I won&#8217;t go into detail here as there are numerous guides out there on the wider web, but mostly this is a matter of installing cups and foomatic and then visiting the cups configuration website on the server (localhost:631 usually) and adding your printer.</p>
<p>Make sure that the printer is shared. Print a test page.</p>
<p>One gotcha I found is that my default configuration only allowed connections from the local machine, even though the printer was marked as shared (although frankly I was cheating since most of my computers printed to my server over a Samba relay, but that&#8217;s by the by).</p>
<p>Take a look at <code>/etc/cups/cupsd.conf</code> and make sure that <code></code> has an <code>Allow From</code> from your local network. E.g.</p>
<blockquote><p><code><br />
&lt;Location /&gt;<br />
Order Deny,Allow<br />
Deny From All<br />
Allow From 127.0.0.1<br />
Allow From 192.168.0.0/24<br />
&lt;/Location&gt;</code></p></blockquote>
<p><strong>Export the printer</strong></p>
<p>The next step is to install the zeroconf demon, which is called <a href="http://en.wikipedia.org/wiki/Avahi_(software)">Avahi</a>. This varies from system to system, but on debian this is pretty much a matter of <strong>apt-getting avahi-daemon</strong>. You may also want <strong>avahi-discover</strong> so you can browse the exported devices on your network.</p>
<p>Assuming you&#8217;ve correctly set up and shared your printers in CUPS the next step is to generate an avahi configuration for it. Thankfully, there&#8217;s a handy Python script called <a href="https://github.com/tjfontaine/airprint-generate">airprint-generate, available on github</a> which does much of the donkey work.</p>
<p>Copy the resultant file to <code>/etc/avahi/services</code> and restart the avahi demon. </p>
<p>If your printer is password protected, you will want to add a <code>&lt;txt-record&gt;air=username,password&lt;/txt-record&gt;</code> field to the file before doing so. Where username and password is the literal cleartext strings sent.</p>
<p><strong>Profit!!!</strong></p>
<p>Theoretically that should be it. After the configuration, and restarting the various demons involved your printer should be available to the various iOS devices kicking around your network. </p>
<p>Let me know if you have any questions!</p>
<div class="wsbuttons">
	<div class="shareblob facebook">
		<div class="fb-like" data-href="http://www.marcus-povey.co.uk/2011/11/11/howto-printing-to-any-printer-with-an-ipadiphone-and-apple-airprint/" data-send="false" data-layout="box_count" data-width="60" data-show-faces="false" data-colorscheme="light"></div>
	</div>

	<div class="shareblob google">
		<div class="g-plusone" data-size="tall" data-href="http://www.marcus-povey.co.uk/2011/11/11/howto-printing-to-any-printer-with-an-ipadiphone-and-apple-airprint/"></div>
	</div>

	<div class="shareblob twitter">
		<div class="twitter">
			<a href="https://twitter.com/share?url=http%3A%2F%2Fwww.marcus-povey.co.uk%2F2011%2F11%2F11%2Fhowto-printing-to-any-printer-with-an-ipadiphone-and-apple-airprint%2F&count=vertical" class="twitter-share-button" data-lang="en">Tweet</a>
			<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
		</div>
	</div>

</div>
	]]></content:encoded>
			<wfw:commentRss>http://www.marcus-povey.co.uk/2011/11/11/howto-printing-to-any-printer-with-an-ipadiphone-and-apple-airprint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Sores pilot episode</title>
		<link>http://www.marcus-povey.co.uk/2010/04/23/open-sores-pilot-episode/</link>
		<comments>http://www.marcus-povey.co.uk/2010/04/23/open-sores-pilot-episode/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 14:07:39 +0000</pubDate>
		<dc:creator>Marcus Povey</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bedroom]]></category>
		<category><![CDATA[debill]]></category>
		<category><![CDATA[hacker]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[open sores]]></category>
		<category><![CDATA[podcast]]></category>

		<guid isPermaLink="false">http://www.marcus-povey.co.uk/?p=524</guid>
		<description><![CDATA[Open sores is a podcast put together by myself and Ben Werdmuller about what grinds our gears in technology. Discussed in this episode: Digital Economy Bill and government procedure Apple iPad &#38; locked down platforms Where now for the bedroom hackers? [audio:https://s3.amazonaws.com/opensores/Open%20Sores%20S1E1.mp3] Download: MP3 Torrent (This is the pilot episode, and there may or may not [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.marcus-povey.co.uk/wp-content/photo-150x150.jpg" alt="" width="100" height="100" align="right" />Open sores is a podcast put together by myself and <a href="http://www.benwerd.com">Ben Werdmuller</a> about what grinds our gears in technology.</p>
<p>Discussed in this episode:</p>
<ul>
<li>Digital Economy Bill and government procedure</li>
<li>Apple iPad &amp; locked down platforms</li>
<li>Where now for the bedroom hackers?</li>
</ul>
<p>[audio:https://s3.amazonaws.com/opensores/Open%20Sores%20S1E1.mp3] Download: <a href="https://s3.amazonaws.com/opensores/Open%20Sores%20S1E1.mp3">MP3</a> <a href="https://s3.amazonaws.com/opensores/Open%20Sores%20S1E1.mp3?torrent">Torrent</a></p>
<p><small>(This is the pilot episode, and there may or may not be another one. It was recorded for our own amusement. Production values are low. Contains swearing and general nonsensical rambling.)</small></p>
<div class="wsbuttons">
	<div class="shareblob facebook">
		<div class="fb-like" data-href="http://www.marcus-povey.co.uk/2010/04/23/open-sores-pilot-episode/" data-send="false" data-layout="box_count" data-width="60" data-show-faces="false" data-colorscheme="light"></div>
	</div>

	<div class="shareblob google">
		<div class="g-plusone" data-size="tall" data-href="http://www.marcus-povey.co.uk/2010/04/23/open-sores-pilot-episode/"></div>
	</div>

	<div class="shareblob twitter">
		<div class="twitter">
			<a href="https://twitter.com/share?url=http%3A%2F%2Fwww.marcus-povey.co.uk%2F2010%2F04%2F23%2Fopen-sores-pilot-episode%2F&count=vertical" class="twitter-share-button" data-lang="en">Tweet</a>
			<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
		</div>
	</div>

</div>
	]]></content:encoded>
			<wfw:commentRss>http://www.marcus-povey.co.uk/2010/04/23/open-sores-pilot-episode/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

