From owner-freebsd-questions@FreeBSD.ORG Fri Oct 17 21:00:34 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFF7E1065687 for ; Fri, 17 Oct 2008 21:00:34 +0000 (UTC) (envelope-from ajphanks@comcast.net) Received: from QMTA05.westchester.pa.mail.comcast.net (qmta05.westchester.pa.mail.comcast.net [76.96.62.48]) by mx1.freebsd.org (Postfix) with ESMTP id 63E6E8FC1C for ; Fri, 17 Oct 2008 21:00:34 +0000 (UTC) (envelope-from ajphanks@comcast.net) Received: from OMTA03.westchester.pa.mail.comcast.net ([76.96.62.27]) by QMTA05.westchester.pa.mail.comcast.net with comcast id Tmtm1a0050bG4ec55wqYH7; Fri, 17 Oct 2008 20:50:32 +0000 Received: from amailcenter22.comcast.net ([204.127.225.122]) by OMTA03.westchester.pa.mail.comcast.net with comcast id TwqW1a00M2f4SHo3PwqXrp; Fri, 17 Oct 2008 20:50:31 +0000 X-Authority-Analysis: v=1.0 c=1 a=10SHvqaCvoUA:10 a=svVtg53j9BwA:10 a=XudNOOl3m79mKpGvKxcA:9 a=eKUQMle8M47PxZR9n70A:7 a=QgoCbUflNwWOoteMYC4TyYjhoW0A:4 a=OyOq_G8mXAEA:10 a=si9q_4b84H0A:10 a=gi0PWCVxevcA:10 a=GJRVQQjnnYzsaflg_OkA:9 a=8QJjmXWThrov2Pa-dDIA:7 a=AlvFFmMff3g_nK2C2y5CUSd1IU4A:4 a=37WNUvjkh6kA:10 Received: from [149.128.8.243] by amailcenter22.comcast.net; Fri, 17 Oct 2008 20:50:29 +0000 From: ajphanks@comcast.net To: Warren Block Date: Fri, 17 Oct 2008 20:50:29 +0000 Message-Id: <101720082050.20434.48F8FA950007FF1800004FD222155786749C05020E089F060E@comcast.net> X-Mailer: AT&T Message Center Version 1 (Oct 30 2007) X-Authenticated-Sender: YWpwaGFua3NAY29tY2FzdC5uZXQ= MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 17 Oct 2008 22:08:19 +0000 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Printing to a Lanier LD160c does not work X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2008 21:00:34 -0000 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 > 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