From owner-freebsd-questions@FreeBSD.ORG Fri Feb 26 15:50:13 2010 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 F124F106564A for ; Fri, 26 Feb 2010 15:50:13 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id AB6F98FC08 for ; Fri, 26 Feb 2010 15:50:13 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.3/8.14.3) with ESMTP id o1QFoCO1013128 for ; Fri, 26 Feb 2010 08:50:12 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.3/8.14.3/Submit) with ESMTP id o1QFoCa8013125; Fri, 26 Feb 2010 08:50:12 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Fri, 26 Feb 2010 08:50:12 -0700 (MST) From: Warren Block To: Bill Tillman In-Reply-To: <215246.61770.qm@web36501.mail.mud.yahoo.com> Message-ID: References: <215246.61770.qm@web36501.mail.mud.yahoo.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (wonkity.com [127.0.0.1]); Fri, 26 Feb 2010 08:50:12 -0700 (MST) Cc: freebsd-questions@freebsd.org Subject: Re: Printing via USB Port 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, 26 Feb 2010 15:50:14 -0000 On Fri, 26 Feb 2010, Bill Tillman wrote: > This printer worked fine when I was using lpd and a parallel port. > Also the apsfilter port is broken which makes it more difficult for a > novice like me to get the correct setting for it with lpr method. So I > was really looking forward to getting cupsd working this time round. The original lpd will work with USB printers. This will give you a PostScript printer as the default "lp". (Following is collected from several systems, please pardon if something was left out.) /etc/printcap: lp:\ :lp=/dev/ulpt0:\ :sh:\ :mx#0:\ :sd=/var/spool/lpd/lp:\ :if=/usr/local/libexec/ps2pcl:\ :lf=/var/log/lpd-errs: Create the spool directory: % mkdir /var/spool/lpd/lp % chmod 770 /var/spool/lpd/lp Create the PostScript to PCL filter (Brother HL2040 only understands PCL): % echo "/usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=ljet4 -sOutputFile=- -" > /usr/local/libexec/ps2pcl % chmod +x /usr/local/libexec/ps2pcl Add lpd_enable="YES" in /etc/rc.conf, and start it manually this time with just % lpd More detail: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-intro-setup.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-advanced.html -Warren Block * Rapid City, South Dakota USA