[opensuse] Google Cloud Print - a work in progress (on my end)

I'm trying to create a package (RPM) in OBS for Google Cloud Print. It sort of works now, but the setup is not yet very reliable / repeatable. This may be as good as it gets for short term. A wiki page documenting this would make it usable. I've gone so far as to create a RPM in OBS, but it takes more manual steps than it should at this point. ============== If anyone wants to use it / help troubleshoot, this should work (all as root or with sudo in front). zypper addrepo http://download.opensuse.org/repositories/home:gregfreemyer:Tools-for-forens... zypper refresh zypper install CUPS-Cloud-Print /usr/lib/cloudprint-cups/upgrade.py /usr/lib/cloudprint-cups/setupcloudprint.py upgrade.py should be automatically invoked by the RPM, but it is failing for me if I try to do that. The last step is interactive, so that can't be part of the install. Also, prior to the last step, you need to ensure you already have a printer registered with Google. (I do.) Everything looks like it is working pretty well until the last step.. If I only install one printer on the last step, then it too worked for me. When I tried to install all 3, it failed: ===================
sudo /usr/lib/cloudprint-cups/setupcloudprint.py root's password: Name for this user account ( eg something@gmail.com )? greg.freemyer@gmail.com Open this URL, grant access to CUPS Cloud Print, then provide the code displayed :
<snip my unique data and a URL you have to click on> You currently have these accounts configured: greg.freemyer@gmail.com Add more accounts (Y/N)? N Add all Google Cloud Print printers to local CUPS install from greg.freemyer@gmail.com (Y/N)? Y Use a prefix for names of created printers (Y/N)? N ('Error adding: Canon_MG8200_series_2C7655', IPPError(1280, 'Success')) ('Error adding: Print_to_FedEx_Office', IPPError(1280, 'Success')) ('Error adding: Save_to_Google_Docs', IPPError(1280, 'Success')) Added 3 new printers to CUPS === That is reporting 3 new printers, but it also says all had an error. lpstat is reporting no printers added:
lpstat -d -p no system default destination lpstat: No destinations added.
When I re-ran setupcloudprint.py and only selected the Canon printer, it worked and I've printed my first doc via Google Cloud Print. I added a comment at github about the failure: https://github.com/simoncadman/CUPS-Cloud-Print/issues/45 Greg -- Greg Freemyer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org

-- Greg Freemyer On Sat, Dec 28, 2013 at 1:43 PM, Greg Freemyer <greg.freemyer@gmail.com> wrote:
I'm trying to create a package (RPM) in OBS for Google Cloud Print.
Hmm... The /etc/cloudprint.conf file is plaintext. Is that a security concern? The file is below with anything potentially sensitive redacted. =============
sudo cat /etc/cloudprint.conf
{ "data": [ { "credential": { "_class": "OAuth2Credentials", "_module": "oauth2client.client", "access_token": "redacted", "client_id": "redacted.apps.googleusercontent.com", "client_secret": "redacted", "id_token": null, "invalid": false, "refresh_token": "redacted", "token_expiry": "2013-12-28T19:19:06Z", "token_uri": "https://accounts.google.com/o/oauth2/token", "user_agent": "redacted" }, "key": { "clientId": "redacted.apps.googleusercontent.com", "scope": "https://www.googleapis.com/auth/cloudprint", "userAgent": "redacted" } } ], "file_version": 1 } -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org

On Sat 28 Dec 2013 01:43:23 PM CST, Greg Freemyer wrote:
I'm trying to create a package (RPM) in OBS for Google Cloud Print.
It sort of works now, but the setup is not yet very reliable / repeatable. This may be as good as it gets for short term. A wiki page documenting this would make it usable.
I've gone so far as to create a RPM in OBS, but it takes more manual steps than it should at this point.
============== If anyone wants to use it / help troubleshoot, this should work (all as root or with sudo in front).
zypper addrepo http://download.opensuse.org/repositories/home:gregfreemyer:Tools-for-forens... zypper refresh zypper install CUPS-Cloud-Print /usr/lib/cloudprint-cups/upgrade.py /usr/lib/cloudprint-cups/setupcloudprint.py
upgrade.py should be automatically invoked by the RPM, but it is failing for me if I try to do that. The last step is interactive, so that can't be part of the install.
Also, prior to the last step, you need to ensure you already have a printer registered with Google. (I do.)
Everything looks like it is working pretty well until the last step.. If I only install one printer on the last step, then it too worked for me.
When I tried to install all 3, it failed:
===================
sudo /usr/lib/cloudprint-cups/setupcloudprint.py root's password: Name for this user account ( eg something@gmail.com )? greg.freemyer@gmail.com Open this URL, grant access to CUPS Cloud Print, then provide the code displayed :
<snip my unique data and a URL you have to click on>
You currently have these accounts configured: greg.freemyer@gmail.com Add more accounts (Y/N)? N Add all Google Cloud Print printers to local CUPS install from greg.freemyer@gmail.com (Y/N)? Y Use a prefix for names of created printers (Y/N)? N ('Error adding: Canon_MG8200_series_2C7655', IPPError(1280, 'Success')) ('Error adding: Print_to_FedEx_Office', IPPError(1280, 'Success')) ('Error adding: Save_to_Google_Docs', IPPError(1280, 'Success')) Added 3 new printers to CUPS
=== That is reporting 3 new printers, but it also says all had an error. lpstat is reporting no printers added:
lpstat -d -p no system default destination lpstat: No destinations added.
When I re-ran setupcloudprint.py and only selected the Canon printer, it worked and I've printed my first doc via Google Cloud Print.
I added a comment at github about the failure:
https://github.com/simoncadman/CUPS-Cloud-Print/issues/45
Greg -- Greg Freemyer Hi I did build both cloudprint and cupscloudprint, they are sitting in my Misc repo, the cloudprint one is from https://github.com/armooo/cloudprint
Feel free to take and I will delete ;) -- Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890) SLED 11 SP3 (x86_64) GNOME 2.28.0 Kernel 3.0.101-0.8-default up 2 days 2:23, 4 users, load average: 0.65, 0.64, 0.71 CPU Intel® B840@1.9GHz | GPU Intel® Sandybridge Mobile -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org

On Sun, Dec 29, 2013 at 12:34 AM, Malcolm <malcolmlewis@cableone.net> wrote:
On Sat 28 Dec 2013 01:43:23 PM CST, Greg Freemyer wrote:
I'm trying to create a package (RPM) in OBS for Google Cloud Print.
It sort of works now, but the setup is not yet very reliable / repeatable. This may be as good as it gets for short term. A wiki page documenting this would make it usable.
I've gone so far as to create a RPM in OBS, but it takes more manual steps than it should at this point.
============== If anyone wants to use it / help troubleshoot, this should work (all as root or with sudo in front).
zypper addrepo http://download.opensuse.org/repositories/home:gregfreemyer:Tools-for-forens... zypper refresh zypper install CUPS-Cloud-Print /usr/lib/cloudprint-cups/upgrade.py /usr/lib/cloudprint-cups/setupcloudprint.py
upgrade.py should be automatically invoked by the RPM, but it is failing for me if I try to do that. The last step is interactive, so that can't be part of the install.
Also, prior to the last step, you need to ensure you already have a printer registered with Google. (I do.)
Everything looks like it is working pretty well until the last step.. If I only install one printer on the last step, then it too worked for me.
When I tried to install all 3, it failed:
===================
sudo /usr/lib/cloudprint-cups/setupcloudprint.py root's password: Name for this user account ( eg something@gmail.com )? greg.freemyer@gmail.com Open this URL, grant access to CUPS Cloud Print, then provide the code displayed :
<snip my unique data and a URL you have to click on>
You currently have these accounts configured: greg.freemyer@gmail.com Add more accounts (Y/N)? N Add all Google Cloud Print printers to local CUPS install from greg.freemyer@gmail.com (Y/N)? Y Use a prefix for names of created printers (Y/N)? N ('Error adding: Canon_MG8200_series_2C7655', IPPError(1280, 'Success')) ('Error adding: Print_to_FedEx_Office', IPPError(1280, 'Success')) ('Error adding: Save_to_Google_Docs', IPPError(1280, 'Success')) Added 3 new printers to CUPS
=== That is reporting 3 new printers, but it also says all had an error. lpstat is reporting no printers added:
lpstat -d -p no system default destination lpstat: No destinations added.
When I re-ran setupcloudprint.py and only selected the Canon printer, it worked and I've printed my first doc via Google Cloud Print.
I added a comment at github about the failure:
https://github.com/simoncadman/CUPS-Cloud-Print/issues/45
Greg -- Greg Freemyer Hi I did build both cloudprint and cupscloudprint, they are sitting in my Misc repo, the cloudprint one is from https://github.com/armooo/cloudprint
Feel free to take and I will delete ;)
-- Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
Are you sure? I'm looking at: <https://build.opensuse.org/project/show/home:malcolmlewis:Miscellanous> and I don't see either. Greg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Greg Freemyer
-
Malcolm