Page 1 of 1

Airprint with iOS 6

Posted: 10 Nov 2012, 14:21
by dsudar
Hi,
I just upgraded my iThings to iOS 6 and Airprint no longer works. Everything is still fine with iThings running iOS 5.

I did find some references on the web referring to this issue with "recipes" how to fix for Centos and Ubuntu.

Is there such a "recipe" for my b3 running 2.5.1.1? Or is it fine to follow the instructions for Ubuntu? Anybody have any experience what works before I screw up my b3?

Question for the Excito team: any plans putting such a patch into 2.5.1.2?

Thanks,
- Damir

Re: Airprint with iOS 6

Posted: 10 Nov 2012, 15:08
by RandomUsername
Can you post a link to some of the solutions you found?

Re: Airprint with iOS 6

Posted: 10 Nov 2012, 17:29
by dsudar
I tried before but wasn't allowed by the forum police. Let me try again:

I found the following:
Centos 6: http://thepoch.com/post/32724116678/get ... -for-ios-6
Ubuntu: http://ubuntuforums.org/showthread.php?p=12254866
another for Ubuntu: http://sysblog.sund.org/2012/10/ios-6-a ... on-ubuntu/

I haven't tried anything yet, hoping for a kind soul who figured out how to do it on Bubba.

Thanks,
- Damir

Re: Airprint with iOS 6

Posted: 10 Nov 2012, 19:20
by RandomUsername
Well, I can't see any harm in trying the two Ubuntu solutions you posted. Just make sure to backup any files before you edit them.

Re: Airprint with iOS 6

Posted: 12 Nov 2012, 21:21
by dsudar
Okay, so here are what I think are the minimum steps to restore the Airprint functionality on a B3 running 2.5.1.1 when printing from an iOS 6 iDevice:

cd /usr/share/cups/mime

create the following 2 files:

airprint.convs containing:

#
# "$Id: $"
#
# AirPrint
# Updated list with minimal set 25 Sept
image/urf application/pdf 100 pdftoraster
#
# End of "$Id: $".
#

and a file: airprint.types containing:

#
# "$Id: $"
#
# AirPrint type
image/urf urf string(0,UNIRAST<00>)
#
# End of "$Id: $".
#


-----------------
# get and execute the airprint-generate.py script by TJ Fontaine (see: http://atxconsulting.com/posts/Automati ... _printers/):

cd /tmp # or wherever you like to put some temp files
wget https://raw.github.com/tjfontaine/airpr ... enerate.py

# let python run the script and generate the service files with the prefix "printer_"
python airprint-generate.py -p printer_

# now you have .service files in that directory for each of your printers; copy those to /etc/avahi/services
su # become su
cp printer_*.service /etc/avahi/services

# finally restart both cupsd and avahi-daemon
service cupsd restart
service avahi-daemon restart

And your printers should again show up on iOS6 iDevices.

Good luck,
- Damir