Wiki: Google Cloud Print and Apple AirPrint

Development on core packages and the distribution goes on in here.

Wiki: Google Cloud Print and Apple AirPrint

Postby pepedog » Fri Apr 01, 2011 10:17 am

In this guide there is a few problems
http://Arch Linux ARM.com/index.php5?title=Guide:Google_Cloud_Print_and_Apple_AirPrint&redirect=no
I can get my head around a lot of things but the wiki is so annoying, plus I don't like fiddling with others work.

First for AirPrint, there must be a line in /etc/cups/cupsd.conf that is
ServerAlias *
and cups must be stopped when editing

Next, the file airprint-generate.py must have the first line changed to
#!/usr/bin/env python2

Next if this is run
airprint-generate.py -d /etc/avahi/services
it will save moving the files

Now Google Cloud, cloudprint.py must have the first line changed to
#!/usr/bin/env python2

Is this also supposed to be kept running, it doesn't demonize or finish, so maybe installing and running screen is needed?

That's all I got to say about that.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Wiki: Google Cloud Print and Apple AirPrint

Postby pepedog » Fri Apr 01, 2011 1:26 pm

I see in the guide https://github.com/armooo/cloudprint/blob/master/README.rst that cloudprint can be installed with
pip install cloudprint
So a package could be built?

Also it can be run in daemon mode, in the wiki method with /opt/cloudprint/cloudprint.py -d
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Wiki: Google Cloud Print and Apple AirPrint

Postby kmihelich » Sat Apr 02, 2011 12:20 am

Might be worth packaging, if anyone wants to tackle that project.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Wiki: Google Cloud Print and Apple AirPrint

Postby Socaltom » Thu Aug 04, 2011 7:58 pm

I thought I was going to be helpful this morning and add an airprint wiki, but someone beat me to it. :P
The python script didn't work for me. I get an error at line 25 no module named cups. Any ideas?

FWIW, I modified the example files I found on line.

$this->bbcode_second_pass_code('', '<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">AirPrint hp1200 @ %h</name> [color=#0000FF]# this is the description that will appear on the selection box
[/color]<service>
<type>_ipp._tcp</type>
<subtype>_universal._sub._ipp._tcp</subtype>
<port>631</port>
<txt-record>txtvers=1</txt-record>
<txt-record>qtotal=1</txt-record>
<txt-record>rp=printers/hp1200</txt-record> [color=#0000BF] # this is important replace hp1200 with the exact name of the Queue name in CUPS[/color]
<txt-record>ty=HP LaserJet Series PCL 4/5, 1.3</txt-record> [color=#0000BF] #more description for the printer selection box
[/color] <txt-record>note=Home</txt-record> #more description
<txt-record>product=(GPL Ghostscript)</txt-record>
<txt-record>printer-state=3</txt-record>
<txt-record>printer-type=0x3056</txt-record>
<txt-record>Transparent=T</txt-record>
<txt-record>Binary=T</txt-record>
<txt-record>Duplex=T</txt-record>
<txt-record>Copies=T</txt-record>
<txt-record>pdl=application/pdf,application/postscript,application/vnd.cups-raster,application/octet-stream,image/png</txt-record>
<txt-record>URF=none</txt-record>
</service>
</service-group>')


Here is a link to where I borrowed the original code
http://www.finnie.org/2010/11/13/airprint-and-linux/

Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side


Return to Arch Linux ARM

Who is online

Users browsing this forum: Google [Bot] and 6 guests