Airprint from iphone/ipad on Ubuntu (xubuntu, kubuntu) – revised

OK I’ve done this already, but it’s even easier than I thought. I found this after reinstalling xubuntu and thinking about it for more than a few seconds.

It turns out that all the required libraries are installed by default, so :

  1. Make sure your printer is installed in Linux. It probably is, but if not this isn’t going to be very useful
  2.  

  3. Download the python script from here (copy the text, paste into an editor and save as airprint.py in your home folder
  4.  

  5. Mark the file as executable:
    sudo chmod +x ~/airprint.py
  6.  

  7. Run the python script with a switch to put the result in the right place :
    sudo ./airprint.py  -d /etc/avahi/services/airprint.service
  8.  

  9.  Edit your cupsd.conf:
    sudo nano /etc/cups/cupsd.conf
  10.  

  11.  Add “Serveralias *”  above “<Location />”  (without quotes)
  12.  Share your printer in the printing GUI
  13.  

  14.  Print from your iphone/ipad

2 comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.