From owner-freebsd-questions@FreeBSD.ORG Sat Feb 27 00:19:42 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 C3B72106566B for ; Sat, 27 Feb 2010 00:19:42 +0000 (UTC) (envelope-from btillman99@yahoo.com) Received: from web36506.mail.mud.yahoo.com (web36506.mail.mud.yahoo.com [209.191.85.6]) by mx1.freebsd.org (Postfix) with SMTP id 8CEEC8FC0C for ; Sat, 27 Feb 2010 00:19:42 +0000 (UTC) Received: (qmail 55927 invoked by uid 60001); 27 Feb 2010 00:19:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1267229980; bh=Ar7jOBs1jq8LJSv5ZW37f1C3XX7ontuGvj9bHW8P5pk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=eP34MGioIRLPljm6KiyAKUGLjb7gF0BV8FkmPQVXGn6LjdhT0W8tT8cyiC/BJZ8YFF7l832xoqkphHbDry3ecEQirGo+IAq/YvK6P+ZFBkfaDFS1ah8MiVp99TVro55aCAO9/77B0CARdVgnxyM498OQnflqE2hwcue8BMIhCSw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=vP7bkLbeVy94CsB+8l6hHbKJb1Fr+ZlxAYOJw9qo1evBkaBjHq92IbDt4Igw2q2Q+7gw1RvdijQgNiCAH6guZYViWkmEUf5M6Gpni75r42cGSGBLE8I/VzhcV8RcYoBRR5jFGJVpi9VvkI55WdU9gL9oApGAXfXDylhGFHmReZc=; Message-ID: <203272.55003.qm@web36506.mail.mud.yahoo.com> X-YMail-OSG: v8QmIKQVM1ntEdfB8_PokbS50j5t60n1bIi9focsHo5Sm87i.80D1wlBNH9X62Kzgc0ivn._O3wN0TeL2Xja2qP_zDPh5YZLbAxVA_5bVbGS6z1N8SA5ovXDWRj9FlfFSzvIcoBUfWpXFTc9YCu2yMqtrZ_EIMDjE4mgrPghiMGTnEuthWu5UxOdFpbrBd3o5kfd_yvNd8ZGVJhr6UELwvM6JxIbiy06MGvL7PJ.GJ9KKYcVX6LTvVmmldeysiM7hBFaLP1yLhSHptEGJam90KJRf8K13Qte.0Gy.Au1mw-- Received: from [98.242.237.166] by web36506.mail.mud.yahoo.com via HTTP; Fri, 26 Feb 2010 16:19:40 PST X-Mailer: YahooMailClassic/9.2.12 YahooMailWebService/0.8.100.260964 Date: Fri, 26 Feb 2010 16:19:40 -0800 (PST) From: Bill Tillman To: Warren Block In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Sat, 27 Feb 2010 00:19:42 -0000 --- On Fri, 2/26/10, Warren Block wrote: From: Warren Block Subject: Re: Printing via USB Port To: "Bill Tillman" Cc: freebsd-questions@freebsd.org Date: Friday, February 26, 2010, 5:38 PM On Fri, 26 Feb 2010, Bill Tillman wrote: > =A0 > Thanks again for your valuable input. I have set up lpd printing on my ol= d FreeBSD server at least a dozen times and it became a simple routine to d= o with apsfilter.=A0Let me see if I can place all my cards in one place and= perhaps we can find the bug. I think I found it.=A0 The HL-2040 is a GDI printer, aka winprinter (aka "o= h no, one of those", aka "I guess I didn't really want to print that after = all").=A0 It won't respond to PCL, unlike the one I looked up first, the HL= -2060. Based on http://beej.us/hl2040/: =A0 % cd /usr/local/libexec =A0 % cp ps2pcl ps2hl1250 Change the line in ps2hl1250 to: /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=3Dhl1250 -sOutputFile=3D- - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 ^^^^^^ And change the if=3D line in the printcap to refer to ps2hl1250. (And remember, buying winprinters just encourages them to make more.) -Warren Block * Rapid City, South Dakota USA =A0 Warren, =A0 Once again many thanks, but that is one of the first things I tried. By che= cking ghostcript's drivers =A0 #gs -h | grep hl =A0 I found many drivers for the HL-12xx models. I have used this in my previou= s setup with my old parallel server. I actually tried what you suggested an= d it only worked when using the parallel cable, not the USB. For some reaso= n the USB connection on this and any other FreeBSD server I connect to is D= OA for printing. I run mouse and keyboard via USB. But these print jobs are= lining up in the queue and just sit there no matter how many times I recon= nect the printer, or reboot it or reboot the computer. And once again I'm s= eeing two instances of lpd running when I only launched it from the command= line once, no entry in /etc/rc.conf. =A0 =A0 BigDell# ps -ax | grep lpd =A01311=A0 ??=A0 Is=A0=A0=A0=A0 0:00.00 lpd =A01329=A0 ??=A0 IE=A0=A0=A0=A0 0:00.00 lpd BigDell# lpq no entries BigDell# lpc status all lp: =A0=A0=A0=A0=A0=A0=A0 queuing is enabled =A0=A0=A0=A0=A0=A0=A0 printing is enabled =A0=A0=A0=A0=A0=A0=A0 no entries in spool area =A0=A0=A0=A0=A0=A0=A0 printer idle BigDell# This just don't make sense and I hope when we find it it's something we can= laugh about.=0A=0A=0A