Posts tagged ‘cups’

CUPS auf dem Raspi installieren, mit iOS drucken

Um vom iPhone und iPad drucken zu können, habe ich heute meinen Raspi (der in der Unterversorgung hängt und damit 24/7 läuft) mit CUPS versehen. Ich bin dabei der Anleitung von https://www.elektronik-kompendium.de/sites/raspberry-pi/2007081.htm gefolgt, es lief ohne Probleme.

Als etwas komplizierter hat sich die Duplizierung eines Druckers erwiesen. Ich habe sowohl die entsprechende ppd-Datei als auch den Eintrag in der printers.conf angepasst, jedoch sehen die iOS-Geräte nur den ersten Drucker.

Die Lösung dazu habe ich auf https://www.johnlose.de/2018/02/drucker-airprint-faehig-machen-auf-ubuntu-16-04-airprint-cups-ubuntu-xenial/ gefunden: der avahi-Daemon war noch nicht vollständig konfiguriert, der die Bonjour-Erkennung übernimmt.

Mit wget https://raw.githubusercontent.com/tjfontaine/airprint-generate/master/airprint-generate.py kann man jedoch ein Python-Skript herunterladen, das die Erzeugung der Drucker-Dateien übernimmt, die man dann nach /etc/avahi/services verschiebt. Nach dem Neustart des Dienstes mittels /etc/init.d/avahi-daemon restart findet das iPhone dann auch den Drucker vie Airprint, einmal für einseitig, einmal für zweiseitig.

Update: Aktuell druckt der Drucker nur über den einen nicht-AirPrint-Server, warum weiß ich noch nicht.

Uwe

Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined. Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.

More Posts - Website

Printing from iOS via Raspberry Pi

Today I successfully managed to configure my Rapsberry Pi in such way, that I can print on my HP LaserJet 4100 from my iOS devices. I followed the instructions from http://rohankapoor.com/2012/06/configuring-the-raspberry-pi-as-an-airprint-server/. Be aware that for iOS 6 some adjustments need to be made, see the end of the instructions.

Besides the configuration instructions on the above mentioned page I had to enable the IPv6 privacy extensions, since cups gave me the following errors in /var/log/cups/error_log:


E [05/Jan/2013:19:23:40 +0100] Unable to open listen socket for address [v1.::1]
:631 - Address family not supported by protocol.
E [05/Jan/2013:19:24:57 +0100] Avahi client failed, closing client to allow a cl
ean restart
E [05/Jan/2013:19:26:24 +0100] Unable to open listen socket for address [v1.::1]
:631 - Address family not supported by protocol.

To configure these extensions I added the following lines to /etc/sysctl.conf:


net.ipv6.conf.default.use_tempaddr=2
net.ipv6.conf.eth0.use_tempaddr = 2

The last step was then to change the IP address to static (should not be necessary, since iOS should be able to find the printserver anyway, but one never knows…) following the instructions from http://www.penguintutor.com/blog/viewblog.php?blog=6306

German summary: Um mit meinem alten HP Laserjet 4100 vom iPad drucken zu können, habe ich einen Raspberry Pi nach einer Anleitung im Internet konfiguriert.

Uwe

Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined. Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.

More Posts - Website