I'm trying to work with a CUPS printer and make it visible
via SAMBA. I've been following the cookbook (from the CUPS
site), but it just doesn't work. This is based on SAMBA-3.0.0
(beta from RedHat)
Here's the output of the 'cupsaddsmb' command which is just
a automated mechanism for adding the printer, drivers, etc.
[root@hermes SPECS]# cupsaddsmb -v -U root -a
Password for root required to access localhost via SAMBA:
Running command: smbclient //localhost/print\$ -N -U'root%xxx' -c
'mkdir W32X86;put /var/spool/cups/tmp/3fe8b6e353392 W32X86/hp_lp.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'
OS=[Unix] Server=[Samba 3.0.0beta3]
putting file /var/spool/cups/tmp/3fe8b6e353392 as \W32X86/hp_lp.PPD (19141.7
kb/s) (average 19143.6 kb/s)
putting file /usr/share/cups/drivers/ADOBEPS5.DLL as \W32X86/ADOBEPS5.DLL
(12767.8 kb/s) (average 12945.0 kb/s)
putting file /usr/share/cups/drivers/ADOBEPSU.DLL as \W32X86/ADOBEPSU.DLL
(6625.0 kb/s) (average 10687.8 kb/s)
putting file /usr/share/cups/drivers/ADOBEPSU.HLP as \W32X86/ADOBEPSU.HLP
(9008.8 kb/s) (average 10630.0 kb/s)
Running command: rpcclient localhost -N -U'root%xxx' -c 'adddriver
"Windows NT x86"
"hp_lp:ADOBEPS5.DLL:hp_lp.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"'
Printer Driver hp_lp successfully installed.
Running command: smbclient //localhost/print\$ -N -U'root%xxx' -c
'mkdir WIN40;put /var/spool/cups/tmp/3fe8b6e353392 WIN40/hp_lp.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;'
OS=[Unix] Server=[Samba 3.0.0beta3]
putting file /var/spool/cups/tmp/3fe8b6e353392 as \WIN40/hp_lp.PPD (19141.7
kb/s) (average 19143.6 kb/s)
putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM (8782.5
kb/s) (average 8941.9 kb/s)
putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV
(18078.1 kb/s) (average 13679.2 kb/s)
putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP
(21317.0 kb/s) (average 14156.6 kb/s)
putting file /usr/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD (3293.9
kb/s) (average 13863.0 kb/s)
putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL (16479.7
kb/s) (average 13981.2 kb/s)
putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL (4000.0 kb/s)
(average 13154.4 kb/s)
Running command: rpcclient localhost -N -U'root%xxx' -c 'adddriver
"Windows 4.0"
"hp_lp:ADOBEPS4.DRV:hp_lp.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADOBEPS4.DRV:hp_lp.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL"'
Printer Driver hp_lp successfully installed.
Running command: rpcclient localhost -N -U'root%xxx' -c 'setdriver
hp_lp hp_lp'
result was WERR_INVALID_PRINTER_NAME
Password for root required to access localhost via SAMBA:
Running command: rpcclient localhost -N -U'root%' -c 'setdriver
hp_lp hp_lp'
result was WERR_INVALID_PRINTER_NAME
ERROR: Unable to install Windows printer driver files (256)!
Note: I've been trying to get this working for quite a while now
and would really appreciate any help I can get.
Thanks.
--
Gary Thomas <gary@chez-thomas.org>