Date: Fri, 17 Oct 2008 20:50:29 +0000 From: ajphanks@comcast.net To: Warren Block <wblock@wonkity.com> Cc: freebsd-questions@freebsd.org Subject: Re: Printing to a Lanier LD160c does not work Message-ID: <101720082050.20434.48F8FA950007FF1800004FD222155786749C05020E089F060E@comcast.net>
next in thread | raw e-mail | index | archive | help
I have tried the reccomendations that you guys have suggested with no luck. Is there a site that I could get some sample filters I could try? I have tried a few that were in the freebsd corporate guide. This printer will work from Windows printer spooler and this BSD box can print to a HP just fine. Here is my current printcap. corp-admin|hp|laserjet|Hewlett Packard LaserJet 5Si:\ :lp=\ :sd=/var/spool/output/corp-admin:\ :rm=corp-admin:\ :lf=/var/log/lpd-errs:\ :if=/usr/local/libexec/crlfilter:\ :sh:\ :tr=\f:\ :mx#0: admincolor|LANIER LD160c RPCS:\ :lp=\ :mx#0:\ :sd=/var/spool/output/admincolor:\ :rm=admincolor:\ :lf=/var/log/lpd-errs:\ :if=/usr/local/libexec/crfilter:\ :sh:\ :tr=\f: And here is the filter #!/bin/sh # /usr/local/libexec/crlfilter # # simple parlor trick to add CR to LF for printer # Every line of standard input is printed with CRLF # attached. # awk '{printf "%s\r\n", $0}' - -------------- Original message -------------- From: Warren Block <wblock@wonkity.com> > On Thu, 16 Oct 2008, ajphanks@comcast.net wrote: > > > I am trying to setup a Lanier LD160c (admincolor) that has a network > > interface. I am new to FreeBSD and tried to follow the handbook. I > > am able to print to a HP 5SI (corp-admin) with no problems. There are > > no errors in the lpd-errs and the file is drained from the queue, but > > the printer does not print anything. And this is a working printer to > > Windows. lpr -P admincolor testfile.txt > > > > printcap: > > corp-admin|hp|laserjet|Hewlett Packard LaserJet 5Si:\ > > :lp=\ > > :sd=/var/spool/output/corp-admin:rm=corp-admin:\ > > :lf=/var/log/lpd-errs:\ > > :if=/usr/local/libexec/crlfilter:sh:tr=\f:mx#0: > > > > admincolor|hp|laserjet|LANIER LD160c RPCS:\ > > :lp=\ > > :sd=/var/spool/output/admincolor:rm=admincolor:\ > > :lf=/var/log/lpd-errs: > > Note here that in the second entry you don't have the :sh: and :mx#0: > entries. No :if=: either, but maybe that's because you don't need an > input filter for this printer. > > At first guess, this printer may be touchy about the print queue name. > That's the :rp=: parameter, which is not here at all. There are a > couple of KB entries on the Lanier site that say to use "lp". > > printcap entries are easier to read if you put one option per line: > > admincolor:\ > :lp=:\ > :sh:\ > :mx#0:\ > :rm=admincolor:\ > :rp=lp:\ > :sd=/var/spool/output/admincolor:\ > :lf=/var/log/lpd-errs: > > -Warren Block * Rapid City, South Dakota USA
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?101720082050.20434.48F8FA950007FF1800004FD222155786749C05020E089F060E>