LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices


Reply
  Search this Thread
Old 03-28-2011, 11:48 AM   #1
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
HowTo: Use Google Cloud Print on Linux


A new la entry has been added:

HowTo: Use Google Cloud Print on Linux

Quote:
Despite what Google says about Google Cloud Print not being available for Linux, it actually is -- in the form of a Python script that you can execute on your Linux system and be able to print from your Cr-48 on it.

Now for the dependencies: Apparently, you need Python (2.7 or older; 3.x will *NOT* work) and pycups to be able to use this script.
 
Old 04-19-2011, 07:06 PM   #2
mande01
LQ Newbie
 
Registered: Aug 2009
Posts: 23

Rep: Reputation: 2
Have people used this?

And if you have a linux box switched on anyway (with printer) can't you just share it via that box?

Derry
 
Old 05-03-2011, 05:28 PM   #3
aszabo
Member
 
Registered: Mar 2009
Location: Budapest, Hungary
Distribution: Slackware
Posts: 120

Rep: Reputation: 16
Hi,

I have problem with cloudprint.py, when I start it, I get the following error message:

Traceback (most recent call last):
File "/usr/bin/cloudprint", line 8, in <module>
load_entry_point('cloudprint==0.2', 'console_scripts', 'cloudprint')()
File "/usr/lib/python2.6/site-packages/cloudprint/cloudprint.py", line 304, in main
sync_printers(cups_connection, cpp)
File "/usr/lib/python2.6/site-packages/cloudprint/cloudprint.py", line 227, in sync_printers
cpp.add_printer(printer_name, description, ppd)
File "/usr/lib/python2.6/site-packages/cloudprint/cloudprint.py", line 131, in add_printer
'capabilities' : ppd.encode('utf-8'),
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 52637: ordinal not in range(128)

Could you help me how to resolve this error?

Thanks.
 
Old 05-03-2011, 05:38 PM   #4
aszabo
Member
 
Registered: Mar 2009
Location: Budapest, Hungary
Distribution: Slackware
Posts: 120

Rep: Reputation: 16
The problem is resolved with the new version 0.4.
 
Old 05-05-2011, 09:07 AM   #5
rthomas00
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: 0
Got cloudprint installed and working except it will only print text files. Anything else will go into the print que but stop. Job cannot be restarted only deleted.
This is printing from android device with cloudprint app.
 
Old 01-01-2012, 05:05 AM   #6
usky
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
Thanks Kenny for your help.

I followed your tuto and I have one major problem.
The service does not start automaticaly at startup...

I only created the /etc/init.d/cloudprint file and add a chmod +x cloudprint.

Do you have an idear ?
 
Old 02-07-2012, 02:08 AM   #7
Akirad
LQ Newbie
 
Registered: Feb 2012
Posts: 1

Rep: Reputation: Disabled
You must use the cloudprint regitered user, so if your user is "user" you can start automatically at startup by edit
/etc/rc.local

and add this line before exit 0:

su user -c /usr/bin/cloudprint &

bye

Paolo Rampino aka Akirad
 
Old 03-01-2012, 09:21 AM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
Incidentally, "Google cloud print" is actually a marketing repackage of existing web-print technologies that are simultaneously available from other vendors. The stuff that you use to print to a shared printer in a hotel lobby from your room might well be the self-same thing ... and Google won't get a copy of your stuff and keep it forever.
 
Old 03-01-2012, 11:22 AM   #9
usky
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
Whatever, it is now available with chromium.
 
Old 07-19-2012, 04:19 PM   #10
arinekhen
LQ Newbie
 
Registered: Jul 2012
Distribution: All of them
Posts: 2

Rep: Reputation: Disabled
thanks

I just wanted to say thanks for this post. I got cloud print working on my ubuntu 12.04 machine with it. Thanks!
 
Old 08-10-2013, 03:37 PM   #11
maxcelpc
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Rep: Reputation: 0
Could'nt connect to Cloud Service, will try again in 60 seconds

I think that this may be the same package that is now available from the Ubuntu repository, simply:
Code:
apt-get install cloudprint
it certainly responds the same.

I have this loaded on an Ubuntu 12.04LTS server, no gui and no Chromium browser.
When cloudprint is started it recognises the printer attached to the server then appears to hang, i.e. it does not return to the prompt until enter is pressed.

If it is run as a daemon
Code:
cloudprint -d
it again registers the printer and also displays a message showing the PID. The printer then shows up on my Android device but with status 'unknown'. If a print request is made from the Android device it is shown as being queued, however the server now shows an error message
Quote:
ERROR: Couldn't connect to Cloud Service: will try again in 60 secs.
Along with each error message, cloudprint dumps a 16mb file into the /tmp directory on the server and this happens every minute until the print job is cancelled from the Android device; cntrl&c from the server terminal does not stop it.

Initially unaware of what was happening, the root partition on the server soon became full, bringing the server to a halt.

There appears to be very little information available on cloudprint and I would appreciate any help on how to go about diagnosing the problem. I do not want to load a gui and chromium onto a minimal server, if only for security reasons.
 
Old 01-01-2015, 04:09 PM   #12
mowglie
LQ Newbie
 
Registered: Jan 2015
Posts: 1

Rep: Reputation: Disabled
i have the exact same problem/situation maxcelpc reports! maxcelpc or anyone else find a solution?
 
Old 01-11-2015, 03:05 PM   #13
ttguy
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by maxcelpc View Post
If a print request is made from the Android device it is shown as being queued, however the server now shows an error message
Code:
ERROR: Couldn't connect to Cloud Service: will try again in 60 secs.
Along with each error message, cloudprint dumps a 16mb file into the /tmp directory on the server and this happens every minute until the print job is cancelled from the Android device; cntrl&c from the server terminal does not stop it.
I get this too.

maxcelpc - do you by any chance have the two step authentication turned on for your google account? You know - where google SMS a second code before you log in to your account? Because I have that and I just wonder if it is related.

I was able to create an "application specific password" for my cloud print and this allowed me to connect my printer using the python script. The printer shows up on the cloud print interface at the google web site. But when a print job is submited it gives the same error that maxcelpc is finding.
 
Old 05-02-2015, 07:00 AM   #14
mtotombogo
LQ Newbie
 
Registered: Sep 2009
Posts: 6

Rep: Reputation: 0
Getting the same thing.

trying to setup an old dell laptop as a print server, so running chrome or chromium not an option. shame as on paper this would have worked really well.
just normal authentication for me.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Mint - Google Chrome crashes when attempting to print web page azzivar Linux - Software 1 01-03-2011 12:02 PM
LXer: Google Chrome OS brings printing to the cloud LXer Syndicated Linux News 3 04-18-2010 06:19 AM
LXer: Microsoft to Google: Get Off of My Cloud LXer Syndicated Linux News 0 11-25-2008 01:11 AM
LXer: Google Refutes Cloud Computing Negativity LXer Syndicated Linux News 0 10-10-2008 04:30 PM
LXer: Google opens private cloud to coders LXer Syndicated Linux News 0 04-08-2008 08:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion

All times are GMT -5. The time now is 05:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration