How To Install Airprint On Hp Printer
Download this commodity as a single PDF document
Contents
- i Introduction
- 2 Sofware:
- three Hardware
- 4 Installation
- 5 Configuration
- half-dozen Links
- 6.one factro said ...
- 6.2 Raqel said ...
- 6.3 Lala said ...
- vi.four Luciano said ...
- 6.5 John said ...
- 6.vi srott said ...
- 6.7 Rick said ...
- half dozen.8 YazzY said ...
Introduction
AirPrint is a wireless printing engineering for iOS devices.
This HowTo volition explain how to enable AirPrint on any printer that is supported by CUPS.
The idea behind is that avahi sends announcements which make iOS recall that the printer is AirPrint compatible.
Of course this works only for iOS versions that support AirPrint.
Sofware:
- Debian Linux Wheezy
- CUPS ane.5.3
Hardware
- Epson Stylus Photo PX 720WD
Installation
Beginning we need to install some packages.
# apt-get install cups-pdf avahi-daemon python-cups cups-driver-gutenprint # apt-get install foomatic-db foomatic-db-engine foomatic-filters
If you have a HP printer you should also install hplip
# apt-get install hplip
Configuration
Edit the CUPS' config file
nano /etc/cups/cupsd.conf
later on the line "Mind /var/run/cups/cups.sock" paste this
Heed IP-OF-YOUR-CUPS-SERVER:631 PreserveJobHistory No FileDevice Yes ServerAlias *
And supplant:
# Restrict access to the server... <Location /> Lodge allow,deny </Location> # Restrict access to the admin pages... <Location /admin> Social club let,deny </Location> # Restrict access to configuration files... <Location /admin/conf> AuthType Default Require user @SYSTEM Order allow,deny </Location>
With post-obit:
# Restrict access to the server... <Location /> Order allow,deny allow @LOCAL </Location> # Restrict access to the admin pages... <Location /admin> Lodge permit,deny allow @LOCAL </Location> # Restrict access to configuration files... <Location /admin/conf> AuthType Bones Crave user @SYSTEM Order allow,deny allow @LOCAL </Location>
Create new mime files - This is needed for iOS 6 to recognize CUPS print shares!
# echo "image/urf urf string(0,UNIRAST<00>)" > /usr/share/cups/mime/airprint.types # echo "paradigm/urf application/pdf 100 pdftoraster" > /usr/share/cups/mime/airprint.convs
Restart CUPS:
/etc/init.d/cups restart
Open the local CUPS page in a web browser:
http://IP-OF-YOUR-CUPS-SERVER:631
If yous have a network printer (LAN,WiFi, JetDirect), turn information technology on. If your printer is USB only, connect it to your CUPS server.
Go to "Assistants" and click on "Add Printer".
When asked for credentials use
login: root password: root's password
CUPS will start looking for your printer. Select information technology, click next, permit sharing, and click next again.
On the adjacent page you must select the "driver". Ordinarily there are several possibilities.
If unsure, go to http://www.openprinting.org and see which PPD works best with you printer.
For HP printers always go with hpcups. Finish the installation.
Now go to "Printer" in the lesser correct of the page, press the "Maintenance" driblet-downwards menu and select "Print Test Page" to brand sure information technology works properly.
With the aid of Timothy J Fontaine's python script, nosotros can generate avahi announcements that will make iOS remember that our printer is AirPrint capable.
All you lot need to exercise is:
# /etc/init.d/avahi-daemon start # mkdir /opt/airprint # cd /opt/airprint # wget -O airprint-generate.py --no-check-document 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 come across something like "AirPrint-Name-of-your-printer".
Just in case I attached the script to this mail.
On the iOS side there's nothing yous really need to configure.
Merely go to an app that supports printing, for example mail or goodreader and select print.
Everything works out of the box.
Links
The original howto which first appeared on the Arch Linux ARM wiki: http://archlinuxarm.org/support/guides/applications/cups-apple tree-airprint
That's all folks.
Marcin
<comments />
factro said ...
Thank you sooo much...:D..information technology works
Raqel said ...
<comment date="2013-01-08T20:03:02Z" name="Raqel"> The developer reelesas of Os/X had support for exposing CUPS queues as AirPrint queues. Apple pulled that support. As virtually equally anyone can tell there was no technical reason for that. Then speculation is rampant that the removal was patent-related. </annotate>
Lala said ...
<comment engagement="2013-01-09T06:49:02Z" name="Lala"> This is one of those things where you could keep aidndg to a listing for days even though I'm quite happy with the current iOS.1) I recollect my number one is the multi-tasking system. Yep, we now have multi-tasking only information technology's a bit clunky. I desire the power to specify which Apps volition stay in the background. I also want to be able to clear out everything hands, rather than accept to cease each App individually. I also wants some fast way of switching Apps possibly a three finger swipe as has been rumoured.two) While I might not apply it, the lack of a today screen is ridiculous.Bob </comment>
Luciano said ...
<comment date="2013-01-10T11:10:09Z" name="Luciano"> The purchases I brand are etnierly based on these manufactures. </comment>
John said ...
<annotate engagement="2013-02-07T01:49:52Z" name="John"> This works perfectly, still may I suggest at line:
Listen IP-OF-YOUR-DEVICE:631
"IP of cups server" or something similar
When I showtime saw it, I thought you meant IP of the printer! </comment>
srott said ...
<comment engagement="2013-02-08T18:09:47Z" name="srott"> I had to use Mind 0.0.0.0:631
because of dhcp
</annotate>
Rick said ...
<comment appointment="2013-02-10T19:nineteen:45Z" name="Rick"> Howdy and thank you for your guide. Every bit John mentions the "IP-OF-YOUR-DEVICE" tin easily exist understood as IP of the printer...
Anyway, I got an issue. Even though I find the printer on my iPhone at present I'm not getting anything printed.
http://pastebin.com/y6uuBzm1
Whatever thoughts?
All the best, Rick </annotate>
YazzY said ...
<comment date="2013-02-11T09:35:49Z" proper noun="YazzY" signature="YazzY"> Thanks. I changed that config line to IP-OF-YOUR-CUPS-SERVER which indeed makes more sense. </comment>
Source: https://www.ezunix.org/index.php?title=Enable_iOS_AirPrint_with_any_printer_supported_by_CUPS
Posted by: greenequareatunto.blogspot.com
0 Response to "How To Install Airprint On Hp Printer"
Post a Comment