From owner-freebsd-questions@FreeBSD.ORG Sun Mar 19 00:58:52 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3680C16A401 for ; Sun, 19 Mar 2006 00:58:52 +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 C80DD43D46 for ; Sun, 19 Mar 2006 00:58:51 +0000 (GMT) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.13.3/8.13.3) with ESMTP id k2J0wpTi010773; Sat, 18 Mar 2006 17:58:51 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.13.3/8.13.3/Submit) with ESMTP id k2J0woRh010770; Sat, 18 Mar 2006 17:58:51 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Sat, 18 Mar 2006 17:58:50 -0700 (MST) From: Warren Block To: Jose Luis Alarcon Sanchez In-Reply-To: <1142686198.2835.50.camel@Endeavour.lordofunix.org> Message-ID: <20060318174721.R10647@wonkity.com> References: <1142686198.2835.50.camel@Endeavour.lordofunix.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (wonkity.com [127.0.0.1]); Sat, 18 Mar 2006 17:58:51 -0700 (MST) Cc: Lista FreeBSD-questions Subject: Re: USB printer and native BSD printing system 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: Sun, 19 Mar 2006 00:58:52 -0000 On Sat, 18 Mar 2006, Jose Luis Alarcon Sanchez wrote: > I have an USB printer at /dev/ulpt0, dmesg say: > > ulpt0: Lexmark 730 Series, rev 2.00/1.00, addr 2, iclass 7/1 > ulpt0: using bi-directional mode I can't find any useful information on that printer online. Maybe it's very old? Many printers can't understand ASCII data, and it may be one of them. > CUPS is not installed and i am trying make printer work with the native > BSD printing system. This is what have my /etc/printcap file: > > lp|local printer:\ > :sh:\ > :lp=/dev/ulpt0:sd=/var/spool/lpd:lf=/var/log/lpd-errs: > > And this is 'ls -l /var/spool/lpd' > > -rw-rw-r-- 1 root daemon 37 Mar 14 19:55 lock > -rw-rw-r-- 1 root daemon 25 Mar 14 19:55 status > > I don't get printer work. Command 'lp file.txt' don't return any output, > 'cat file.txt > /dev/ulpt0' don't return any output. Command > 'cat /var/spool/lpd/status' output is: > > lp is ready and printing > > and this can indicate the configuration is well done. lpd is run... > > I am thinking about if the cause of this problem can be the native BSD > printing system can't manage USB printers, so my concrete question to > the list is: Can be used the BSD lpd with USB printers?. Yes it can. The problem is most likely that the printer can't print plain ASCII data. Sometimes these printers are called "host-based", "GDI", or "Winprinters". If it is one of those printers, you need to find a program that can send the data in a form the printer understands. http://www.linuxprinting.org doesn't list the Lexmark 730, but it may use the same codes as one of the other Lexmark printers. -Warren Block * Rapid City, South Dakota USA