From owner-freebsd-questions@FreeBSD.ORG Fri Feb 26 17:01:39 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 86629106564A for ; Fri, 26 Feb 2010 17:01:39 +0000 (UTC) (envelope-from btillman99@yahoo.com) Received: from web36507.mail.mud.yahoo.com (web36507.mail.mud.yahoo.com [209.191.85.7]) by mx1.freebsd.org (Postfix) with SMTP id 4682B8FC18 for ; Fri, 26 Feb 2010 17:01:38 +0000 (UTC) Received: (qmail 21749 invoked by uid 60001); 26 Feb 2010 17:01:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1267203695; bh=vKazyN6cKhRX0FX2Ax5UvDtJrc9IsdSVordkZORylaQ=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=4ocZBySF9MtOm6WZ5QqXbMQNv4HPvusLZEgn8RIW6KymXQ94MxQV+WwO4Di00uXA2tONjPueoDS89+nfrQwn1SUWZ+JWZc15EtOpkiTffRw3E+JAOyrenH0I/np1sBoD6w6lT9acL2o6FV5YGBgFLWMXog7NNRFCIdtws2knh7k= 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=tOz/Pixl/weQUajB/frSdi/UdQCkUFOoR7i6dej3i5eEX0yOWBygvn4iinHXrER02rgP3SPCKfVYilJRVwik1Pc0L72oEHDJEF4hyfzjAMy94/iSKy1CBrwMIa/hjxLPS6/j0THc8nSdkfIfegArH6LMy3+UUa9oTNyh4djMXPw=; Message-ID: <733828.21268.qm@web36507.mail.mud.yahoo.com> X-YMail-OSG: 6JBWe7EVM1kLHKO_XZQvTxB9039NtVvE6I2KAbEg95ge4O6C_bnwZN5DjlmZYYDPrieIqMgLu5vN5zQavAKIy98oS2gkXyWMPue9bRaGro5P3.ecvGARDdzDtOZITmHeXoL0BoKan2ArF1lIs7wqAB5Cq6b5lK1kip4B4eqDcekZGACFz1PfuwQhwWhK0Vj5vclXEbtpO8hEIUrnHw9IEBMjHZwJEwY4mG3qV4BRzXydKF2SPlTpUX7TZaUswuZz.xeFLUa5QO2owECQa04An7Z00CwjmEk7NFiCRJnnKn3FZPMiN680X2QK1RG5R2LX_26ps664hA-- Received: from [98.242.237.166] by web36507.mail.mud.yahoo.com via HTTP; Fri, 26 Feb 2010 09:01:35 PST X-Mailer: YahooMailClassic/9.2.12 YahooMailWebService/0.8.100.260964 Date: Fri, 26 Feb 2010 09:01:35 -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: Fri, 26 Feb 2010 17:01:39 -0000 Warren, =A0 Thanks for your reply. Your answers are usually spot on but this is one of = those difficult times when the Windows and Linux guys at work laugh their a= sses off at me for being such a FreeBSD die-hard. I thought it might be a f= aulty cable or even the printer shot it's wad so I moved it over to a Windo= ws Vista machine and poof, 15 seconds later it had found it, installed the = correct driver and printed two pages for me. =A0 I tried your method below and even though I changed "x" attribute all I got= was the following in the /var/log/lpd-errs file: =A0 Feb 26 11:30:29 FreeBSD1 lpd[1413]: lp: cannot execv(/usr/local/libexec/ps2= pcl): Exec format error Feb 26 11:30:29 FreeBSD1 lpd[1412]: lp: job could not be printed (cfA000Fre= eBSD1.flgmsi.com) So I added the standard #!/bin/sh line to the beginning of the ps2pcl file = and nothing printed, not even error messages about what happened. And that = seems to be what's going on here. I also tried the standard ifhp filter fil= e=A0shown in the handbook and switched the device from DJ500 to hl1250. Thi= s is the gs driver that worked before with the apsfilter method when the pr= inter was on lpt0: The queue shows it's empty with no jobs waiting and the = log files are void of any evidence of what happened to the job. The printer= sits there as if nothing happened. =A0 I understand these are difficult topics to overcome with FreeBSD as the doc= s are not always in synch with the OS. But just like before when I had trou= ble getting this laser printer to work under lpd until I found apsfilter it= was difficult. Once I had that method down it was easy to setup again. It'= s got to be something simple here. =A0 Thanks again for the advice. If you think of anything else please pass it o= n. In the meantime I'm still doing google and yahoo searches and will try a= gain with the #freebsd channel. =A0 --- On Fri, 2/26/10, Warren Block wrote: From: Warren Block Subject: Re: Printing via USB Port To: "Bill Tillman" Date: Friday, February 26, 2010, 10:06 AM Resending this off-list since my filter blocked the reply to Yahoo. I've un= blocked Yahoo for now, but that probably won't last long. On Fri, 26 Feb 2010, Warren Block wrote: > On Fri, 26 Feb 2010, Bill Tillman wrote: >=20 >> 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 lik= e me to get the correct setting for it with lpr method. So I was really loo= king forward to getting cupsd working this time round. >=20 > The original lpd will work with USB printers.=A0 This will give you a Pos= tScript printer as the default "lp".=A0 (Following is collected from severa= l systems, please pardon if something was left out.) >=20 > /etc/printcap: > lp:\ > =A0=A0=A0 :lp=3D/dev/ulpt0:\ > =A0=A0=A0 :sh:\ > =A0=A0=A0 :mx#0:\ > =A0=A0=A0 :sd=3D/var/spool/lpd/lp:\ > =A0=A0=A0 :if=3D/usr/local/libexec/ps2pcl:\ > =A0=A0=A0 :lf=3D/var/log/lpd-errs: >=20 > Create the spool directory: >=20 >=A0 % mkdir /var/spool/lpd/lp >=A0 % chmod 770 /var/spool/lpd/lp >=20 > Create the PostScript to PCL filter (Brother HL2040 only understands PCL)= : >=20 >=A0 % echo "/usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=3Dljet4 -sOutp= utFile=3D- -" > /usr/local/libexec/ps2pcl >=A0 % chmod +x /usr/local/libexec/ps2pcl >=20 > Add lpd_enable=3D"YES" in /etc/rc.conf, and start it manually this time w= ith just >=A0 % lpd >=20 > 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-advanc= ed.html >=20 > -Warren Block * Rapid City, South Dakota USA =0A=0A=0A