Airprint (wireless IOS printing) for Debian Squeeze
You can enable wifi printing on your IOS device with a Debian box connected to your local wired network assuming your wireless ap is also connected to the same network. Here’s how
Before you start you should have a cups compatible printer connected to the Debian box.
apt-get install cups-pdf avahi-daemon python-cups cups-driver cups-driver-gutenprint foomatic-db foomatic-db-engine foomatic-filters foomatic-filters-ppds
Test cups printing and make sure it’s functional. Add this to /etc/cupsd.conf
ServerAlias *
mkdir /opt/airprint (or wherever you want)
wget https://github.com/tjfontaine/airprint-generate/blob/master/airprint-generate.py
chmod +x airprint-generate.py
./airprint-generate-py -d /etc/avahi/services
Restart avahi ie /etc/init.d/avahi-daemon restart
ls /etc/avahi/services and you should see your printer listed.
Try printing from your IOS device (iphone, ipad, etc) connected to your wifi network. It should work!