Diff for /wikisrc/users/jruoho/clp-315w.mdwn between versions 1.8 and 1.9

version 1.8, 2011/06/08 14:53:51 version 1.9, 2011/06/13 12:00:05
Line 48  Note the permissions: Line 48  Note the permissions:
         # chown root:wheel /usr/local/share/*          # chown root:wheel /usr/local/share/*
         # chmod 0444 /usr/local/share/samsung*          # chmod 0444 /usr/local/share/samsung*
   
   I used the following as the [PostScript printer
   description](http://en.wikipedia.org/wiki/PostScript_Printer_Description)
   (PPD) file. In order to avoid wasting the color toner cartridges, I used two
   separate files for monochrome and color setup:
   
           # cd /tmp/foo2zjs/PPD
           # cp Samsung-CLP-310.ppd /usr/local/share/samsung-mono.ppd
           # cp Samsung-CLP-310.ppd /usr/local/share/samsung-color.ppd
   
           # chown root:wheel /usr/local/share/*
           # chmod 0444 /usr/local/share/samsung*
   
   By default, the used PPD file does not use colors. This was solved by
   editing the `samsung-color.ppd` file:
   
           # diff -ur Samsung-CLP-310.ppd /usr/local/share/samsung-color.ppd
   
           --- Samsung-CLP-310.ppd 2011-03-08 09:01:45.000000000 +0200
           +++ samsung-color.ppd   2011-03-12 11:02:17.000000000 +0200
           @@ -98,7 +98,7 @@
            *OpenUI *ColorMode/Color Mode: PickOne
            *FoomaticRIPOption ColorMode: enum CmdLine A
            *OrderDependency: 120 AnySetup *ColorMode
           -*DefaultColorMode: Monochrome
           +*DefaultColorMode: Color
            *ColorMode Color/Color: "%% FoomaticRIPOptionSetting: ColorMode=Color"
            *FoomaticRIPOptionSetting ColorMode=Color: "-c "
            *ColorMode Monochrome/Monochrome: "%% FoomaticRIPOptionSetting:
            *ColorMode=Monochrome"
   
   The following network setup was used: one host named `print.lan` was
   dedicated to forward the printing requests to the printer or `printer.lan`. 
   This way all hosts inside the LAN can easily use the printer. Two entries
   were required for the [[!template id=man name="printcap" section="5"]] file:
   
           # Color (default; just 'lpr').
           #
           lp|rp:\
                   :lp=:\
                   :rp=lp:\
                   :rm=printer.lan:\
                   :lf=/var/log/lpd-errs:\
                   :sd=/var/spool/output/lpd:\
                   :af=/usr/local/share/samsung-color.ppd:\
                   :if=/usr/pkg/bin/foomatic-rip:\
                   :mx#0:
   
           # Monochrome ('lpr -P lpm').  
           #
           lpm|rpm:\
                   :lp=:\
                   :rp=lp:\
                   :rm=printer.lan:\
                   :lf=/var/log/lpd-errs:\
                   :sd=/var/spool/output/lpd:\
                   :af=/usr/local/share/samsung-mono.ppd:\ 
                   :if=/usr/pkg/bin/foomatic-rip:\
                   :mx#0:
   
   Finally, enable [[!template id=man name="lpd" section="8"]] in
   [[!template id=man name="rc.conf" section="5"]]:
   
           lpd=YES
           lpd_flags="-r -n 2"
   
 TBD.  TBD.

Removed from v.1.8  
changed lines
  Added in v.1.9


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