NOTE: As mentioned by member: BonjourPrinter, this HowTo is no longer necessary if you are running the current levels of Mint:

BonjourPrinter wrote:These instructions should not be followed under any circumstances anymore!

Discovery of a Mint/Ubuntu attached printer from an iPad pretty much works out of the box as long as you have shared the printer, instructed the CUPS server to publish that printer, and have made sure that the avahi-daemon is running.

**********************************************************************************************************************************************My wife owns an Apple IPad. A recent update to the OS now allows printing via something called AirPrint. According to the reports on AirPrint:

The good news is: AirPrint is incredibly seamless. The bad news is: it currently only works with 10 printer models—all of them from HP. On December 27th, HP will release six more AirPrint-enabled printers. Apple claims the number of AirPrint-ready printers will increase down the road, as will the number of manufacturers.

Well let's see, apple created ( assimilated ) two technologies that covers printing: CUPS and ZeroConf (avahi). Both of these exist in Linux so I figured there must be a way to do this with any printer attached to a Linux PC. Interestingly avahi is broken in Mint because of something Ubuntu did but there's a way around this as well. Did some googeling and did some experimenting and came up with this procedure:

First: Make sure your printer works locally and that it has been "shared" and "published". If needed refer to this HowTo on how to do that:viewtopic.php?f=42&t=28397

I have an HP printer which I called HP970 ( and so old it's certainly not AirPrint enabled ) attached to Mint9.

Although it wasn't apparent to me how one does this my wife tells me that you should be able to print from safari, photos, and Mail.

As a side benefit anyone who owns a Mac or even another Linux machine now has another option to access a remote printer as the "Printing" applet that is used to add a new printer now has another option under Network Printer: Airprint HP970@altair. This effectively repairs what Ubuntu broke in avahi.

It is my sincerest hope that this works for you as is because in all seriousness my wife does not allow me much time on her growing list of apple products for fear that I will tinker with them.

Last edited by altair4 on Sat Jun 02, 2012 6:48 pm, edited 4 times in total.

Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

That's too bad that avahi fails to start. I wonder if it's another "upstart" problem. Perhaps a script in /etc/network/if-up.d that restarts the service would work as well. Your way is probably cleaner.

Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

I greatly appreciated your tutorial, and other then the slight glitch I experienced, it works really well with my iPad. And dare I say that I probably won't be the only one who sees this post and benefits from it. Basically it gets past a limitation in the iPad's iOS that would have required buying a new printer in order to have such a seamless print ability. Although it does require using my Linux machine as a print server, this is acceptable since I often have it ON and idling in the background throughout the day. And unlike some of the other print solutions, it is the only one that I know of for a Linux based system that is able to take full advantage of the AirPrint function. Most other solutions make you open a separate app as well as install a special client on the computer sharing the printer.

Well apparently my fix isn't working after all. It still loses connectivity after rebooting the computer. So I need a foolproof method of making the printers stick and be accessible on my iPad using AirPrint via Avahi.

Unfortunately I'm not a linux guru, so not really sure what my next move should be.

You originally posted this tutorial describing enabling AirPrint for your wife's iPad. Has she experienced any problems maintaining a printer discovery after rebooting the Linux machine?

She doesn't use the feature that often to make it a fair test but every time she's needed it it was available. I should point out that avahi has always started by default on my systems so your situation has never happened to me. I have noticed that avahi-daemon not starting on boot seems to be happening with may distros based on my google searches.

At first I thought of just placing your script here: /etc/network/if-up.dBy design anything at that location will only be executed after the network is up but it appears there already is an avahi-daemon script at that location for other reasons. Right now I'm thinking of a modification to the upstart job that starts avahi in the first place but I'm getting way beyond my comfort zone with that.

I'll keep at this but it would help if it was an issue on my system.

Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

Hmm... So this sounds like a Linux Mint Avahi implementation problem. I'll do some searches and see what I find out. And of course if I have some success at getting it to work, I'll post the results here, which I also assume you would as well.

Thanks, altair4. This is working! (Linux Mint 11) My avahi-discover seg faults when I try to run it, not sure what that's about. But the important thing is the wife's iPad can see the printer in the office now. Cheers!

Iam newbie on this Linux.However, I am trying this method using Ubuntu 11.10So far the steps are followed smoothly until step No.8 gksu gedit /etc/cups/cupsd.confi cannot open and edit the cupsd.conf by using terminal.And if Im using folder explorer bu simply clicking to open, this file won't be saved.I think any permission problem.

These instructions should not be followed under any circumstances anymore!

Get CUPS server 1.4.6 or higher, then enable network printer sharing and it will automatically announce the proper AirPrint-compatible Bonjour/mDNS (DNS-SD) services.

Remember that enabling printer sharing is a 3-step process:* Enable the individual printer for sharing.* Enable CUPS network sharing (this is what actually starts the sharing).* Ensure that DNS-SD is enabled in CUPS (it is enabled by default).

BonjourPrinter wrote:These instructions should not be followed under any circumstances anymore!

Get CUPS server 1.4.6 or higher, then enable network printer sharing and it will automatically announce the proper AirPrint-compatible Bonjour/mDNS (DNS-SD) services.

Remember that enabling printer sharing is a 3-step process:* Enable the individual printer for sharing.* Enable CUPS network sharing (this is what actually starts the sharing).* Ensure that DNS-SD is enabled in CUPS (it is enabled by default).

BonjourPrinter wrote:These instructions should not be followed under any circumstances anymore!

Whoa! That got my attention being all bold and red and all.

As I have discovered in the 18 months since I did this there doesn't seem to be a lot of demand to print from the iPad in this shop so I forgot about it. So to see how things have changed since then I ran under my current circumstances:

** I use Xubuntu 12.04 these days. ( Mint13 equivalent )** I'm using an iPad3 - or New iPad , or whatever it's called instead of the iPad1 I used then.** I made no modifications whatsoever to the base configurations of cups or it's printers aside from sharing the printer and ensuring that the cups server allows publishing of those printers. And I certainly did not do anything mentioned in this HowTo.

The iPad discovers the printer(s) just as easily and no doubt using the same avahi discovery mechanism that a Mac would.

So In conclusion you are correct sir or madam and I will amend the original post specifying that this HowTo is no longer necessary or valid and attribute that discovery to you.

Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

BonjourPrinter wrote:These instructions should not be followed under any circumstances anymore!

Whoa! That got my attention being all bold and red and all.

As I have discovered in the 18 months since I did this there doesn't seem to be a lot of demand to print from the iPad in this shop so I forgot about it. So to see how things have changed since then I ran under my current circumstances:

** I use Xubuntu 12.04 these days. ( Mint13 equivalent )** I'm using an iPad3 - or New iPad , or whatever it's called instead of the iPad1 I used then.** I made no modifications whatsoever to the base configurations of cups or it's printers aside from sharing the printer and ensuring that the cups server allows publishing of those printers. And I certainly did not do anything mentioned in this HowTo.

The iPad discovers the printer(s) just as easily and no doubt using the same avahi discovery mechanism that a Mac would.

So In conclusion you are correct sir or madam and I will amend the original post specifying that this HowTo is no longer necessary or valid and attribute that discovery to you.

Hi, i hv been trying with mint 12 and ipad 2 (no jailbreak), and resulting the printer is not detected from thre ipad. I managed the cups already and make it share. But have no luck from the ipad. Do you hv any idea what im missing for?