From Electron Cloud
Revision as of 12:17, 18 March 2007 by Ecloud (Talk | contribs) (New page: ==CUPS printers== Bonjour for Windows includes a Bonjour Printer Wizard which can find Bonjour-enabled printers on the network and automatically install them in the Printers control panel....)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

CUPS printers

Bonjour for Windows includes a Bonjour Printer Wizard which can find Bonjour-enabled printers on the network and automatically install them in the Printers control panel. I would hope that some day CUPS would register printers automatically, but for now it seems not to. I run avahi on my CUPS server; so announcing the printer was just a matter of creating a file /etc/avahi/services/laserwriter.service, like this:

<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
  <name>LaserWriter</name>
  <service>
    <type>_ipp._tcp</type>
    <port>631</port>
    <txt-record>path=/printers/LaserWriter</txt-record>
    <txt-record>rp=printers/LaserWriter</txt-record>
    <txt-record>note=Multimedia Room</txt-record>
        <txt-record>qtotal=1</txt-record>
        <txt-record>ty=Apple LaserWriter 600</txt-record>
        <txt-record>>adminurl=http://muon:631/printers/LaserWriter</txt-record>
        <txt-record>Color=F</txt-record>
        <txt-record>Duplex=F</txt-record>
        <txt-record>Bind=F</txt-record>
        <txt-record>Collate=F</txt-record>
        <txt-record>Sort=F</txt-record>
        <txt-record>Staple=F</txt-record>
        <txt-record>Punch=F</txt-record>
        <txt-record>PaperMax=legal-A4</txt-record>
  </service>
</service-group>

I figured how how based on this and the spec.