HOWTO: Use Google Cloud Print for Linux (print from Andriod device)

See znote's post below to get this to work with the latest version of python. I'll update the how to to reflect the changes later. Right now I just don't have time.

This tutorial will allow you to print from anywhere to your home printer using your android device via Google Cloud Print for Linux.

***Notes***

It is best to set this up on a home server or another computer that runs all the time, as the printer will only be "online" when your computer is running.
You can use either a wired or wireless printer, or a network printer.

I did not make this script, I just tested it out using instructions found from various other pages (see references below,) and this is how I did it.

Credit goes to wasserkapf at the xdadevelopers forum for most of the instruction.

***Important***

Before beginning ensure that the printer that you want to share is set up in Ubuntu and that you can actually print from it. If this is not the case this tutorial won't work.

***Set up your Ubuntu box to use Google Cloud Print***

Use GIT to download the source. To use GIT, you first need it installed. You also need python and python-cups installed

There are two programs that you can use to do this. I prefer "PrinterShare", but you can also use "Cloud Print". PrinterShare (free version) does not allow you to print directly to your networked printer without going through Google Cloud Print. I find the delay minimal and out-weigh the advertisements in the Cloud Print program.

go to your market app and search for either "PrinterShare" or "Cloud Print" and install. Or you can use the links below.

hi great script.
I had to change this in ez_setup.py to get it workin
---
import sys
DEFAULT_VERSION = "0.6c11"
DEFAULT_URL = "http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg"