Download and unzip:
I cannot post urls so replace the "_" underscores with dots where needed.
cups: db_tt/Dge8OZmo
gs: db_tt/vqmpBVSV
gtnprnt: db_tt/RBGqRRne
libs: db_tt/X2gZ1U0w
Install avahi from optware
$ ipkg install avahi
you will need to create the folders that cups needs. the bundled conf file puts the logs
$ mkdir -f /opt/logs/cups
cups also needs these two
$ mkdir -p /var/run/cups/certs
$ mkdir -p /var/cache/cups
fire up cups
$ cupsd
if it fails "ldd cupsd" and see if you are missing any libraries. Install the libraries from the libs.tar.gz
if it segvs - you may have a mismatch of libs, replace yours from libs.tar.gz - but that may break something else - so keep a backup.
Test it by going to - your router ip address may be different
http_192_168_1_1:631
password if prompted is your root password and username is root (not admin)
Add a new printer - the wizard should let you pick a driver from gutenprint.
Test it.
use the airprint-generate from tjfointaine script to create the services file that you can drop into /opt/etc/avahi/services/
If you have trouble with installing python to get this to work - copy paste the below into a XYZ.service file. change the YOURPRINTERNAME to your Printer Name as shown in CUPS - YMMV.
<?xml version="1.0" ?>
<!DOCTYPE service-group SYSTEM 'avahi-service.dtd'>
<service-group>
<name replace-wildcards="yes">AirPrint Printer Name @ %h</name>
<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>Transparent=T</txt-record>
<txt-record>URF=none</txt-record>
<txt-record>rp=printers/YOURPRINTERNAME</txt-record>
<txt-record>note=YOURPRINTERNAME</txt-record>
<txt-record>product=(GPL Ghostscript)</txt-record>
<txt-record>printer-state=3</txt-record>
<txt-record>printer-type=0x82900c</txt-record>
<txt-record>pdl=application/octet-stream,application/postscript,application/vnd.cups-raster,image/gif,image/jpeg,image/png,image/tiff,text/html,text/plain,application/vnd.cups-banner,application/vnd.cups-command,application/vnd.cups-pdf</txt-record>
<txt-record>adminurl=http_192_169_1_1:631/printers/YOURPRINTERNAME</txt-record>
</service>
start avahi
$ avahi-daemon -D
you should be able to see the printer on your ios device.
Your /opt/logs/cups/error_log should also have lots of debugging info to help figure out any problems now.
edit the /opt/etc/cups/cupsd.conf file and change the LogLevel to debug from warn.
So why do they not work out of the box from optware - my best guesses
- cups - crashes/fails because of some shared library loading/unloading or because it is linked with relocatable addresses
- gs - crashes for cups - because the default resolution is not set - I do not know if this is a bug in GS or in CUPS.
- gutenprint - I think is fine - I rebuilt because the 5.2.6 version on optware did not have my printer driver - so you may not need to use my version above.