Fernando Giorgetti
2002-Apr-22 11:53 UTC
[Samba] What I must configure to use LPRng with Samba
Hi All, I'm trying to use LPRng with Samba, but i got no success. Well, I've created an empty /etc/lpd.conf and a /etc/lpd.perms with only "DEFAULT ACCEPT". Follow, my /etc/printcap: epson:cm=Dummy Printcap Entry: :lp=/dev/null :sd=/var/spool/lpd/%P :sh:if=/usr/bin/smbprint smb: :lp=|/usr/bin/smbprint :sd=/var/spool/lpd/%P: and here the .config of each printer : /var/spool/lpd/epson/.config : share='\\josi\epson' hostip=192.168.8.129 user='usuario' password='senha' workgroup='gruponet.com.br' and /var/spool/lpd/smb/.config : share="//josi/epson" hostip="192.168.8.129" I've setted the right permissions and run the checkpc, so the permissions warning disapear. In my smb.conf I put the follow in [global] : printcap name = /etc/printcap load printers = yes printing = lprng print command = /usr/bin/lpr -P%p -r %s lpq command = /usr/bin/lpq -P%p lprm command = /usr/bin/lprm -P%p %j lppause command = /usr/sbin/lpc hold %p %j lpresume command = /usr/sbin/lpc release %p %j queuepause command = /usr/sbin/lpc -P%p stop queueresume command = /usr/sbin/lpc -P%p start and in the [printers] : [printers] path = /var/spool/lpd/%p comment = Impressoras browseable = yes public = yes guest ok = no printable = yes I can map a Printer from my Windows client but when I try to send something to be printted The document dont go to the printer and no error occurs... Anybody knows what's wrong? PS: Sorry my bad english Thanks... Fernando Giorgetti.
Joel Hammer
2002-Apr-22 20:21 UTC
[Samba] Re: LPRng: What I must configure to use LPRng with Samba
Are you trying to print from the samba server to the Windows box or from the windows box to the samba server? Joel
Do you know what this printcap entry is saying? Is says to send the print job to samba. You don't want to do this on your server. Your server is going to talk to the printer attached to itself and it won't use samba for that.> epson:cm=Dummy Printcap Entry: > :lp=/dev/null > :sd=/var/spool/lpd/%P > :sh:if=/usr/bin/smbprintThe following is the sort of print cap entry you need: ps|z53:\ sh:sd=/var/spool/lpd/z53:mx#0:\ :lp=/dev/lp0:\ :if=/usr/local/lexmark/z53/z53.sh :sh: This uses the filter pointed to by the if parameter to convert print jobs to a format usable by my z53 printer. Note lp points to the device which has the printer physically attached to the server. Joel