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 :
- Make sure your printer is installed in Linux. It probably is, but if not this isn’t going to be very useful
Download the python script from here (copy the text, paste into an editor and save as airprint.py in your home folder
- Mark the file as executable:
sudo chmod +x ~/airprint.py - Run the python script with a switch to put the result in the right place :
sudo ./airprint.py -d /etc/avahi/services/airprint.service - Edit your cupsd.conf:
sudo nano /etc/cups/cupsd.conf - Add “Serveralias *” above “<Location />” (without quotes)
- Share your printer in the printing GUI
- Print from your iphone/ipad
not sure why you updated the guide. it worked first time for me as it is. Thanks very much.