Using the cloudprint-service repository.
Here is how to add cloudprint to apt repository resources for your system, letting you install and
automatically upgrade with standard tools.
First, add a reference to the cloudprint PPA to your /etc/apt/sources.list file (as root):
deb http://davesteele.github.io/cloudprint-service/repo cloudprintppa main
Add the repository key to your apt key ring:
# wget http://davesteele.github.io/key-366150CE.pub.txt
# sudo apt-key add key-366150CE.pub.txt
Install the packages with :
$ sudo apt-get update
$ sudo apt-get install cloudprint cloudprint-service
The packages will be updated with every 'apt-get upgrade'.
Login to Cloud Print (as root):
# service cloudprintd login
Accounts with 2 factor authentication require an application-specific password
Google username: <username>
Updated Printer MFCJ5910DW
# service cloudprintd start
# service cloudprintd status
[ ok ] cloudprint is running.
The service will start automatically from this point on.