Re: google cloudprint *client* for fedora?

2014-11-07 Thread Kevin Martin
On 11/06/2014 10:28 AM, Kevin Martin wrote:
> On 11/06/2014 08:26 AM, Gary Stainburn wrote:
>> On Thursday 06 November 2014 13:20:00 Neal Becker wrote:
>>> I just got a google cloud enabled printer.  Is there a _client_ for fedora
>>> to work via cups?  Thanks.
>>>
>>> --
>>> -- Those who don't understand recursion are doomed to repeat it
>>
>> I've done this on  a couple of workstations, both printing to a remote 
>> Google 
>> Cloud printer and active as a server to allow a traditional printer over 
>> Google Cloud Print.
>>
>> I can't remember how to do it, but Googling "Google Cloud Print Linux" is 
>> all 
>> I did to get started. 
>>
>> You will need to install Google Chrome too as this is what's used for both 
>> the 
>> client and server options.
>>
>> Gary
>>
> here's what I've done to allow my non-google cloud printing printer to be a 
> cloud printer:
> 
> In my case I'm using the unstable version of chrome.  I created a script 
> (start_cloud_print) that has the following information:
> 
> #!/bin/bash
> ps -ef | grep cloud-print | grep -v grep > /dev/null 2>&1
> if [ "$?" -eq "1" ]
>  then
>
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/google/chrome:/opt/google/chrome-unstable
>   /opt/google/chrome-unstable/chrome
> --type=service --enable-cloud-print-proxy --no-service-autorun --noerrdialogs 
> --user-data-dir=/usr/local/etc/googlecloudprint/ &
> fi
> 
> Since I run multiple terminal windows I only want my this to run once.  Then 
> I have .bashrc exec start_cloud_print.  In this way I
> ensure that my cloud printer get's started anytime I'm logged into my 
> computer.  I suppose I could write  a systemd startup script
> for this so*I wouldn't have to be logged in and this would run every time I 
> restarted my laptop but...
> 
> Kevin
> 
forgot to add that you have to have the Service State file setup as well.  Mine 
looks like this:

$ cat /usr/local/etc/googlecloudprint/Service\ State

{
  "cloud_print": {
"email": "m...@gmail.com",
"auth_token":
"DQAAAN8AAACD4CO07jI0TAbc831ddbtOTS6zRcTZ7iysTyIwuvKugiSD32YjpAo4yEjnBRsw_P8k5Rv_9w_9tFj8ZNPh6vcKRNfdRmo1sWIYfq5iKeggd1LElrYVt2PDXd7BQHWXW_Ocx0x6X4ADBRQGVfr-xyeO5KpGuSzpwwfcbsc3czckuo8Kjx_KaeuaB77mWKDXK1X4ltPbA8oXQDPYe9eAb3JucKNFzbyHRZp4SH0PTPJkLmKqHsh9nM5QBIXBrlONH-6egyJxvI0emJla4BkuVtIQTIFfAZo7jldPqTfJHfnAw",
"xmpp_auth_token":
"DQAAAN8AAACD4CO07jI0TYdBJcPQnlmtOXyczeufxddTyIwuvKugiSD32YjpAo4yEjnBRsw_P8k5Rv_9w_9tFj8ZNPh6vc5K9D95MN89beiCyE9VPaHMlAnyC87BK1Cz-mwAR_2Q2t0IW4G0bZV2B3srHNm0uAZYCtbuoNVXpvmj87zMZDjHWGsCBdT8q3GcqeSfUSV_tdFkEKwo2jZeub1Vh6QR7eZlTNZ74kHyPavTwMGGs_Cxmn4X43AFV8RFYdyT3lQqFWRkQw6VIBM23ybJTmMEiPMde3EvlDklaMZ3l5cWivJQ",
"proxy_id": "MyFamilyCanonMX700",
"enabled": true
  }
}

Kevin
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: google cloudprint *client* for fedora?

2014-11-07 Thread Tim Waugh
On Thu, 2014-11-06 at 15:13 -0500, Matthew Miller wrote:
> This requires Gnome Online Accounts, right?

It does.

> I'd love to try it but last
> I checked, GOAL still doesn't work with Google's two-factor auth.

It's working for me.

Tim.
*/



signature.asc
Description: This is a digitally signed message part
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: google cloudprint *client* for fedora?

2014-11-06 Thread Matthew Miller
On Thu, Nov 06, 2014 at 05:33:13PM +, Tim Waugh wrote:
> In GTK+ 3.14, the print dialog is the client.
> http://cyberelk.net/tim/2014/01/31/printing-to-google-cloud-print-from-gtk/

This requires Gnome Online Accounts, right? I'd love to try it but last
I checked, GOAL still doesn't work with Google's two-factor auth.

-- 
Matthew Miller

Fedora Project Leader
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: google cloudprint *client* for fedora?

2014-11-06 Thread Tim Waugh
On Thu, 2014-11-06 at 08:20 -0500, Neal Becker wrote:
> I just got a google cloud enabled printer.  Is there a _client_ for fedora to 
> work via cups?  Thanks.

In GTK+ 3.14, the print dialog is the client.

http://cyberelk.net/tim/2014/01/31/printing-to-google-cloud-print-from-gtk/

Tim.
*/



signature.asc
Description: This is a digitally signed message part
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: google cloudprint *client* for fedora?

2014-11-06 Thread Gary Stainburn
Looks like I download the CUPSPRINT RPM rather than using a repository.

Hope this helps

[gary@gary ~]$ rpm -qi cupscloudprint-20140814-1
Name: cupscloudprint
Version : 20140814
Release : 1
Architecture: noarch
Install Date: Wed 27 Aug 2014 09:41:56 BST
Group   : Unspecified
Size: 3485034
License : GPLv3+
Signature   : RSA/SHA1, Thu 14 Aug 2014 18:04:32 BST, Key ID a036d4b9c5541d9d
Source RPM  : cupscloudprint-20140814-1.src.rpm
Build Date  : Thu 14 Aug 2014 18:04:31 BST
Build Host  : b3bc0dc8e769
Relocations : (not relocatable)
URL : http://ccp.niftiestsoftware.com
Summary : Print via Google Cloud print using CUPS
Description :
Google Cloud Print driver for UNIX-like operating systems.
It allows any application which prints via CUPS to print to Google Cloud
Print directly.
[gary@gary ~]$ 
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: google cloudprint *client* for fedora?

2014-11-06 Thread Gary Stainburn
On Thursday 06 November 2014 14:26:38 Gary Stainburn wrote:
> On Thursday 06 November 2014 13:20:00 Neal Becker wrote:
> > I just got a google cloud enabled printer.  Is there a _client_ for
> > fedora to work via cups?  Thanks.
> >
> > --
> > -- Those who don't understand recursion are doomed to repeat it
>
> I've done this on  a couple of workstations, both printing to a remote
> Google Cloud printer and active as a server to allow a traditional printer
> over Google Cloud Print.
>
> I can't remember how to do it, but Googling "Google Cloud Print Linux" is
> all I did to get started.
>
> You will need to install Google Chrome too as this is what's used for both
> the client and server options.
>
> Gary

Just had a quick look at one of by boxes and found the following which I used 
to set up a traditional printer as a cloud printer.

The bit you want is the other way round, to be able to print to an already 
configured GoogleCloud printer. For this you need to install the following 
RPM

[root@lou ~]# rpm -qa|grep -i cloud
cupscloudprint-20140814-1.noarch

Not sure which repository that wa from but may have been from the Google one 
shown below.


[root@lou ~]# cat /etc/yum.repos.d/google-chrome.repo 
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
[root@lou ~]# rpm -qa|grep -i google
google-chrome-beta-39.0.2171.19-1.x86_64
[root@lou ~]# ll Downloads/
total 57512
-rw-r--r-- 1 root root 1722 Jul  2 17:05 generate_cloudprint_config.py.zip
-rw-r--r-- 1 root root 5025 Jul  2 17:01 
google-chrome-stable_current_x86_64.rpm
[root@lou ~]# 

(There was a problem with the stable version which is why I then removed it 
and installed the beta version. Can't remember what the problem was though.

Then under the user I am using for the service (gary) I did

wget 
http://www.google.com/support/enterprise/static/chromeos/docs/admin/en/generate_cloudprint_config.py.zip
unzip generate_cloudprint_config.py.zip 
chmod 770 generate_cloudprint_config.py
./generate_cloudprint_config.py 


Once the printers were set up an working I created the service unit file and 
started it.

[root@lou ~]# 
cat /etc/systemd/system/multi-user.target.wants/googleCloudPrint.service
[Unit]
Description=Google Chrome running headless as Cloud Print Server
After=network.target

[Service]
Type=simple
User=gary
Group=gary
WorkingDirectory=/home/gary/.GoogleCloudPrint
ExecStart=/usr/bin/google-chrome  --type=service --enable-cloud-print-proxy 
--no-service-autorun --log-level 
2 --enable-logging=stderr --user-data-dir=/home/gary/.GoogleCloudPrint
Restart=always
StandardInput=null
StandardOutput=syslog
StandardError=inherit
SyslogIdentifier=CloudPrint
SyslogFacility=lpr
SyslogLevel=err
PrivateTmp=true

[Install]
WantedBy=multi-user.target
[root@lou ~]# 


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: google cloudprint *client* for fedora?

2014-11-06 Thread Kevin Martin
On 11/06/2014 08:26 AM, Gary Stainburn wrote:
> On Thursday 06 November 2014 13:20:00 Neal Becker wrote:
>> I just got a google cloud enabled printer.  Is there a _client_ for fedora
>> to work via cups?  Thanks.
>>
>> --
>> -- Those who don't understand recursion are doomed to repeat it
> 
> I've done this on  a couple of workstations, both printing to a remote Google 
> Cloud printer and active as a server to allow a traditional printer over 
> Google Cloud Print.
> 
> I can't remember how to do it, but Googling "Google Cloud Print Linux" is all 
> I did to get started. 
> 
> You will need to install Google Chrome too as this is what's used for both 
> the 
> client and server options.
> 
> Gary
> 
here's what I've done to allow my non-google cloud printing printer to be a 
cloud printer:

In my case I'm using the unstable version of chrome.  I created a script 
(start_cloud_print) that has the following information:

#!/bin/bash
ps -ef | grep cloud-print | grep -v grep > /dev/null 2>&1
if [ "$?" -eq "1" ]
 then
   
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/google/chrome:/opt/google/chrome-unstable 
 /opt/google/chrome-unstable/chrome
--type=service --enable-cloud-print-proxy --no-service-autorun --noerrdialogs 
--user-data-dir=/usr/local/etc/googlecloudprint/ &
fi

Since I run multiple terminal windows I only want my this to run once.  Then I 
have .bashrc exec start_cloud_print.  In this way I
ensure that my cloud printer get's started anytime I'm logged into my computer. 
 I suppose I could write  a systemd startup script
for this so*I wouldn't have to be logged in and this would run every time I 
restarted my laptop but...

Kevin
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: google cloudprint *client* for fedora?

2014-11-06 Thread Gary Stainburn
On Thursday 06 November 2014 13:20:00 Neal Becker wrote:
> I just got a google cloud enabled printer.  Is there a _client_ for fedora
> to work via cups?  Thanks.
>
> --
> -- Those who don't understand recursion are doomed to repeat it

I've done this on  a couple of workstations, both printing to a remote Google 
Cloud printer and active as a server to allow a traditional printer over 
Google Cloud Print.

I can't remember how to do it, but Googling "Google Cloud Print Linux" is all 
I did to get started. 

You will need to install Google Chrome too as this is what's used for both the 
client and server options.

Gary
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


google cloudprint *client* for fedora?

2014-11-06 Thread Neal Becker
I just got a google cloud enabled printer.  Is there a _client_ for fedora to 
work via cups?  Thanks.

-- 
-- Those who don't understand recursion are doomed to repeat it

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org