Tag Archives: printing

Serving a Printer to Google Cloud Print from Linux

Been waiting for Google Cloud Print to finally come to linux?

The wait is over!

For now, Google has only released the ability to serve up a printer to the Google cloud via Windows while explicitly noting that the capability to do so in Linux is on the way. However, the entire ‘Cloud Aware’ printer scheme has seemed to always been referred to as coming-soon and that is probably a ways off yet. So I remain skeptical as to when we will actually see this ability. [update: There are some out there now and reviews are trickling in.]

Luckily, Armooo posted a python script that you can run on Linux (and I assume *BSD, but haven’t tested just yet) to serve up your local CUPS printer to the Google Cloud.

The script can be found here at his Github page and uses Python and PyCups to serve up your CUPS-enabled printer to the Google Cloud.

I have the HP Laserjet Pro P1102W printer served up locally via CUPS. It’s connected to the Linux desktop I am running the cloud print script from using USB and runs extremely well in Linux using the newest HPLIP. The printer is this one here: HP LaserJet Pro P1102w Printer (CE657A#BGJ); this printer will be discussed in another post about Linux printer setups.

Once your printer is setup and working locally and you have confirmed that CUPS is serving it up fine, you simply run Armooo’s script and it will serve up all of the found CUPS-based printers to the cloud. You can then print from any Google Print enabled device or the Chrome browser as discussed here.

~/bin/cloudprint$ ./cloudprint.py
Google username: yourusername@gmail.com
Password: yourpassword
Added Printer HP-LaserJet-Professional-P1102w

I then used my phone to go to the mobile Google Docs page and from there I could print out a document directly to the printer at home. Worked like a charm.