FORUMS
Remove All Ads from XDA

Google Cloud Print With Linux/Mac Printers

433 posts
Thanks Meter: 22
 
By wasserkapf, Senior Member on 13th March 2011, 06:50 PM
Post Reply Email Thread
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/show...ght=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....7ef82719?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.

Any one else want to try it?
The Following User Says Thank You to wasserkapf For This Useful Post: [ View ] Gift wasserkapf Ad-Free
 
 
13th March 2011, 07:04 PM |#2  
OP Senior Member
Thanks Meter: 22
 
More
OK, I uninstalled the Andoid app, then re-installed it. It then saw my printer and I was able to print a testpage!!

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!!!
20th April 2011, 10:44 PM |#3  
grokdesigns's Avatar
Senior Member
Flag Chandler, AZ
Thanks Meter: 6
 
More
Dang, it doesn't work with Google's two-factor authentication!

EDIT: It works by creating an application specific password for your Google account.
21st April 2011, 12:15 AM |#4  
OP Senior Member
Thanks Meter: 22
 
More
Quote:
Originally Posted by grokdesigns

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/accoun...&topic=1056284

Quote:

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.

5th May 2011, 11:58 AM |#5  
OP Senior Member
Thanks Meter: 22
 
More
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.
6th July 2011, 08:54 PM |#6  
Junior Member
Thanks Meter: 0
 
More
Smile It works!
Sweet it works! Both the flags and the straight code!
22nd July 2011, 04:25 PM |#7  
arvati's Avatar
Member
Flag São José do Rio Preto - SP
Thanks Meter: 91
 
Donate to Me
More
Does the python script works just with the default printer on cups or show all printers at google cloud print?
25th July 2011, 10:12 PM |#8  
OP Senior Member
Thanks Meter: 22
 
More
Quote:
Originally Posted by arvati

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.
10th November 2011, 07:04 PM |#9  
arvati's Avatar
Member
Flag São José do Rio Preto - SP
Thanks Meter: 91
 
Donate to Me
More
Cups and Google Cloud Print Integration
People now have created an integration of cups with google cloud print, since chrome for ubuntu now has google cloud print. This integration is what was missing to have full access to google cloud print over ubuntu.

See article in english: http://www.niftiestsoftware.com/cups-cloud-print/

My article in portuguese: https://sites.google.com/site/ubuntu...loud-no-ubuntu
10th November 2011, 10:00 PM |#10  
OP Senior Member
Thanks Meter: 22
 
More
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.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes