Dear All, after changing my Linux box to Samba 2.2.3a and CUPS I'm struggling with some probleme :
There is a bug in samba printing cups at least for version 2.2.3 and up. It cant resolve -P %p in the print command line. Fix it by replacing -P %p with the absolute path to the printing device found in lpstat -v IE.for my usb printer. [global] printcap name = lpstat [printers] path = /var/spool/samba print command = lpr /dev/usb/lp0 -o raw %s;rm %s -r printable = yes printing = cups Try this and add the rest of the commands to the printer section. --- Henry Stuemer <henry@stuemer.de> skrev: >> > Dear All, > > after changing my Linux box to Samba 2.2.3a and CUPS > I'm struggling with > some probleme : > > From XPpro Client : The printer works without any > problems. > > From 98SE and Me Clients : The Wizard shows that the > printer is offline > and cannot print. > > Can anybody give me a hint where to search ? > > Regards > > Henry > >______________________________________________________ Se den nye Yahoo! Mail p? http://no.yahoo.com/ Nytt design, enklere ? bruke, alltid tilgang til Adressebok, Kalender og Notisbok
Thanks for the hint toward the %P problem in Samba. Paying more attention to the pritnername I found the reason in my installation: WIN98 is only getting 12 characters as printer name. My printer name was 15 characters ( XP got it, but 98 didn't ) regards Henry Dear All, after changing my Linux box to Samba 2.2.3a and CUPS I'm struggling with some probleme :
There was this message on samba-digest:> Message: 3 > Date: Fri, 25 Oct 2002 05:13:00 +0000 (GMT) > From: John H Terpstra <jht@samba.org> > To: "Frank =?iso-8859-1?q?K=FCster?= geb. =?iso-8859-1?q?F=FCrst?=" <ffrank@rz.uni-potsdam.de> > Cc: <samba@lists.samba.org> > Subject: Re: [Samba] Printing probleme Samba 2.2.3.a with CUPS > > On 22 Oct 2002, Frank [iso-8859-1] K?ster geb. [iso-8859-1] F?rst wrote: > > >>Let me step in on this topic... >> >>"Gerald (Jerry) Carter" <jerry@samba.org> wrote: >> >> >>>On Sat, 21 Sep 2002, linux power wrote: >>> >>> >>>>There is a bug in samba printing cups at least for >>>>version 2.2.3 and up. It cant resolve -P %p in the >>>>print command line.It *won't* even *try* to resolve it -- see below. The continued advices on this list to use an "absolute path to the printer" by one pseudonym "linux power" makes me curious to ask what is meant with that new term? I never encountered an "absolute path to a printing device" either. "lpstat -v" gives something that is named a "device URI" in all relevant documentation. If it is the "parallel:/dev/lp0" device-URI, one *could* assume to take the "/dev/lp0" part as a "path", even an "absolute" path. But what about device-URIs like "lpd://10.160.51.131/PORT1" "socket://hp-printer:9100" "ipp://kde-cups-server/printers/infotec4105" To create a new term of "absolute path" only creates confusion and urban legends... Please explain to me (and anybody else) what you mean by your advices in detail (and give one or two examples) because I didn't understand a thing so far...>>>> Fix it by replacing -P %p with the >>>>absolute path to the printing device found in lpstat >>>>-v >>>> > > FYI: I do not have any problem with this on Caldera OpenLinux, nor on SuSE > Linux, both of which use CUPS. > > FWIW: You might like to check the CUPS documentation in samba-2.2.6. You > can find it in: ~samba/docs/textdocs/CUPS-PrintingInfo.txt - might be > helpful.There is also a hint in the smb.conf man page: ...*if* the setting is "printing = cups" and "printcap = cups" and ...*if* Samba is compiled against libcups, ...and *if* there is an entry in "cupsd.conf" to make CUPS create a printcap file ["Printcap /etc/printcap"], then *any* print command setting in smb.conf will be *ignored*, as samba is then using a direct access to the CUPS API for printing....>>You mean this is still a problem in 2.2.5 and 2.2.6? And what can I do >>if I don't have a share for each printer, but just a general [printers] >>share? >> >> >>>So I've been thinking about this and was just about to dig into >>>fixing it, but am confused. Did you compile Samba to include >>>the cups libraries? If so then setting >>> >>>[global] >>> printing = cups >>> printcap name = cups >>> >>>is all you need. You don't need the "print command" in this >>>case as smbd will send directly through the cups API.Not just "don't need" the print command -- it is not used at all, it is useless to try and use it... Cheers, Kurt>>I have problems to: In my setting, the samba spool files aren't deleted >>after succesful printing. I have compiled Samba 2.2.5 from a Debian >>source package, and I assumed that its prepared to compile with >>libcups2. I admit I didn't check (and cannot do this right now). Could >>this be the reason? >> >>TIA, Frank >> >> > > - John T. >
There was this message on samba-digest: > Message: 3 > Date: Fri, 25 Oct 2002 05:13:00 +0000 (GMT) > From: John H Terpstra <jht@samba.org> > To: "Frank =?iso-8859-1?q?K=FCster?= geb. =?iso-8859-1?q?F=FCrst?=" <ffrank@rz.uni-potsdam.de> > Cc: <samba@lists.samba.org> > Subject: Re: [Samba] Printing probleme Samba 2.2.3.a with CUPS > > On 22 Oct 2002, Frank [iso-8859-1] K?ster geb. [iso-8859-1] F?rst wrote: > > >>Let me step in on this topic... >> >>"Gerald (Jerry) Carter" <jerry@samba.org> wrote: >> >> >>>On Sat, 21 Sep 2002, linux power wrote: >>> >>> >>>>There is a bug in samba printing cups at least for >>>>version 2.2.3 and up. It cant resolve -P %p in the >>>>print command line. It *won't* even *try* to resolve it -- see below. The continued advices on this list to use an "absolute path to the printer" by one pseudonym "linux power" makes me curious to ask what is meant with that new term? I never encountered an "absolute path to a printing device" either. "lpstat -v" gives something that is named a "device URI" in all relevant documentation. If it is the "parallel:/dev/lp0" device-URI, one *could* assume to take the "/dev/lp0" part as a "path", even an "absolute" path. But what about device-URIs like "lpd://10.160.51.131/PORT1" "socket://hp-printer:9100" "ipp://kde-cups-server/printers/infotec4105" To create a new term of "absolute path" only creates confusion and urban legends... Please explain to me (and anybody else) what you mean by your advices in detail (and give one or two examples) because I didn't understand a thing so far... >>>> Fix it by replacing -P %p with the >>>>absolute path to the printing device found in lpstat >>>>-v >>>> > > FYI: I do not have any problem with this on Caldera OpenLinux, nor on SuSE > Linux, both of which use CUPS. > > FWIW: You might like to check the CUPS documentation in samba-2.2.6. You > can find it in: ~samba/docs/textdocs/CUPS-PrintingInfo.txt - might be > helpful. There is also a hint in the smb.conf man page: ...*if* the setting is "printing = cups" and "printcap = cups" and ...*if* Samba is compiled against libcups, ...and *if* there is an entry in "cupsd.conf" to make CUPS create a printcap file ["Printcap /etc/printcap"], then *any* print command setting in smb.conf will be *ignored*, as samba is then using a direct access to the CUPS API for printing.... >>You mean this is still a problem in 2.2.5 and 2.2.6? And what can I do >>if I don't have a share for each printer, but just a general [printers] >>share? >> >> >>>So I've been thinking about this and was just about to dig into >>>fixing it, but am confused. Did you compile Samba to include >>>the cups libraries? If so then setting >>> >>>[global] >>> printing = cups >>> printcap name = cups >>> >>>is all you need. You don't need the "print command" in this >>>case as smbd will send directly through the cups API. Not just "don't need" the print command -- it is not used at all, it is useless to try and use it... Cheers, Kurt >>I have problems to: In my setting, the samba spool files aren't deleted >>after succesful printing. I have compiled Samba 2.2.5 from a Debian >>source package, and I assumed that its prepared to compile with >>libcups2. I admit I didn't check (and cannot do this right now). Could >>this be the reason? >> >>TIA, Frank >> >> > > - John T. >