Cloud Print Server

Suggestions for features and software you would like to see in DietPi, goes here.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Cloud Print Server

Post by Sciamano »

Fourdee wrote:I really need to invest in a printer lol. Ink costs, dry up if not used, put me off.
Just buy a laser printer. Unless you have to print pictures with photographic quality, for which you need inkjet printers, laser printers are cheap to buy, and to maintain, and they don't suffer from all the problems of inkjets if used only sporadically.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Cloud Print Server

Post by Sciamano »

Fourdee wrote:Full credit to Dave Steele making this installation possible with his maintained repo.
I'm not sure if this is relevant, but I have just discovered that a cloudprint-services package is already present in the official repository.
I have no idea if it is the same as Dave Steele's repository, but still I thought you might want to check it out.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Cloud Print Server

Post by Fourdee »

Sciamano wrote:I'm not sure if this is relevant, but I have just discovered that a cloudprint-services package is already present in the official repository.
I have no idea if it is the same as Dave Steele's repository, but still I thought you might want to check it out.
Interesting and great find, this makes it available for ARM64.

Version for ARM64:

Code: Select all

root@DietPi:~# dpkg -l | grep cloudprint
ii  cloudprint                     0.11-5                       all          Google Cloud Print proxy
root@DietPi:~# uname -a
Linux DietPi 3.14.79+ #1 SMP PREEMPT Tue Feb 7 19:57:43 CET 2017 aarch64 GNU/Linux
Just needs testing install from Jessie repo.
https://github.com/Fourdee/DietPi/issue ... -292100078
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Cloud Print Server

Post by Sciamano »

Fourdee wrote:Just needs testing install from Jessie repo.
https://github.com/Fourdee/DietPi/issue ... -292100078
Tell me what to do and I will do it (although I don't think I can help with ARM64)
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Cloud Print Server

Post by Fourdee »

Sciamano wrote: Tell me what to do and I will do it (although I don't think I can help with ARM64)
Excellent, thanks.

If this works for ARMv6/7, we can assume ARM64 will be the fine as the binary/service for cloudprint appear to be functional (C2 tested).

I've updated dietpi-software and removed the Dave Steele repo. Same again if you can please, would really appreciate it:
https://github.com/Fourdee/DietPi/issue ... -291524172
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Cloud Print Server

Post by Sciamano »

It looks like something is missing:

Code: Select all

root@DietPi:~# cps-auth
-bash: cps-auth: command not found
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Cloud Print Server

Post by Fourdee »

Sciamano wrote:It looks like something is missing:

Code: Select all

root@DietPi:~# cps-auth
-bash: cps-auth: command not found
Thanks, confirmed on C2.

Looks like this is a bash script that runs a different command:
https://github.com/davesteele/cloudprin ... s-auth#L14

So the raw command is:

Code: Select all

rm /var/lib/cloudprintd/authfile.json
cloudprint -c -a /var/lib/cloudprintd/authfile.json
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Cloud Print Server

Post by Sciamano »

Still nothing:

Code: Select all

root@DietPi:~# rm /var/lib/cloudprintd/authfile.json
rm: cannot remove '/var/lib/cloudprintd/authfile.json': No such file or directory
root@DietPi:~# cloudprint -c -a /var/lib/cloudprintd/authfile.json
Google username: mygoogleusername
Password:
Traceback (most recent call last):
  File "/usr/bin/cloudprint", line 9, in <module>
    load_entry_point('cloudprint==0.11', 'console_scripts', 'cloudprint-cmd')()
  File "/usr/share/cloudprint/cloudprint/cloudprint.py", line 496, in main
    sync_printers(cups_connection, cpp)
  File "/usr/share/cloudprint/cloudprint/cloudprint.py", line 330, in sync_printers
    remote_printers = dict([(p.name, p) for p in cpp.get_printers()])
  File "/usr/share/cloudprint/cloudprint/cloudprint.py", line 177, in get_printers
    r = self.get_rest()
  File "/usr/share/cloudprint/cloudprint/cloudprint.py", line 173, in get_rest
    auth = self.get_auth()
  File "/usr/share/cloudprint/cloudprint/cloudprint.py", line 99, in get_auth
    'application/x-www-form-urlencoded')
  File "/usr/share/cloudprint/cloudprint/rest.py", line 122, in post
    return self.rest_call('POST', path, data, content_type, headers, response_type)
  File "/usr/share/cloudprint/cloudprint/rest.py", line 105, in rest_call
    raise REST.RESTException('REST Error', resp.status, data)
cloudprint.rest.RESTException: REST Error:404
Message: https://developers.google.com/accounts/docs/AuthForInstalledApps
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Cloud Print Server

Post by Fourdee »

Sciamano wrote:Still nothing:

Message: https://developers.google.com/accounts/ ... talledApps
Thanks,

Looks like outdated auth system on this version in Jessie repo.

We'll use Dave Steele's Repo for Jessie, Debian for Stretch:
https://github.com/Fourdee/DietPi/issue ... -292712002
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Cloud Print Server

Post by Sciamano »

Fourdee wrote:Looks like outdated auth system on this version in Jessie repo.

We'll use Dave Steele's Repo for Jessie, Debian for Stretch:
https://github.com/Fourdee/DietPi/issue ... -292712002
Perfect. If you need any more testing, just let me know. :)
Post Reply