Date: Fri, 26 Feb 2010 09:01:35 -0800 (PST) From: Bill Tillman <btillman99@yahoo.com> To: Warren Block <wblock@wonkity.com> Cc: freebsd-questions@freebsd.org Subject: Re: Printing via USB Port Message-ID: <733828.21268.qm@web36507.mail.mud.yahoo.com> In-Reply-To: <alpine.BSF.2.00.1002260902420.13210@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <wblock@wonkity.com> wrote: From: Warren Block <wblock@wonkity.com> Subject: Re: Printing via USB Port To: "Bill Tillman" <btillman99@yahoo.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?733828.21268.qm>