[Samba] using cupsaddsmb with W98

Norbert Gomes norbert.gomes at orleans-tours.iufm.fr
Thu Apr 1 12:19:41 GMT 2004


Hello

I've got some problems downloading Adobe PostScript printer drivers on a 
Windows 98 client :

On the server side (Red Hat 9  / Samba 3.0.2 / Cups 1.1.17) :

I installed succesfully my printers with Cups and they work fine on Linux
I ran cupsaddsmb tool to copy the Adobe files in the [print$] directory 
which gives this result :

in /etc/samba/W32X86/2 : cupsdrvr.dll    cups.hlp    cupsui.dll    
printer.ppd
in /etc/samba/WIN40 : ADFONTS.DLL    DEFPRTR2.PPD    ICONLIB.DLL    
PSMON.DLL
in /etc/samba/WIN40/0 : ADOBEPS4.DRV    ADOBEPS4.HLP    printer.PPD

On the client side (Windows 98) :

I install the printer via the Network Neighbourhood but only the 
ADOBEPS4.DRV file is copied from the server and Windows can't print the 
Test Page.
If I manually install the Adobe Drivers on the client, I can use the 
printer.

I think that there is an error while the files are copied to the client 
but I found no information in Samba's log and Cups logs.


Here is the output of cupsaddsmb command :

Running command: smbclient //localhost/print\$ -N -U'user%password' -c 
'mkdir W32X86;put /var/tmp/406c0439bf0e2 W32X86/printer.ppd;put 
/usr/share/cups/drivers/cupsdrvr.dll W32X86/cupsdrvr.dll;put 
/usr/share/cups/drivers/cupsui.dll W32X86/cupsui.dll;put 
/usr/share/cups/drivers/cups.hlp W32X86/cups.hlp'
Domain=[FORMATION] OS=[Unix] Server=[Samba 3.0.2a]
putting file /var/tmp/406c0439bf0e2 as \W32X86/printer.ppd (2328,5 kb/s) 
(average 2328,5 kb/s)
putting file /usr/share/cups/drivers/cupsdrvr.dll as 
\W32X86/cupsdrvr.dll (3724,0 kb/s) (average 3263,1 kb/s)
putting file /usr/share/cups/drivers/cupsui.dll as \W32X86/cupsui.dll 
(12399,3 kb/s) (average 4495,8 kb/s)
putting file /usr/share/cups/drivers/cups.hlp as \W32X86/cups.hlp 
(3475,0 kb/s) (average 4464,4 kb/s)
                                                                                                                            
Running command: rpcclient localhost -N -U'user%password' -c 'adddriver 
"Windows NT x86" 
"printer:cupsdrvr.dll:printer.ppd:cupsui.dll:cups.hlp:NULL:RAW:NULL"'
Printer Driver printer successfully installed.
                                                                                                                            
Running command: smbclient //localhost/print\$ -N -U'user%password' -c 
'mkdir WIN40;put /var/tmp/406c0439bf0e2 WIN40/printer.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;'
Domain=[FORMATION] OS=[Unix] Server=[Samba 3.0.2a]
putting file /var/tmp/406c0439bf0e2 as \WIN40/printer.PPD (2149,4 kb/s) 
(average 2149,4 kb/s)
putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM 
(6691,5 kb/s) (average 5251,3 kb/s)
putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV 
(7231,2 kb/s) (average 6414,0 kb/s)
putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP 
(1814,1 kb/s) (average 5101,3 kb/s)
putting file /usr/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD 
(1644,3 kb/s) (average 5036,3 kb/s)
putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL 
(1460,2 kb/s) (average 4475,7 kb/s)
putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL 
(3500,0 kb/s) (average 4445,7 kb/s)
 
Running command: rpcclient localhost -N -U'user%password' -c 'adddriver 
"Windows 4.0" 
"printer:ADOBEPS4.DRV:printer.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADOBEPS4.DRV:printer.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL"'
Printer Driver printer successfully installed.
 
Running command: rpcclient localhost -N -U'user%password' -c 'setdriver 
printer printer'
Succesfully set printer to driver printer.
------------------------------------------------------------------------------------------------------------------------
And here is my smb.conf sections related to printers :

[global]
   load printers = yes
   printing = cups
   printcap name = /etc/printcap
   printer admin = @admin

[printers]
   comment = Imprimantes
   path = /var/tmp
   browseable = no
   printable = yes
   printer admin = @admin

[print$]
   comment = Drivers PostScript pour les imprimantes
   path = /etc/samba/drivers
   browseable = yes
   read only = yes     
   write list = @admin admin
 


I don't understand what's going on, can someone help me ?

Thank you

Norbert GOMES






More information about the samba mailing list