Share printer with Airprint under Linux/Ubuntu 10.04

Submitted by Tim on 22 Nov 2010 - 20:26

Getting Airprint printer sharing to work under linux is fairly simple.

First off all you need to get your printer working under linux using Cups and make sure you have pdf support (apt-get install cupsd cups-pdf). I won't get into detail howto configure cups. This will be different from printer to printer and pretty well described on the internet.

  • Download the script to  the script to generate an Avahi daemon config file provided by tjfontaine:

git clone (apt-get install git - if you don't have git yet)

  • To run this script you need python and python-cups:

apt-get install python python-cups

  • run the script:

cd airport-generate/

  • copy the created files to your avahi services config directory:

cp *.service /etc/avahi/services/

After this you should be ready to go. I still did get one error in my cups error log:
Request from "fe80::7ec5:37ff:fe09:62df%eth0" using invalid Host: field "office.local"

To get this working I still needed to add one line in /etc/cupsd.conf  :
ServerAlias *


Add new comment

The content of this field is kept private and will not be shown publicly.

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.