Locutus
2002-Aug-31 07:54 UTC
[Samba] Windows client refuses multiple print copies when printing to samba printer
Hello I have got the following problem: My Samba printer doesn't allow multiple copies, when trying to print from a client machine. (Unix printing works fine with multple copies). When I enter more than one copy into the "number of copies" field on a WinXP client machine, I get the error message "This printer cannot print the specified amount of copies. The amount of copies is restricted to 1." (The error message may be a little bit different, because I am using a german version of Windows, it should be like that, though.) I am using Windows XP Pro on the client machines. My printer is a "HP DeskJet 845c" usb printer. This is an excerpt from my smb.conf: [global] (...) printing = lprng printer driver file = /usr/share/samba/winpdrv/printers.def [PRINT$] comment = Windows printer driver path = /usr/share/samba/winpdrv public = yes read only = yes browseable = no [printer] comment = HP DeskJet 845C path = /var/spool/samba public = yes read only = yes browseable = yes printable = yes print command = /usr/bin/lpr -P%p -r %s 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 printer driver = hp deskjet 845c printer driver location = \\%L\PRINT$ (...) Everything works fine. The installation of the printer driver under Windows works as expected and the printing jobs are processed normally. The only problem is, that I cannot print more than one jobs at a time. This is my printcap file: lp|printer :rw:\ :cm=HP DeskJet 845C:\ :lp=/dev/usb/lp0:\ :sd=/var/spool/lpd/lp:\ :mx#0:\ :mc#50: (I also tried "#0", "=0" and "=50" for ":mc:") (maximum copies) => Didn't work :-/ Perhaps anyone of you has got some experiences with this? I searched through half the internet, but I could not find something. Thanks in advance Greetings, Locutus
Locutus
2002-Sep-01 03:44 UTC
[Samba] Windows client refuses multiple print copies when printing to samba printer
Hello and thank you for your answer. 1. Printing works fine with samba and with lprng. When I use lprng I am even allowed to print multiple copies. When printing over samba, I only can print one copy and I have to wait, until it is finished, before sending the next copy. 2. No i think printing = lprng tells the samba server, which printing system to use. You can for example also specify "bsd" or "cups". 3. Yes, all windows clients have the same problem. (But I only tested it on Windows XP, since I don't have another WinOS installed somewhere) 4. Wow, I didn't know that checkpc tool, yet it seems to like my configuration. No errors were reported. 5. Yes, I wonder why "mc" has no effect .. ;-) 6. Yes, I restarted smb and lpd. 7. Changing the print command would work, but it seems a little bit uncomfortable to create shares for multiple copies. Thanx, though. Is it normal that the last job, I sent to the samba printer, remains in the spool queue? The SMB temporary files in /var/spool/samba are deleted after the job is done, but the lpr job still remains in /var/spool/lpd/lp ----- Original Message ----- From: "Joel Hammer" <Joel@HammersHome.com> To: "Locutus" <locutus266@gmx.de> Sent: Sunday, September 01, 2002 5:12 AM Subject: Re: [Samba] Windows client refuses multiple print copies when printing to samba printer> Questions: > 1. When you say printing is fine from the server, is the server printing > through samba or directly using lprng? > 2 Isn't printing = lprng a share, not a global, parameter? > 3. Do other windows clients have this same problem? > mc#1 is the default setting, so.... > Did you restart lpd after changing these settings? > Have you run checkpc ? > Having said this, I just tried to set mc#1 in my /etc/printcap for a > printer, restarted lpd, and it didn't change anything, so, maybe mc is > being ignored by lpr. > You could change your print command to lpr -K3 to get three copies. Haveyou> tried that? > If this works, and you really want to get multiple copies, define several > shares, all with different values of K. > Joel > > > > Isn't printing = lprng a share, not a global parameter? > On Sat, Aug 31, 2002 at 06:53:06PM +0200, Locutus wrote: > > Hello > > > > I have got the following problem: > > My Samba printer doesn't allow multiple copies, when trying to printfrom a> > client machine. (Unix printing works fine with multple copies). When Ienter> > more than one copy into the "number of copies" field on a WinXP client > > machine, I get the error message "This printer cannot print thespecified> > amount of copies. The amount of copies is restricted to 1." (The error > > message may be a little bit different, because I am using a germanversion> > of Windows, it should be like that, though.) > > > > I am using Windows XP Pro on the client machines. My printer is a "HP > > DeskJet 845c" usb printer. > > > > This is an excerpt from my smb.conf: > > [global] > > (...) > > printing = lprng > > printer driver file = /usr/share/samba/winpdrv/printers.def > > > > [PRINT$] > > comment = Windows printer driver > > path = /usr/share/samba/winpdrv > > public = yes > > read only = yes > > browseable = no > > > > [printer] > > comment = HP DeskJet 845C > > path = /var/spool/samba > > public = yes > > read only = yes > > browseable = yes > > printable = yes > > print command = /usr/bin/lpr -P%p -r %s > > 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 > > printer driver = hp deskjet 845c > > printer driver location = \\%L\PRINT$ > > > > (...) > > > > Everything works fine. The installation of the printer driver underWindows> > works as expected and the printing jobs are processed normally. The only > > problem is, that I cannot print more than one jobs at a time. > > > > This is my printcap file: > > > > lp|printer > > :rw:\ > > :cm=HP DeskJet 845C:\ > > :lp=/dev/usb/lp0:\ > > :sd=/var/spool/lpd/lp:\ > > :mx#0:\ > > :mc#50: > > > > (I also tried "#0", "=0" and "=50" for ":mc:") (maximum copies) =>Didn't> > work :-/ > > > > Perhaps anyone of you has got some experiences with this? > > I searched through half the internet, but I could not find something. > > > > Thanks in advance > > > > Greetings, > > Locutus > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: http://lists.samba.org/mailman/listinfo/samba >