On 10 Feb 2001, Harry Putnam wrote:

> "Mikkel L. Ellertson" <[EMAIL PROTECTED]> writes:
>
> > > All this and not one word shows up in syslog.  Makes it hard to debug.
> > >
> > > The lpr -D (debug) flag might be usefull here but the description of
> > > its use in `man lpr' is so worhtless I can't figure out how to use it.
> > >
> > You may want to read the Printing-Usage-HOWTO.
>
> Do you see something wrong in the config?  Should I see some kind of
> output in /var/log/messages?
>
No, you will probably not see anything is /var/log/messages.  This is
because lpr is working correctly, but your filter is erroring out.  When
you are sending to a Windows printer, it is actualy the filter that
sends the file - lpr only puts it in the spool directory, and hands it
off the the filter program.  This is because of the :lp=/dev/null: line.
>
[snip]
>
> Also had already tried the direct to device method mentioned there:
>
> cat file > /dev/lp
>
This does not work with a network connect printer - only one connectet
to a local parrelle port.
>
> None of that leaves a dent in /var/log/messages and none of it prints
> anything.
>
>
> Trying the syntax shown in the HOWTO:
>
>    The /etc/printcap entry goes like this:
> lp|remote-smbprinter:\
>:sh:\
>:lp=/dev/null:\
>:sd=/var/spool/lpd/lp:\
>:if=/usr/local/sbin/smbprint:
>
> I changed the printcap generated by print tool to look more like the
> one in the HOWTO:
> #
> # This file can be edited with the printtool in the control-panel.
> #     lp:\
> #     :if=/var/spool/lpd/lp/filter:\
> ##PRINTTOOL3## SMB uniprint NAxNA letter {} U_EpsonStylusColor stc800p {}
> lp|remote-smbprinter:\
>:sd=/var/spool/lpd/lp:\
>:mx#0:\
>:sh:\
>:if=/usr/bin/smbprint:
>:af=/var/spool/lpd/lp/acct:\
>:lp=/dev/null:
>
> Still nothing happens... no printing, no syslog messages
>
Here is my printcap entry for a Window printer:

##PRINTTOOL3## SMB POSTSCRIPT 600x600 letter {} PostScript Default {}
SuperScript_660|lp0:\
        :sd=/var/spool/lpd/lp0:\
        :mx#0:\
        :sh:\
        :if=/var/spool/lpd/lp0/filter:\
        :af=/var/spool/lpd/lp0/acct:\
        :lp=/dev/null:

Did you try removing the username and password from the configuration or
from /var/spool/lpd/lp/.config.  As long as yu didn't set up a password
when you set the pinter up as a shared printer, it should work fine.

You may want to run "smbclient -N -L <your w2k machine name>" and make
sure it lists the printer, and that the name it displays matches the
name you gave printtool.  The hard part about debugging a Window printer
setup is that smbprint does not log error messages.  And as far as lrp
is concerned, it is doing its job - it sending the file through the
filter, and taking the output of the filter and sending it do /dev/null.

Mikke
-- 

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to