[Samba] driver download problem - win 98 + cups
Jeff Hardy
hardyjm at potsdam.edu
Wed Apr 16 16: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.
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 at 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 at 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
More information about the samba
mailing list