Re: Howto: Use your Dockstar/GoFlex to enable iOS AirPrint with any printer supported by CUPS October 15, 2011 01:24PM |
Registered: 11 years ago Posts: 128 |
apt-get install cups-pdf avahi-daemon python-cups cups-driver-gutenprint apt-get install foomatic-db foomatic-db-engine foomatic-filters foomatic-filters-ppdsIf you have a HP printer you should also install hplip
apt-get install hplipNow we add a user "printerguy" who is allowed to configurre CUPS
adduser printerguy --no-create-home --shell /bin/false --ingroup lpadminThen we edit CUPS' config file
nano /etc/cups/cupsd.confafter the line "Listen /var/run/cups/cups.sock" paste this
Listen IP-OF-YOUR-DEVICE:631 PreserveJobHistory No FileDevice Yes ServerAlias *also replace
# Restrict access to the server... <Location /> Order allow,deny </Location> # Restrict access to the admin pages... <Location /admin> Order allow,deny </Location> # Restrict access to configuration files... <Location /admin/conf> AuthType Default Require user @SYSTEM Order allow,deny </Location>by
# Restrict access to the server... <Location /> Order allow,deny allow @LOCAL </Location> # Restrict access to the admin pages... <Location /admin> Order allow,deny allow @LOCAL </Location> # Restrict access to configuration files... <Location /admin/conf> AuthType Basic Require user @SYSTEM Order allow,deny allow @LOCAL </Location>and finally restart CUPS
/etc/init.d/cups restartOpen the local CUPS page in a web browser:
http://IP-OF-YOUR-DEVICE:631If you have a network printer (LAN,WiFi, JetDirect), turn it on. If your printer is USB only, connect it to your GoFlex/Dockstar.
login: printerguy password: printerguy's passwordCUPS will start looking for your printer. Select it, click next, allow sharing, and click next again. On the next page you must select the "driver". Usually there are several possibilities. If unsure, go to
/etc/init.d/avahi-daemon start mkdir /opt/airprint cd /opt/airprint wget -O airprint-generate.py --no-check-certificate https://raw.github.com/tjfontaine/airprint-generate/master/airprint-generate.py chmod +x airprint-generate.py ./airprint-generate.py -d /etc/avahi/services /etc/init.d/avahi-daemon restart ls /etc/avahi/services/you should see something like "AirPrint-Name-of-your-printer". Just in case I attached the script to this post.
Fred
Re: Howto: Use your Dockstar/GoFlex to enable iOS AirPrint with any printer supported by CUPS November 11, 2011 03:06AM |
Re: Howto: Use your Dockstar/GoFlex to enable iOS AirPrint with any printer supported by CUPS November 11, 2011 12:17PM |
Registered: 11 years ago Posts: 128 |
Re: Howto: Use your Dockstar/GoFlex to enable iOS AirPrint with any printer supported by CUPS November 11, 2011 10:14PM |
Registered: 11 years ago Posts: 501 |
Buba
Re: Howto: Use your Dockstar/GoFlex to enable iOS AirPrint with any printer supported by CUPS February 09, 2012 04:00AM |
Re: Howto: Use your Dockstar/GoFlex to enable iOS AirPrint with any printer supported by CUPS February 10, 2012 05:04PM |
Registered: 11 years ago Posts: 128 |
Buba
Re: Howto: Use your Dockstar/GoFlex to enable iOS AirPrint with any printer supported by CUPS February 12, 2012 10:39AM |
Re: Howto: Use your Dockstar/GoFlex to enable iOS AirPrint with any printer supported by CUPS February 12, 2012 11:47AM |
Registered: 11 years ago Posts: 128 |
Julien
Re: Howto: Use your Dockstar/GoFlex to enable iOS AirPrint with any printer supported by CUPS May 09, 2012 10:27PM |
Re: Howto: Use your Dockstar/GoFlex to enable iOS AirPrint with any printer supported by CUPS August 24, 2012 02:20PM |
Registered: 11 years ago Posts: 501 |
apt-get install python-lxml[if I err on my understanding of this, please advise... thanks]
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE service-group SYSTEM "avahi-service.dtd"> <service-group> <name replace-wildcards="yes">AirPrint/iOS HP_C4480 @ %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/HP_C4480</txt-record> <txt-record>note=HP Photosmart C4480</txt-record> <txt-record>product=(GPL Ghostscript)</txt-record> <txt-record>printer-state=3</txt-record> <txt-record>printer-type=0x900c</txt-record> <txt-record>pdl=application/octet-stream,application/pdf,application/postscript,application/vnd.cups-raster,image/gif,image/jpeg,image/png,image/tiff,text/html,text/plain,application/openofficeps,application/vnd.cups-banner,application/vnd.cups-pdf</txt-record> </service> </service-group>
<service-group> <name replace-wildcards="yes">HP PhotoSmart C4480 @ %h</name> <service protocol="any"> #<host-name></host-name> <type>_pdl-datastream._tcp</type> <port>9100</port> <txt-record>product=(HP Photosmart C4400 series)</txt-record> </service> </service-group>
<?xml version="1.0" standalone='no'?><!--*-nxml-*--> <!DOCTYPE service-group SYSTEM "avahi-service.dtd"> <service-group> <name replace-wildcards="yes">CUPS Admin Webif @ %h</name> <service> <type>_http._tcp</type> <port>631</port> </service> </service-group>