Airprint auf Debian

Heut gibts ein Quick Howto, wie Ihr eurem Debian Server beibringt die Drucker via AirPrint zu teilen 🙂

Zuerteinmal müsst Ihr ein paar Pakete installieren:

apt-get install avahi-daemon cups cups-pdf python-cups

nachdem nun Cups am Start ist, müssen wir das CUPS noch konfigurieren:

nano /etc/cups/cupsd.conf

Bildschirmfoto 2014-05-15 um 20.46.43

Hier die noch die 17 editieren, damit der Zugriff nicht nur auf den Localhost beschänkt ist:

# Only listen for connections from the local machine.
Listen 631

Anschlißend diesen Teil ersetzen:

# 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>

NEU …

# 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 Default
  Require user @SYSTEM
  Order allow,deny
  Allow @Local
</Location>

Nachdem nun Cups soweit konfiguriert ist, einfach den Service neu starten:

service cups restart

Da nicht jeder in Cups rumfummel kann, muss man noch einen User der lpadmin gruppe hinzufügen

adduser felix lpadmin

Jetzt geht es zum AirPrint Teil ….

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

Jetzt nochmal ein Neustart für Cups und den avahi-daemon und alles sollte funktionieren.

service cups restart
service avahi-daemon restart

… GSCHAFFT!!!

Join the ConversationLeave a reply

Your email address will not be published. Required fields are marked *

Comment*

Name*

Website