Google Cloud Print is a great service by Google that allows you to print to your printer from any device that supports the service. In Google’s words:
Google Cloud Print is a new technology that connects your printers to the web. Using Google Cloud Print, you can make your home and work printers available to you and anyone you choose, from the applications you use every day. Google Cloud Print works on your phone, tablet, Chromebook, PC, and any other web-connected device you want to print from.
The problem with the service is that you need either a computer that is running the service or a printer that supports it. Since my Brother HL-2270DW laser printer – which is a phenomenal printer – does not support Cloud Print, I needed a computer on all of the time and that’s where the Raspberry Pi (RPi) comes in! The beauty of the RPi is that it can always be running because of its low power consumption.
Because I’m running the RPi as a headless server, I needed to find a third party application/service that can use Cloud Print. Dave Steele’s Cloudprint-service provides a nice service that runs in the background and can be installed and updated using his PPA repository.
A few things have changed with Google Cloudprint and Dave Steele has posted up to date directions here.
Warning: you need to have a printer installed, either locally or using cups, before using Google Cloud Print.
Follow the steps below to install Dave’s Cloudprint-service on a Raspberry Pi:
First backup the original copy of the
$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
Add Dave’s repository to the
$ echo "deb http://davesteele.github.io/cloudprint-service/repo cloudprintppa main" | sudo tee -a /etc/apt/sources.list
Check to see if the repository was correctly added to
$ cat /etc/apt/sources.list
Download and add Dave’s GPG key.
$ wget http://davesteele.github.io/key-366150CE.pub.txt -O - | sudo apt-key add -
Check to make sure the key was added properly.
$ sudo apt-key list pub 4096R/366150CE 2010-08-15 uid David Steele <email@example.com> uid David Steele <firstname.lastname@example.org> sub 4096R/0D929394 2010-08-15
Update the RPi repository.
$ sudo apt-get update
$ sudo apt-get install cloudprint cloudprint-service
$ sudo su $ service cloudprintd login Accounts with 2 factor authentication require an application-specific password Google username: <username> Password: <password> Updated Printer MFCJ5910DW ... $ su pi
The service can be manually started.
$ sudo service cloudprintd start
Cloudprint-service installs an init.d file to start the service during boot. Make sure it exists.
$ ls /etc/init.d | grep cloudprintd
To test if the service starts on boot, reboot the RPi.
$ sudo restart
Check to make sure the service is running.
$ service cloudprintd status [ ok ] cloudprint is running.
That’s it! Happy printing!