Printing from a Chromebook

Chromebooks are nice machines, but of course they dance to Google’s tune. Google are usually pretty good at adopting open standards but occasionally they think they can do better. There are established protocols for printing over a network, but Google have ignored these entirely by ensuring that all Chromebooks only support Google Cloud Print printers!

To be fair to the mighty G, they do explain how you can leave a PC running with their Google Chrome browser open to make your existing printer available to your Chromebooks but electricity on the Isle of Man is not very cheap, so I don’t want to leave a PC running all day long.

Instead, I’ve deployed a humble Raspberry Pi along with the magic of GNU/Linux and the Google Cloud Print connector for CUPS to achieve the same result without wasting the planet’s resources.

However, efficiently sipping electricity like this won’t help the island to pay off its debts!

Hello Chromebook

I bought my wife an HP Chromebook 11 for her birthday this week. I’ll admit that part of the reason for my choice of gift was my own curiosity. I wanted to see how good a Chromebook was, and whether it would be a better choice to use in schools than the current (expensive) tablet craze that seems to be going on…

First impressions are that the device is the perfect size and weight. The keyboard is great to type on (I’m using it now), with well spaced keys that have a responsive travel and good tactile feedback. Error-free typing without looking is definitely easy on these things, so anyone who needs to write a lot would find an HP Chromebook 11 very nice. The screen is much better than I expected at this price point, with a very bright and crisps display with excellent viewing angles. ChromeOS is easy to use without training, and of course it plays very nicely with the Google Apps stuff. If you’re a heavy user of Google Apps, I’d highly recommend carrying a Chromebook around with you!

The only snag was the inability to print. Sure, you can collect your docs from Google Drive on another machine with a printer, but that’s a bit clunky. Also, given that we have a networked printer at home I wanted to be able to use that. This is another of those Linux-to-the-rescue stories, so with a bit of tinkering all is well. Here’s my solution:

  • Install CUPS onto my HP Proliant Microserver and add our network printer to it
  • Connect CUPS to Google CloudPrint with some python magic from Jason: https://github.com/armooo/cloudprint
  • Set up an application specific-password to use in my Google Account (just in case…)
  • Give cloudprint the account details
  • In my Google account, share the new Google Cloud Print printer with my wife, so she can use it too.

I still need to tweak things so that the cloudprint connector will start automatically, but I very rarely reboot the server, so not sure when I’ll be bothered to get around to that!