[Samba] add x64 printer drivers with cupsaddsmb fail

Julien VINCENT julien.vincent at locean-ipsl.upmc.fr
Mon Jan 28 09:41:12 MST 2013


Hello,

I have set up a cups print server and would like to offer Point'n'Print 
functionnality for the windows computer clients.
So, i've followed informations from the man page of cupsaddsmb as 
resumed below:

-configure smb.conf
-add x86 and x64 PS drivers (from x86 and x64 windows 2008 installs).
-add x86 and x64 CUPS drivers (from cups SVN)

I then launch cupsaddsmb using the following command : "[root at newcups]# 
cupsaddsmb -H localhost -U root -h localhost -a -v"
It showed me lots of line scrolls through the terminal (.. command is 
stuck in an endless loop).

Here is the beginning of the output (one cycle):


/[root at newcups]# cupsaddsmb -H localhost -U root -h localhost -a -v
Un mot de passe pour root est nécessaire pour accéder à localhost via 
SAMBA :

Commande en cours d'exécution : smbclient //localhost/print$ -N -A 
/tmp/cupsjenHRl -c « mkdir W32X86;put /tmp/cups4nnHkk 
W32X86/4-4555-couleur.ppd;put /usr/share/cups/drivers/ps5ui.dll 
W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp 
W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf 
W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll 
W32X86/pscript5.dll »
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.5.10-125.el6]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86
putting file /tmp/cups4nnHkk as \W32X86/4-4555-couleur.ppd (76059,5 
kb/s) (average 76060,9 kb/s)
putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll 
(119081,4 kb/s) (average 99527,7 kb/s)
putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp 
(25425,3 kb/s) (average 93352,7 kb/s)
putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf 
(129459,8 kb/s) (average 107796,2 kb/s)
putting file /usr/share/cups/drivers/pscript5.dll as 
\W32X86/pscript5.dll (106197,9 kb/s) (average 107477,0 kb/s)

Commande en cours d'exécution : smbclient //localhost/print$ -N -A 
/tmp/cupsjenHRl -c « put /usr/share/cups/drivers/cups6.ini 
W32X86/cups6.ini;put /usr/share/cups/drivers/cupsps6.dll 
W32X86/cupsps6.dll;put /usr/share/cups/drivers/cupsui6.dll 
W32X86/cupsui6.dll »
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.5.10-125.el6]
putting file /usr/share/cups/drivers/cups6.ini as \W32X86/cups6.ini 
(65,4 kb/s) (average 65,4 kb/s)
putting file /usr/share/cups/drivers/cupsps6.dll as \W32X86/cupsps6.dll 
(12272,2 kb/s) (average 6169,4 kb/s)
putting file /usr/share/cups/drivers/cupsui6.dll as \W32X86/cupsui6.dll 
(136720000,0 kb/s) (average 12845,2 kb/s)

Commande en cours d'exécution : rpcclient localhost -N -A 
/tmp/cupsjenHRl -c « adddriver "Windows NT x86" 
"4-4555-couleur:pscript5.dll:4-4555-couleur.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,4-4555-couleur.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll" »
Printer Driver 4-4555-couleur successfully installed.

Commande en cours d'exécution : smbclient //localhost/print$ -N -A 
/tmp/cupsjenHRl -c « mkdir x64;put /tmp/cups4nnHkk 
x64/4-4555-couleur.ppd;put /usr/share/cups/drivers/x64/ps5ui.dll 
x64/ps5ui.dll;put /usr/share/cups/drivers/x64/pscript.hlp 
x64/pscript.hlp;put /usr/share/cups/drivers/x64/pscript.ntf 
x64/pscript.ntf;put /usr/share/cups/drivers/x64/pscript5.dll 
x64/pscript5.dll »
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.5.10-125.el6]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \x64
putting file /tmp/cups4nnHkk as \x64/4-4555-couleur.ppd (95073,9 kb/s) 
(average 95076,2 kb/s)
putting file /usr/share/cups/drivers/x64/ps5ui.dll as \x64/ps5ui.dll 
(137997,8 kb/s) (average 120830,5 kb/s)
putting file /usr/share/cups/drivers/x64/pscript.hlp as \x64/pscript.hlp 
(26131,2 kb/s) (average 112221,7 kb/s)
putting file /usr/share/cups/drivers/x64/pscript.ntf as \x64/pscript.ntf 
(129726,4 kb/s) (average 119592,8 kb/s)
putting file /usr/share/cups/drivers/x64/pscript5.dll as 
\x64/pscript5.dll (123097,6 kb/s) (average 120323,4 kb/s)

Commande en cours d'exécution : smbclient //localhost/print$ -N -A 
/tmp/cupsjenHRl -c « put /usr/share/cups/drivers/x64/cups6.ini 
x64/cups6.ini;put /usr/share/cups/drivers/x64/cupsps6.dll 
x64/cupsps6.dll;put /usr/share/cups/drivers/x64/cupsui6.dll 
x64/cupsui6.dll »
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.5.10-125.el6]
putting file /usr/share/cups/drivers/x64/cups6.ini as \x64/cups6.ini 
(70,3 kb/s) (average 70,3 kb/s)
putting file /usr/share/cups/drivers/x64/cupsps6.dll as \x64/cupsps6.dll 
(16998,3 kb/s) (average 8535,2 kb/s)
putting file /usr/share/cups/drivers/x64/cupsui6.dll as \x64/cupsui6.dll 
(194560000,0 kb/s) (average 18035,2 kb/s)

Commande en cours d'exécution : rpcclient localhost -N -A 
/tmp/cupsjenHRl -c « adddriver "Windows x64" 
"4-4555-couleur:pscript5.dll:4-4555-couleur.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,4-4555-couleur.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll" »
result was WERR_UNKNOWN_PRINTER_DRIVER

Impossible d'installer les fichiers des pilotes d'impression pour 
Windows 2000 (1)./


These output can be separated in 2 parts:
- The first part install the "Windows NT x86" drivers and no problem occurs.

- The 2nd part with "Windows x64" failed with 
WERR_UNKNOWN_PRINTER_DRIVER error message.

I really dont know what could be the problem, thank you in advance for 
your help.

here is my config:

[root at newcups x64]# uname -r
2.6.32-279.el6.x86_64

[root at newcups x64]# cat /etc/redhat-release
Scientific Linux release 6.3 (Carbon)

[root at newcups x64]# rpm -qa|grep samba
samba-3.5.10-125.el6.x86_64
samba-common-3.5.10-125.el6.x86_64
samba-client-3.5.10-125.el6.x86_64
samba-winbind-clients-3.5.10-125.el6.x86_64

Julien


More information about the samba mailing list