Print from iOS 5 using OS X 10.6 Server

March 01, 2012

This guide was tested using Mac OS X Snow Leopard Server. It should also work with regular OS X 10.6 using the Printer Sharing functionality.

The first thing we need to do is create /usr/share/cups/mime/airprint.types and add image/urf urf (0,UNIRAST). Now open /usr/share/cups/mime/apple.types and add image/urf urf string(0,UNIRAST).

Open System Preferences and head into Print & Fax. Right-click inside the left column and click Reset printing system.... Please note that this will wipe all of your previously installed printers, so you will need to add them again.

Open Server Admin and enable the Print service. Enable IPP sharing and start the service.

Launch the CUPS web UI by going to localhost:631 in your browser. Ensure Share printers connected to this system is checked, then edit the configuration file. Set Browsing to Off.

Download Bonjour Browser and craft the following command from the IPP section. This will be used to advertise the printer to iOS 5 devices:

sudo dns-sd -R "iOS Printer" _ipp._tcp.,_universal . 631 txtvers= qtotal= rp= ty= note= product= printer-state= printer-type= Transparent= Binary= Fax= Color= Duplex= Staple= Copies= Collate= Punch= pdl=

Run the above command and your printer will now be available on iOS 5 devices.