From owner-freebsd-questions@FreeBSD.ORG Fri Oct 24 05:23:00 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 35C35106566B for ; Fri, 24 Oct 2008 05:23:00 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA09.westchester.pa.mail.comcast.net (qmta09.westchester.pa.mail.comcast.net [76.96.62.96]) by mx1.freebsd.org (Postfix) with ESMTP id D1EBB8FC26 for ; Fri, 24 Oct 2008 05:22:59 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA05.westchester.pa.mail.comcast.net ([76.96.62.43]) by QMTA09.westchester.pa.mail.comcast.net with comcast id WTMJ1a01X0vyq2s59VNzkh; Fri, 24 Oct 2008 05:22:59 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA05.westchester.pa.mail.comcast.net with comcast id WVNy1a0012P6wsM3RVNydy; Fri, 24 Oct 2008 05:22:59 +0000 X-Authority-Analysis: v=1.0 c=1 a=10SHvqaCvoUA:10 a=svVtg53j9BwA:10 a=6I5d2MoRAAAA:8 a=QycZ5dHgAAAA:8 a=Wjpxc-p6y18TbxriMgAA:9 a=lXPRfchNUs_K9wWZIjUA:7 a=vDZ2cwmha0EA5SnGAEbfOrkUsk8A:4 a=EoioJ0NPDVgA:10 a=si9q_4b84H0A:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id DCF67C9432; Thu, 23 Oct 2008 22:22:57 -0700 (PDT) Date: Thu, 23 Oct 2008 22:22:57 -0700 From: Jeremy Chadwick To: Martin Alejandro Paredes Sanchez Message-ID: <20081024052257.GA5231@icarus.home.lan> References: <101620082036.391.48F7A5DA0009DFCD0000018722120207849C05020E089F060E@comcast.net> <20081016212000.GA3960@icarus.home.lan> <200810232142.41941.mapsware@prodigy.net.mx> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200810232142.41941.mapsware@prodigy.net.mx> User-Agent: Mutt/1.5.18 (2008-05-17) 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, 24 Oct 2008 05:23:00 -0000 On Thu, Oct 23, 2008 at 09:42:41PM -0700, Martin Alejandro Paredes Sanchez wrote: > El Jue 16 Oct 2008, Jeremy Chadwick escribió: > > On Thu, Oct 16, 2008 at 08:36:42PM +0000, 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: > > > > If this printer is hooked up on the network (e.g. via Ethernet), I > > believe you need to set the lp variable to the hostname or IP address of > > the printer, e.g.: > > > > admincolor|hp|laserjet|LANIER LD160c RPCS:\ > > > >       :lp=192.168.1.100\ > >       :sd=/var/spool/output/admincolor:rm=admincolor:\ > >       :lf=/var/log/lpd-errs: > > > > Negative, leave the lp capability blank, explicitly (:lp=:). > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-advanced.html#PRINTING-ADVANCED-NETWORK-RM Then the printcap(5) man page should reflect this; the existing explanations for both fields are painfully terse. lp str /dev/lp device name to open for output, or port@machine to open a TCP socket rm str NULL machine name for remote printer I can file a PR (to doc) on this if recommended. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |