Annotation of wikisrc/tutorials/how_to_setup_cups_in_netbsd.mdwn, revision 1.2

1.2     ! schmonz     1: **Contents**
        !             2: 
        !             3: [[!toc levels=2]]
        !             4: 
        !             5: #  Introduction
        !             6: 
        !             7: The Common Unix Printing System (CUPS) is a modular printing system for Unix-like computer operating systems that allows a computer to act as a powerful print server. A computer running CUPS is a host which can accept print jobs from client computers, process them, and send them to the appropriate printer. More information regarding the architecture of CUPS can be found [here](http://en.wikipedia.org/wiki/Common_Unix_Printing_System). 
        !             8: 
        !             9: To check whether your printer works with CUPS and to what extent, you may visit the [OpenPrinting database](http://www.linuxprinting.org/printer_list.cgi). 
        !            10: 
        !            11: #  Install CUPS
        !            12: 
        !            13: Assuming your [[pkgsrc/pkgsrc]] tree lies at `/usr/pkgsrc`, type: 
        !            14:     
        !            15:     # cd /usr/pkgsrc/print/cups
        !            16:     # make install
        !            17:     
        !            18: 
        !            19: #  Modify rc.conf
        !            20: 
        !            21: Next copy cupsd startup script at /etc/rc.d: 
        !            22:     
        !            23:     # cp /usr/pkg/share/examples/rc.d/cupsd /etc/rc.d
        !            24:     
        !            25: 
        !            26: Then add the following line to your /etc/rc.conf file: 
        !            27:     
        !            28:     cupsd=YES
        !            29:     
        !            30: 
        !            31: And start the CUPS daemon, with: 
        !            32:     
        !            33:     # /etc/rc.d/cupsd start
        !            34:     Starting cupsd.
        !            35:     #
        !            36:     
        !            37: 
        !            38: #  Install Foomatic PPD collection
        !            39: 
        !            40: The Foomatic PPD collection includes suitable PPDs for printers listed in the Foomatic printer/driver database. Together with the foomatic-filters package, this collection of PPDs allows many non-PostScript printers to function as if they were [PostScript](http://en.wikipedia.org/wiki/PostScript) printers: 
        !            41:     
        !            42: # cd /usr/pkgsrc/print/foomatic-ppds
        !            43:     # make install
        !            44:     
        !            45: 
        !            46: The following package adds Foomatic PPDs to the CUPS PPD database: 
        !            47:     
        !            48:     # cd /usr/pkgsrc/print/foomatic-ppds-cups
        !            49:     # make install
        !            50:     
        !            51: 
        !            52: #  Setup CUPS
        !            53: 
        !            54: Open a web browser and type in the address/location bar: 
        !            55:     
        !            56:     http://localhost:631
        !            57:     
        !            58: 
        !            59: You will enter a web-based interface where you can manage your printing system (add printers, etc). 
        !            60: 
        !            61: To print using cups from the command line without further modifications you have to use **/usr/pkg/bin/lpr**. Using simply **lpr** will not print using cups but the default NetBSD printing system. The same apply to the spool queue examination command **lpq**. 
        !            62: 
        !            63: #  Network configuration
        !            64: 
        !            65: ##  Server side
        !            66: 
        !            67: ##  Client side
        !            68: 
        !            69: #  Documentation
        !            70: 
        !            71:   * [OpenPrinting CUPS Quick Start](http://www.linux-foundation.org/en/OpenPrinting/Database/CUPSDocumentation)
        !            72:   * [BSDnexus forums / CUPS Howto](http://forums.bsdnexus.com/viewtopic.php?id=36)
        !            73: 
        !            74: #  Screenshots
        !            75: 
        !            76: [![][24]][25]
        !            77: 
        !            78:    [24]: /images/120px-Print_CUPS_5.jpg
        !            79:    [25]: /images/Print_CUPS_5.jpg (Print CUPS 5.jpg)
        !            80: 
        !            81: Web interface 
        !            82: 
        !            83: #  Notes
        !            84: 
        !            85: ##  Permissions
        !            86: 
        !            87: Just for the record (I'm not sure where this fits in): To make it print, I had to 
        !            88:     
        !            89:     chown lp /dev/ulpt0 # usb        
        !            90:     
        !            91: 
        !            92: and install print/hpijs for my Deskjet (it is used by gs via the foomatic thing), then set some additional options in the web interface, e.g. a4 paper size. Conclusion: The web interface sucks, looking into the logs is indispensable. 
        !            93: 
        !            94: ##  BSD lpr
        !            95: 
        !            96: I think I no longer need the BSD lpr, so i just did this to avoid confusion: 
        !            97:     
        !            98:     # chmod -x /usr/bin/lp*
        !            99:     # chmod -x /usr/sbin/lp*
        !           100:     
        !           101: 
        !           102: ##  HP Printer
        !           103: 
        !           104: To use HP printers (like DeskJet, OfficeJet, PhotoSmart, Business InkJet, and some LaserJet models) and to not have this kind of error **/usr/pkg/libexec/cups/filter/foomatic-rip failed**, you need to install another package named hpijs : 
        !           105:     
        !           106:     # cd /usr/pkgsrc/print/hpijs
        !           107:     # make install clean clean-depends
        !           108:     
        !           109: 
        !           110: #  See also
        !           111: 
        !           112:   * [[Cups](http://www.cups.org/) 
        !           113: 

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb