I'm having trouble with driver downloads to Win98 clients from a Cups server/ red hat 8.0 (2.4.18-26.8.0) cups-1.1.18 samba 2.2.8 netatalk-1.6.1 I have windows clients successfully installing and printing to printers over samba and macs over netatalk. I'm using the stock Adobe drivers. Windows 2000 and Windows XP clients successfully grab drivers off of the print$ share without a glitch. But Windows 98 gets stuck partway. After it makes progress pulling the Adobe files off, it gets stuck on the actuall ppd for the printer. I get the following windows dialog box: ----------------------------------------------------------------------- The file 'K100_HP4050.PPD on Network printer driver files cannot be found. Setup had trouble copying a file. Click OK to try copying the file again. If this message reappears, quit Setup and then try running Setup again. Copy files from: \\PRINTING2\PRINT$\WIN40\0 ----------------------------------------------------------------------- If I click on the "Details" button I get this windows dialog: ----------------------------------------------------------------------- The following error occurred: 'No more files' (error #12). Setup could not finish opening a file on the source disk. Source file: '\\PRINTING2\PRINT$\WIN40\0\K100_HP4050.PPD' Destination file: 'C:\WINDOWS\SYSTEM\K100_HP4050.PPD=K100_HP4050.PPD' ----------------------------------------------------------------------- If I elect to skip this file, the rest of the Adobe files come off of the share. I can even print a test page at this point. Then, if I look at the share \\Printing2\print$\WIN40\0, I can see and manually copy the file down to the client. Here is my smb.conf: #======================= Global Settings==============================[global] workgroup = POTSDAM netbios name = Printing2 server string = Print Server security = domain encrypt passwords = yes password server = * hosts allow = 137.143. log level = 3 log file = /var/log/samba/log.samba max log size = 50 printing = cups printcap name = cups load printers = yes #======================= Share Definitions============================[printers] comment = All Printers path = /var/spool/samba browseable = no public = yes guest ok = yes writable = no printable = yes printer admin = admin, root [print$] comment = Printer Drivers for Windows path = /etc/samba/drivers browseable = yes guest ok = yes read only = yes write list = admin, root and here is the output of cupsaddsmb: ----------------------------------------------------------------------- [root@comp11704 samba]# cupsaddsmb -U admin -v K100_HP4050 Password for admin required to access localhost via SAMBA: Running command: smbclient //localhost/print\$ -N -U'admin%secret' -c 'mkdir W32X86;put /var/spool/cups/tmp/3e9c53a1477fa W32X86/K100_HP4050.PPD;put /usr/share/cups/drivers/ADOBEPS5.DLL W32X86/ADOBEPS5.DLL;put /usr/share/cups/drivers/ADOBEPSU.DLL W32X86/ADOBEPSU.DLL;put /usr/share/cups/drivers/ADOBEPSU.HLP W32X86/ADOBEPSU.HLP' added interface ip=137.143.110.107 bcast=137.143.111.255 nmask=255.255.240.0 Domain=[POTSDAM] OS=[Unix] Server=[Samba 2.2.8] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /var/spool/cups/tmp/3e9c53a1477fa as \W32X86/K100_HP4050.PPD (15481.7 kb/s) (average 15482.4 kb/s)putting file /usr/share/cups/drivers/ADOBEPS5.DLL as \W32X86/ADOBEPS5.DLL (5958.3 kb/s) (average 6205.7 kb/s) putting file /usr/share/cups/drivers/ADOBEPSU.DLL as \W32X86/ADOBEPSU.DLL (10192.2 kb/s) (average 6781.6 kb/s) putting file /usr/share/cups/drivers/ADOBEPSU.HLP as \W32X86/ADOBEPSU.HLP (2002.0 kb/s) (average 6347.1 kb/s) Running command: rpcclient localhost -N -U'admin%secret' -c 'adddriver "Windows NT x86" "K100_HP4050:ADOBEPS5.DLL:K100_HP4050.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"' cmd = adddriver "Windows NT x86" "K100_HP4050:ADOBEPS5.DLL:K100_HP4050.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL" Printer Driver K100_HP4050 successfully installed. Running command: smbclient //localhost/print\$ -N -U'admin%secret' -c 'mkdir WIN40;put /var/spool/cups/tmp/3e9c53a1477fa WIN40/K100_HP4050.PPD;put /usr/share/cups/drivers/ADFONTS.MFM WIN40/ADFONTS.MFM;put /usr/share/cups/drivers/ADOBEPS4.DRV WIN40/ADOBEPS4.DRV;put /usr/share/cups/drivers/ADOBEPS4.HLP WIN40/ADOBEPS4.HLP;put /usr/share/cups/drivers/DEFPRTR2.PPD WIN40/DEFPRTR2.PPD;put /usr/share/cups/drivers/ICONLIB.DLL WIN40/ICONLIB.DLL;put /usr/share/cups/drivers/PSMON.DLL WIN40/PSMON.DLL;' added interface ip=137.143.110.107 bcast=137.143.111.255 nmask=255.255.240.0 Domain=[POTSDAM] OS=[Unix] Server=[Samba 2.2.8] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \WIN40putting file /var/spool/cups/tmp/3e9c53a1477fa as \WIN40/K100_HP4050.PPD (15481.7 kb/s) (average 15482.4 kb/s) putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM (6854.7 kb/s) (average 7060.1 kb/s) putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV (14380.3 kb/s) (average 10805.3 kb/s) putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP (19185.4 kb/s) (average 11265.8 kb/s) putting file /usr/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD (6587.6 kb/s) (average 11214.9 kb/s) putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL (6408.8 kb/s) (average 10786.7 kb/s) putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL (3733.3 kb/s) (average 10299.1 kb/s) Running command: rpcclient localhost -N -U'admin%secret' -c 'adddriver "Windows 4.0" "K100_HP4050:ADOBEPS4.DRV:K100_HP4050.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADOBEPS4.DRV,K100_HP4050.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL"' cmd = adddriver "Windows 4.0" "K100_HP4050:ADOBEPS4.DRV:K100_HP4050.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADOBEPS4.DRV,K100_HP4050.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL" Printer Driver K100_HP4050 successfully installed. Running command: rpcclient localhost -N -U'admin%secret' -c 'setdriver K100_HP4050 K100_HP4050' cmd = setdriver K100_HP4050 K100_HP4050 Succesfully set K100_HP4050 to driver K100_HP4050. [root@comp11704 samba]# ------------------------------------------------------------------------ I really don't know what the problem is. I have even tried removing the contents of /etc/samba/drivers and reinstalling all the printers with cupsaddsmb...no go. Any help would be greatly appreciated. Thanks. -- Jeff Hardy SUNY Potsdam
Jeff Hardy hardyjm at potsdam.edu> Wed Apr 16 12:04:25 GMT 2003 > > I'm having trouble with driver downloads to Win98 clients from a Cups > server/ > > red hat 8.0 (2.4.18-26.8.0) > cups-1.1.18 > samba 2.2.8 > netatalk-1.6.1 > > I have windows clients successfully installing and printing to printers > over samba and macs over netatalk. I'm using the stock Adobe drivers. > Windows 2000 and Windows XP clients successfully grab drivers off of the > print$ share without a glitch. But Windows 98 gets stuck partway.My best guess is that you should try again with a printer name equal or less than 8 characters.... Unforch, I don't have a Win 98 system around, but someone from the Samba Team will let me play with his for a while soon. While you're at it -- could you please try with an "8.3" filename too, please?> After it makes progress pulling the Adobe files off, it gets stuck on > the actuall ppd for the printer.[....] Cheers, Kurt
David Morel wrote:> On Thursday 17 April 2003 13:34, Kurt Pfeifle wrote: > >>Jeff Hardy hardyjm at potsdam.edu >> >> >>>Wed Apr 16 12:04:25 GMT 2003 >>> >>>I'm having trouble with driver downloads to Win98 clients from a Cups >>>server/ >>> >>>red hat 8.0 (2.4.18-26.8.0) >>>cups-1.1.18 >>>samba 2.2.8 >>>netatalk-1.6.1 >>> >>>I have windows clients successfully installing and printing to printers >>>over samba and macs over netatalk. I'm using the stock Adobe drivers. >>>Windows 2000 and Windows XP clients successfully grab drivers off of the >>>print$ share without a glitch. But Windows 98 gets stuck partway. >> >>My best guess is that you should try again with a printer name equal or >>less than 8 characters.... >> >>Unforch, I don't have a Win 98 system around, but someone from the Samba >>Team will let me play with his for a while soon. >> >>While you're at it -- could you please try with an "8.3" filename too, >>please? >> >> >>>After it makes progress pulling the Adobe files off, it gets stuck on >>>the actuall ppd for the printer. >> >>[....] >> >>Cheers, >>Kurt > > > > Might be that bug in cupsaddsmb. > > http://bugs.samba.org/cgi-bin/samba-bugs/incoming?id=25090;expression=cupsaddsmb;user=guestThanks for the hint... But wouldn't *that* bug (which is fixed in recent versions of cupsaddsmb) lead to a message at the end of cupsaddsmb, saying "status UNSUCCESSFUL"? My understanding was that cupsaddsmb completed successfully but that the actual driver download to Win9x clients didn't complete thereafter... Cheers, Kurt
David Morel wrote:> >>>>>After it makes progress pulling the Adobe files off, it gets stuck on >>>>>the actuall ppd for the printer. >>>> >>>>[....] >>>> >>>>Cheers, >>>>Kurt >>> >>>Might be that bug in cupsaddsmb. >>> >>>http://bugs.samba.org/cgi-bin/samba-bugs/incoming?id=25090;expression=cup >>>saddsmb;user=guest >> >>Thanks for the hint... But wouldn't *that* bug (which is fixed in recent >>versions of cupsaddsmb) lead to a message at the end of cupsaddsmb, saying >>"status UNSUCCESSFUL"? > > nope. otherwise i wouldn't have spent 2 hours finding out ! ;-) > >>My understanding was that cupsaddsmb completed successfully but that >>the actual driver download to Win9x clients didn't complete thereafter... > > thats exactly what was happening. no cupsaddsmb message, but incomplete > download of drivers on 95/98But you can tell *that* bug from the (wrong) line Running command: rpcclient localhost -N -U'admin%secret' -c 'adddriver "Windows 4.0" \ "K100_HP4050:ADOBEPS4.DRV:K100_HP4050.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:\ RAW:\ K100_HP4050.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL"' instead of the (correct) one: Running command: rpcclient localhost -N -U'admin%secret' -c 'adddriver "Windows 4.0" \ "K100_HP4050:ADOBEPS4.DRV:K100_HP4050.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:\ RAW:ADOBEPS4.DRV,\ K100_HP4050.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL"' However, Jeff's quote of his cupsaddsmb output shows the correct line....> davidHowever, your hint to that bug is very much appreciated. I remember that one, but can't remember which version of CUPS was biten by it. Do you have a version no. (to put it in the Samba printing documentation)? Cheers & Thanks, Kurt
The following regarding Windows 98 printer names seemed to get lost in the ether. This was samba 2.2.7, originally posted in April 2003: In windows 98, printer name: ----------------------------> 13 characters: printer offline<= 13 but > 8: ppd doesn't download, can print with adobe drivers <= 8: full functionality I also tried an 8.3 printername: testtest.tst, which resulted in a ppdof testtest.tst.ppd. Same problems as before...no download but limitedprinting with adobe drivers. Thank you. -Jeff On Wed, 16 Apr 2003 12:04:25 -0400, Jeff Hardy wrote:> I'm having trouble with driver downloads to Win98 clients from a Cups > server/ > > red hat 8.0 (2.4.18-26.8.0) > cups-1.1.18 > samba 2.2.8 > netatalk-1.6.1 > > > I have windows clients successfully installing and printing to printers > over samba and macs over netatalk. I'm using the stock Adobe drivers. > Windows 2000 and Windows XP clients successfully grab drivers off of the > print$ share without a glitch. But Windows 98 gets stuck partway. > After it makes progress pulling the Adobe files off, it gets stuck on > the actuall ppd for the printer. > > > > I get the following windows dialog box: > ----------------------------------------------------------------------- > The file 'K100_HP4050.PPD on Network printer driver files cannot be > found. Setup had trouble copying a file. Click OK to try copying the > file again. If this message reappears, quit Setup and then try running > Setup again. > > Copy files from: > \\PRINTING2\PRINT$\WIN40\0 > ----------------------------------------------------------------------- > > > > If I click on the "Details" button I get this windows dialog: > ----------------------------------------------------------------------- > The following error occurred: 'No more files' (error #12). > > Setup could not finish opening a file on the source disk. > > Source file: '\\PRINTING2\PRINT$\WIN40\0\K100_HP4050.PPD' > Destination file: 'C:\WINDOWS\SYSTEM\K100_HP4050.PPD=K100_HP4050.PPD' > ----------------------------------------------------------------------- > If I elect to skip this file, the rest of the Adobe files come off of > the share. I can even print a test page at this point. > > Then, if I look at the share \\Printing2\print$\WIN40\0, I can see and > manually copy the file down to the client. > > > > Here is my smb.conf: > #======================= Global Settings==============================> [global] > workgroup = POTSDAM > netbios name = Printing2 > server string = Print Server > security = domain > encrypt passwords = yes > password server = * > hosts allow = 137.143. > log level = 3 > log file = /var/log/samba/log.samba > max log size = 50 > > printing = cups > printcap name = cups > load printers = yes > > > #======================= Share Definitions============================> [printers] > comment = All Printers > path = /var/spool/samba > browseable = no > public = yes > guest ok = yes > writable = no > printable = yes > printer admin = admin, root > > [print$] > comment = Printer Drivers for Windows > path = /etc/samba/drivers > browseable = yes > guest ok = yes > read only = yes > write list = admin, root > > > and here is the output of cupsaddsmb: > ----------------------------------------------------------------------- > [root@comp11704 samba]# cupsaddsmb -U admin -v K100_HP4050 > Password for admin required to access localhost via SAMBA: > Running command: smbclient //localhost/print\$ -N -U'admin%secret' -c > 'mkdir W32X86;put /var/spool/cups/tmp/3e9c53a1477fa > W32X86/K100_HP4050.PPD;put /usr/share/cups/drivers/ADOBEPS5.DLL > W32X86/ADOBEPS5.DLL;put /usr/share/cups/drivers/ADOBEPSU.DLL > W32X86/ADOBEPSU.DLL;put /usr/share/cups/drivers/ADOBEPSU.HLP > W32X86/ADOBEPSU.HLP' > added interface ip=137.143.110.107 bcast=137.143.111.255 > nmask=255.255.240.0 > Domain=[POTSDAM] OS=[Unix] Server=[Samba 2.2.8] > NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 > putting file /var/spool/cups/tmp/3e9c53a1477fa as > \W32X86/K100_HP4050.PPD (15481.7 kb/s) (average 15482.4 kb/s)putting > file /usr/share/cups/drivers/ADOBEPS5.DLL as \W32X86/ADOBEPS5.DLL > (5958.3 kb/s) (average 6205.7 kb/s) > putting file /usr/share/cups/drivers/ADOBEPSU.DLL as > \W32X86/ADOBEPSU.DLL (10192.2 kb/s) (average 6781.6 kb/s) > putting file /usr/share/cups/drivers/ADOBEPSU.HLP as > \W32X86/ADOBEPSU.HLP (2002.0 kb/s) (average 6347.1 kb/s) > > Running command: rpcclient localhost -N -U'admin%secret' -c 'adddriver > "Windows NT x86" > "K100_HP4050:ADOBEPS5.DLL:K100_HP4050.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"' > cmd = adddriver "Windows NT x86" > "K100_HP4050:ADOBEPS5.DLL:K100_HP4050.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL" > Printer Driver K100_HP4050 successfully installed. > > Running command: smbclient //localhost/print\$ -N -U'admin%secret' -c > 'mkdir WIN40;put /var/spool/cups/tmp/3e9c53a1477fa > WIN40/K100_HP4050.PPD;put /usr/share/cups/drivers/ADFONTS.MFM > WIN40/ADFONTS.MFM;put /usr/share/cups/drivers/ADOBEPS4.DRV > WIN40/ADOBEPS4.DRV;put /usr/share/cups/drivers/ADOBEPS4.HLP > WIN40/ADOBEPS4.HLP;put /usr/share/cups/drivers/DEFPRTR2.PPD > WIN40/DEFPRTR2.PPD;put /usr/share/cups/drivers/ICONLIB.DLL > WIN40/ICONLIB.DLL;put /usr/share/cups/drivers/PSMON.DLL > WIN40/PSMON.DLL;' > added interface ip=137.143.110.107 bcast=137.143.111.255 > nmask=255.255.240.0 > Domain=[POTSDAM] OS=[Unix] Server=[Samba 2.2.8] > NT_STATUS_OBJECT_NAME_COLLISION making remote directory \WIN40putting > file /var/spool/cups/tmp/3e9c53a1477fa as \WIN40/K100_HP4050.PPD > (15481.7 kb/s) (average 15482.4 kb/s) > putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM > (6854.7 kb/s) (average 7060.1 kb/s) > putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV > (14380.3 kb/s) (average 10805.3 kb/s) > putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP > (19185.4 kb/s) (average 11265.8 kb/s) > putting file /usr/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD > (6587.6 kb/s) (average 11214.9 kb/s) > putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL > (6408.8 kb/s) (average 10786.7 kb/s) > putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL > (3733.3 kb/s) (average 10299.1 kb/s) > > Running command: rpcclient localhost -N -U'admin%secret' -c 'adddriver > "Windows 4.0" > "K100_HP4050:ADOBEPS4.DRV:K100_HP4050.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADOBEPS4.DRV,K100_HP4050.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL"' > cmd = adddriver "Windows 4.0" > "K100_HP4050:ADOBEPS4.DRV:K100_HP4050.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADOBEPS4.DRV,K100_HP4050.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL" > Printer Driver K100_HP4050 successfully installed. > > Running command: rpcclient localhost -N -U'admin%secret' -c 'setdriver > K100_HP4050 K100_HP4050' > cmd = setdriver K100_HP4050 K100_HP4050 > Succesfully set K100_HP4050 to driver K100_HP4050. > > [root@comp11704 samba]# > ------------------------------------------------------------------------ > > > I really don't know what the problem is. I have even tried removing the > contents of /etc/samba/drivers and reinstalling all the printers with > cupsaddsmb...no go. Any help would be greatly appreciated. Thanks. > > -- > Jeff Hardy > SUNY Potsdam