Re: Printing to a Lanier LD160c does not work
- "Warren Block" <[EMAIL PROTECTED]> wrote: > On Fri, 17 Oct 2008, [EMAIL PROTECTED] wrote: > > > I have tried the reccomendations that you guys have suggested with > no luck. > > > Here is my current printcap. > > > admincolor|LANIER LD160c RPCS:\ > > :lp=\ > > :mx#0:\ > > :sd=/var/spool/output/admincolor:\ > > :rm=admincolor:\ > > :lf=/var/log/lpd-errs:\ > > :if=/usr/local/libexec/crfilter:\ > > :sh:\ > > :tr=\f: > > Please trim your responses and don't top-post, as it makes responding > to > your messages difficult. > > The printcap still has no :rp=lp: line. HP printers aren't picky > about > that, but other brands sometimes are. > > You've also added a filter and kept the multiple printer names. > Things > like that make more complexity to debug. Wait until you have basic > communication working. The exact suggested printcap entry: > > admincolor:\ > :lp=:\ > :sh:\ > :mx#0:\ > :rm=admincolor:\ > :rp=lp:\ > :sd=/var/spool/output/admincolor:\ > :lf=/var/log/lpd-errs: > > Note: one printer name (who needs more than one, really?). rm= and > rp= > entries. No filter; I think that printer can handle PostScript and > PCL. > > Put that printcap entry in /etc/printcap, then send a PostScript test > to > the printer (all one line): > > printf "%%\!PS\n/Courier findfont 20 scalefont setfont 72 72 moveto > (Test!) show showpage\f" | lpr -P admincolor > > -Warren Block * Rapid City, South Dakota USA I tried to reply to this email, but it never got posted. After doing some more troubleshooting I found out the generic error message was indicating an authentication error. By default the printer assumes color print, but the printer was setup to require a userid from the driver to allow color printing. When the autherntication feature is disabled the printer now works. My next step is to see what and how I can supply that info in the printcap. Thanks for all the suggestions and guidance. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Printing to a Lanier LD160c does not work
- "Warren Block" <[EMAIL PROTECTED]> wrote: > On Fri, 17 Oct 2008, [EMAIL PROTECTED] wrote: > > I have tried the reccomendations that you guys have suggested with no luck. > > Here is my current printcap. > > admincolor|LANIER LD160c RPCS:\ > > :lp=\ > > :mx#0:\ > > :sd=/var/spool/output/admincolor:\ > > :rm=admincolor:\ > > :lf=/var/log/lpd-errs:\ > > :if=/usr/local/libexec/crfilter:\ > > :sh:\ > > :tr=\f: > Please trim your responses and don't top-post, as it makes responding to > your messages difficult. > The printcap still has no :rp=lp: line. HP printers aren't picky about > that, but other brands sometimes are. > You've also added a filter and kept the multiple printer names. Things > like that make more complexity to debug. Wait until you have basic > communication working. The exact suggested printcap entry: > admincolor:\ > :lp=:\ > :sh:\ > :mx#0:\ > :rm=admincolor:\ > :rp=lp:\ > :sd=/var/spool/output/admincolor:\ > :lf=/var/log/lpd-errs: > Note: one printer name (who needs more than one, really?). rm= and rp= > entries. No filter; I think that printer can handle PostScript and PCL. > Put that printcap entry in /etc/printcap, then send a PostScript test to > the printer (all one line): > printf "%%\!PS\n/Courier findfont 20 scalefont setfont 72 72 moveto (Test!) > show showpage\f" | lpr -P admincolor > -Warren Block * Rapid City, South Dakota USA I took your block above and replaced my block in the printcap, then sent the exact command above with the same failure. The queue is drained and the printer's log has a generic message "The job was reset." message. My current printcap file. corp-admin|hp|laserjet|Hewlett Packard LaserJet 5Si:\ :lp=\ :sd=/var/spool/output/corp-admin:\ :rm=corp-admin:\ :lf=/var/log/lpd-errs:\ :if=/usr/local/libexec/crlfilter:\ :sh:\ :tr=\f:\ :mx#0: admincolor:\ :lp=:\ :sh:\ :mx#0:\ :rm=admincolor:\ :rp=lp:\ :sd=/var/spool/output/admincolor:\ :lf=/var/log/lpd-errs: Queue status after print job is sent. # lpc status all corp-admin: queuing is enabled printing is enabled no entries in spool area printer idle admincolor: queuing is enabled printing is enabled no entries in spool area printer idle ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Printing to a Lanier LD160c does not work
I have tried the reccomendations that you guys have suggested with no luck. Is there a site that I could get some sample filters I could try? I have tried a few that were in the freebsd corporate guide. This printer will work from Windows printer spooler and this BSD box can print to a HP just fine. Here is my current printcap. corp-admin|hp|laserjet|Hewlett Packard LaserJet 5Si:\ :lp=\ :sd=/var/spool/output/corp-admin:\ :rm=corp-admin:\ :lf=/var/log/lpd-errs:\ :if=/usr/local/libexec/crlfilter:\ :sh:\ :tr=\f:\ :mx#0: admincolor|LANIER LD160c RPCS:\ :lp=\ :mx#0:\ :sd=/var/spool/output/admincolor:\ :rm=admincolor:\ :lf=/var/log/lpd-errs:\ :if=/usr/local/libexec/crfilter:\ :sh:\ :tr=\f: And here is the filter #!/bin/sh # /usr/local/libexec/crlfilter # # simple parlor trick to add CR to LF for printer # Every line of standard input is printed with CRLF # attached. # awk '{printf "%s\r\n", $0}' - -- Original message -- From: Warren Block <[EMAIL PROTECTED]> > On Thu, 16 Oct 2008, [EMAIL PROTECTED] wrote: > > > I am trying to setup a Lanier LD160c (admincolor) that has a network > > interface. I am new to FreeBSD and tried to follow the handbook. I > > am able to print to a HP 5SI (corp-admin) with no problems. There are > > no errors in the lpd-errs and the file is drained from the queue, but > > the printer does not print anything. And this is a working printer to > > Windows. lpr -P admincolor testfile.txt > > > > printcap: > > corp-admin|hp|laserjet|Hewlett Packard LaserJet 5Si:\ > > :lp=\ > > :sd=/var/spool/output/corp-admin:rm=corp-admin:\ > > :lf=/var/log/lpd-errs:\ > > :if=/usr/local/libexec/crlfilter:sh:tr=\f:mx#0: > > > > admincolor|hp|laserjet|LANIER LD160c RPCS:\ > > :lp=\ > > :sd=/var/spool/output/admincolor:rm=admincolor:\ > > :lf=/var/log/lpd-errs: > > Note here that in the second entry you don't have the :sh: and :mx#0: > entries. No :if=: either, but maybe that's because you don't need an > input filter for this printer. > > At first guess, this printer may be touchy about the print queue name. > That's the :rp=: parameter, which is not here at all. There are a > couple of KB entries on the Lanier site that say to use "lp". > > printcap entries are easier to read if you put one option per line: > > admincolor:\ > :lp=:\ > :sh:\ > :mx#0:\ > :rm=admincolor:\ > :rp=lp:\ > :sd=/var/spool/output/admincolor:\ > :lf=/var/log/lpd-errs: > > -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Printing to a Lanier LD160c does not work
I am trying to setup a Lanier LD160c (admincolor) that has a network interface. I am new to FreeBSD and tried to follow the handbook. I am able to print to a HP 5SI (corp-admin) with no problems. There are no errors in the lpd-errs and the file is drained from the queue, but the printer does not print anything. And this is a working printer to Windows. lpr -P admincolor testfile.txt printcap: corp-admin|hp|laserjet|Hewlett Packard LaserJet 5Si:\ :lp=\ :sd=/var/spool/output/corp-admin:rm=corp-admin:\ :lf=/var/log/lpd-errs:\ :if=/usr/local/libexec/crlfilter:sh:tr=\f:mx#0: admincolor|hp|laserjet|LANIER LD160c RPCS:\ :lp=\ :sd=/var/spool/output/admincolor:rm=admincolor:\ :lf=/var/log/lpd-errs: I have tried to edit the printcap file and change the 1st line to see if it has any difference, restarted the lpd. chkprintcap does not generate any messages. Any clues where I can start troubleshooting? /var/spool/output drwxrwx--- 2 daemon daemon 512 Oct 10 14:46 admincolor drwxrwx--- 2 daemon daemon 512 Oct 10 14:05 corp-admin drwxr-xr-x 2 rootdaemon 512 Oct 10 13:37 lpd -rw-rw-r-- 1 rootdaemon5 Oct 10 14:28 lpd.lock I would appreciate any help on this. Pat Hanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"