Google Cloud Print With Linux/Mac Printers

Search This thread

wasserkapf

Senior Member
Sep 6, 2010
433
22
There is an Android app that uses the new Google Cloud Print beta. More info on that can be found here:

http://forum.xda-developers.com/showthread.php?t=950312&highlight=cloudprint

I have found that someone made a script to get this working on Linux and Mac hosted printers. I have it installed on my Ubuntu PC:

https://github.com/armooo/cloudprint

http://groups.google.com/a/chromium...hread/74a73ee7d34a72c9/cb420a777ef82719?pli=1

You can download the source tarball, or use GIT to download the source. To use GIT, you first need it installed. You also need python and python-cups installed
Code:
sudo apt-get install git-core python python-cups
Now pull the source code to your home folder:
Code:
git clone git://github.com/armoo.cloudprint.git
After it downloads, I had to change permissions on the folder:
Code:
chmod -R 777 ~/cloudprint
Now change directory to the cloudprint folder, and run the setup.py script:
Code:
cd ~/cloudprint
python setup.py build
Now install it:
Code:
sudo python setup.py install
This installed the script in this folder:

/usr/local/lib/python2.6/dist-packages/cloudprint/cloudprint.py

Run it and it should ask for your gmail address and password:
Code:
python /usr/local/lib/python2.6/dist-packages/cloudprint/cloudprint.py
It also added my default printer. I it worked by logging into my gmail account, and going to this page:

http://www.google.com/cloudprint/manage.html

There I see my printer in the list.

When I open the Cloud Print Android app, it does not find the printer. :confused:

Any one else want to try it?
 
  • Like
Reactions: grokdesigns

wasserkapf

Senior Member
Sep 6, 2010
433
22
OK, I uninstalled the Andoid app, then re-installed it. It then saw my printer and I was able to print a testpage!! :D

One thing. It seems to run in the terminal window of my Ubuntu PC. Maybe it can be run in the background.

This is good news!!!
 

grokdesigns

Senior Member
Jul 16, 2007
193
6
Chandler, AZ
Dang, it doesn't work with Google's two-factor authentication!

EDIT: It works by creating an application specific password for your Google account.
 
Last edited:

wasserkapf

Senior Member
Sep 6, 2010
433
22
Dang, it doesn't work with Google's two-factor authentication!

EDIT: It works by creating an application specific password for your Google account.

I'm not sure what you mean by "two-factor authentication". Mine works with my regular Google account username and password.

Edit: I think that you meant two-step verification.

http://www.google.com/support/accounts/bin/static.py?page=guide.cs&guide=1056283&topic=1056284

Google Cloud Print stopped working after I signed up for 2-step verification

If you're using 2-step verification, you need to enter an application-specific password instead of your Google Account password when enabling the Google Cloud Print connector within Google Chrome. You can generate the application-specific password on your Authorizing applications and sites page.
 
Last edited:

wasserkapf

Senior Member
Sep 6, 2010
433
22
Cloud Print Now In Chrome For Linux

The Linux version of Chrome 11.0 now has the ability to use Cloud Print, so this script is no longer needed.

Cloud Print is disabled by default in the Linux version of Chrome 11.0. To enable it, first enter this into the address bar:
Code:
about:Flags
This will open a page showing many disabled features. Go to the "Cloud Print Proxy" entry, and click on the "Enable" link. Now shut down and restart the browser.

After restarting Chrome, open the control panel (the wrench in the upper right), and click on "Preferences". Click on the "Under The Hood" section, and scroll to the bottom of the page. Here you will now find the option to enable Cloud Print for printers on that computer.

You have to have the computer running, and be logged in, for it to work. So, this would be best used on a file server, or some other Linux computer that is on 24/7.
 
Last edited:

wasserkapf

Senior Member
Sep 6, 2010
433
22
Does the python script works just with the default printer on cups or show all printers at google cloud print?

I don't recall, as I now use the Chrome browser for cloud print. Using the script wasn't very handy, as you have to run it from a terminal window. If you close the terminal, it ceases to work. If you look at my first post, it says it works with the default printer.
 

arvati

Senior Member

wasserkapf

Senior Member
Sep 6, 2010
433
22
Thanks, but I'm not sure I see any use for something like this. I used cloud print to print TO my cups based printer. What really is needed is cups for Android.
 

wasserkapf

Senior Member
Sep 6, 2010
433
22
Good Idea. Do you know any group working on it?

Not that I know of. There is an old thread about this in Google Groups:

http://code.google.com/p/android/issues/detail?id=1148

One reply was this:
Aug 16, 2010

For your information, we are OESF Lab in Vietnam (www.oesf.biz) are working to port CUPS to Android.
After porting CUPS, some printing applications (print manager, print job) will be added.
This is a ready hard work. Any help or contributor into this project are welcome!
My search at the OESF web site brings up nothing.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    There is an Android app that uses the new Google Cloud Print beta. More info on that can be found here:

    http://forum.xda-developers.com/showthread.php?t=950312&highlight=cloudprint

    I have found that someone made a script to get this working on Linux and Mac hosted printers. I have it installed on my Ubuntu PC:

    https://github.com/armooo/cloudprint

    http://groups.google.com/a/chromium...hread/74a73ee7d34a72c9/cb420a777ef82719?pli=1

    You can download the source tarball, or use GIT to download the source. To use GIT, you first need it installed. You also need python and python-cups installed
    Code:
    sudo apt-get install git-core python python-cups
    Now pull the source code to your home folder:
    Code:
    git clone git://github.com/armoo.cloudprint.git
    After it downloads, I had to change permissions on the folder:
    Code:
    chmod -R 777 ~/cloudprint
    Now change directory to the cloudprint folder, and run the setup.py script:
    Code:
    cd ~/cloudprint
    python setup.py build
    Now install it:
    Code:
    sudo python setup.py install
    This installed the script in this folder:

    /usr/local/lib/python2.6/dist-packages/cloudprint/cloudprint.py

    Run it and it should ask for your gmail address and password:
    Code:
    python /usr/local/lib/python2.6/dist-packages/cloudprint/cloudprint.py
    It also added my default printer. I it worked by logging into my gmail account, and going to this page:

    http://www.google.com/cloudprint/manage.html

    There I see my printer in the list.

    When I open the Cloud Print Android app, it does not find the printer. :confused:

    Any one else want to try it?