⬆️ ⬇️

Easy printing from mobile devices or AirPrint without AirPrint





As it turned out, not all of my friends who use tablets and smartphones for years are not aware of how to reset a Safari page to the mail, let alone how to print it. . The same can be said about the owners of Android. - Few people use this icon.

I want to share with habraoobschestvom experience rassharivaniya home printer for mobile devices. Who cares please tackle.





needed: Presence of installed CUPS (google to help) and Avahi ( here and here ) services, and of course WiFi

')

Ios



Run to the printer to see what happened.



Android

1 install Lets Print Droid

2. In the settings, add the printer "+ New Printer" -> "Enter printer adress myself".

Enter:





we test:





You can use any other application that has in the menu “Send to” or the icon



Ps For (un) happy owners of IOS6 and above.




With the introduction of the new version of IOS, the gentlemen from Cupertino changed the print format, from PDF to URF.

To be able to print under IOS6, do the following:

create the following two files on the server in the / usr / share / cups / mime / directory,

1. airprint.types

 # # "$Id: $" # # AirPrint type image/urf urf string(0,UNIRAST<00>) # # End of "$Id: $". # 




2.airprint.convs

 # # "$Id: $" # # AirPrint # Updated list with minimal set 25 Sept image/urf application/pdf 100 pdftoraster # # End of "$Id: $". # 




Restarting CUPS

  sudo /etc/init.d/cups restart 


if not installed, install

 apt-get cups-python 




Next, create a service description file for Avahi:



 wget https://raw.github.com/tjfontaine/airprint-generate/master/airprint-generate.py 




We give the right to run airprint-generate.py and run

 chmod +x airprint-generate.py ./airprint-generate.py 


we copy received

 mv AirPrint-PDF.service /etc/avahi/services/ 


and rerun and restart Avahi

 ./airprint-generate.py -d /etc/avahi/services sudo service avahi-daemon restart 




All printer ready for printing.

Proof:

Source: https://habr.com/ru/post/201332/



All Articles