Date: Sun, 15 Apr 2001 00:43:08 -0500 From: Mike Meyer <mwm@mired.org> To: michael@tenzo.com Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Printer madness... Message-ID: <15065.13548.269098.225788@guru.mired.org> In-Reply-To: <01041421021102.00431@h24-69-46-74.gv.shawcable.net> References: <01041421021102.00431@h24-69-46-74.gv.shawcable.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Michael O'Henly <michael@tenzo.com> types: > Hi... > 4. Tested communication to printer by printing a test Postscript file: > > # cat testPrinter.ps > /dev/lpt0 > > No problems with this. Which means that everything up to that point is right. > 5. Created the following /etc/printcap entry: > > lp|hp4050|HP LaserJet 4050:\ > :sh:\ > :lp=/dev/lpt0:\ > :sd=/var/spool/lpd/lp:\ > :lf=/var/log/lp-errs:\ > :if=/usr/local/libexec/psif:\ > :df=/usr/local/libexec/psdf:\ > :tf=/usr/local/libexec/pstf: > > FWIW, I've tested the following pared-down version as well (with identical > results): The filters are a bit odd. Do you really expect to do a lot of troff & tex, as compared to everything else? If not, I'd recommend using magifilter from the ports tree. Just use one of the hp postscript printer drivers - 4m, probably. I don't know if the 4050 is 600 or 1200dpi, but that should be the only thing you have to change.n > lp:\ > :sh:\ > :lp=/dev/lpt0:\ > sd=/var/spool/lpd/lp: > > 6. Made a spooling directory and made it private to the print daemon: > > # mkdir /var/spool/lpd/lp > # chmod 770 /var/spool/lpd/lp group and owner? > 7. Installed and made executable some print filters. (Note that I've tested > without filter entries in /etc/printcap and had identical resutls.) Unless the 4050 lost the ability to print flat ascii, it shouldn't matter much. Any reasonable filter will just forward the ascii, possibly with Unix->MSDOS EOL translation. If you're missing that, you should get stairsteps. > 8. Added to /etc/rc.conf: > > lpd_enable="YES" > > 9. Rebooted. Ugh. Overkill.... > 10. At this point, tests like "lptest 20 5 | lpr -Plp" and even just 'lpr' > result in 'lpr: lp: unknown printer '. > > I'm stumped. Any advice? Check the system log files to see if it says anything else. Check "lpc status all" to see what it can see. Make sure that your printcap doesn't have anything in it that might be screwing things up. <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15065.13548.269098.225788>