[cups.general] Exporting drivers to SAMBA ( CUPSADDSMB )
Duarte Lázaro
duarte.lazaro at pessoaseprocessos.com
Thu Apr 5 06:01:39 PDT 2007
Hi,
I´m trying to export drivers from Cups to Samba for windows clients, i´m
able to print allready, but have to install the drivers some other way (
CD,Floder..).
i getting an error while, using cupsaddsmb. Here are some configurations
and error.
-----------------------------------------------------
[root at lab drivers]# ldd /usr/local/samba/sbin/smbd
.....
libcups.so.2 => /usr/lib/libcups.so.2 (0x00197000)
.....
Smb.conf
[global]
....
##PRINTERS
load printers = yes
printing = cups
printcap name = cups
[printers]
comment = Printers
path = /var/spool/samba
browseable = Yes
public = yes
guest ok = Yes
writable = no
printable = Yes
; use client driver = no
[print$]
comment = Printer Drivers
path = /etc/samba/drivers
browseable = no
guest ok = no
read only = yes
write list = root
[root at lab drivers]# lpstat -v
device for LexLab: socket://172.16.0.10
[root at lab drivers]# pwd
/usr/share/cups/drivers
[root at lab drivers]# tree
..
|-- cups6.inf
|-- cups6.ini
|-- cupsps6.dll
|-- cupsui6.dll
|-- ps5ui.dll
|-- pscript.hlp
|-- pscript.ntf
`-- pscript5.dll
0 directories, 8 files
[root at lab drivers]# cupsaddsmb -H lab -U root -v LexLab
[root at lab drivers]# cupsaddsmb -H 127.0.0.1 -U root -v LexLab
Password for root required to access 127.0.0.1 via SAMBA:
Running command: smbclient //127.0.0.1/print$ -N -A
/var/spool/cups/tmp/4613bd9b840ba -c 'mkdir W32X86;put
/var/spool/cups/tmp/4613bd9814181 W32X86/LexLab.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'
Server's Role (logon server) NOT ADVISED with domain-level security
Domain=[BATATINHA] OS=[Unix] Server=[Samba 3.0.24]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86
putting file /var/spool/cups/tmp/4613bd9814181 as \W32X86/LexLab.ppd
(1136.3 kb/s) (average 1136.3 kb/s)
putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll
(3150.0 kb/s) (average 2155.9 kb/s)
putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp
(25425.3 kb/s) (average 2446.8 kb/s)
putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf
(51604.1 kb/s) (average 10208.5 kb/s)
putting file /usr/share/cups/drivers/pscript5.dll as
\W32X86/pscript5.dll (55561.8 kb/s) (average 13731.2 kb/s)
Running command: smbclient //127.0.0.1/print$ -N -A
/var/spool/cups/tmp/4613bd9b840ba -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'
Server's Role (logon server) NOT ADVISED with domain-level security
Domain=[BATATINHA] OS=[Unix] Server=[Samba 3.0.24]
putting file /usr/share/cups/drivers/cups6.ini as \W32X86/cups6.ini
(720000.0 kb/s) (average inf kb/s)
putting file /usr/share/cups/drivers/cupsps6.dll as \W32X86/cupsps6.dll
(125680000.0 kb/s) (average inf kb/s)
putting file /usr/share/cups/drivers/cupsui6.dll as \W32X86/cupsui6.dll
(136720000.0 kb/s) (average inf kb/s)
Running command: rpcclient 127.0.0.1 -N -A
/var/spool/cups/tmp/4613bd9b840ba -c 'adddriver "Windows NT x86"
"LexLab:pscript5.dll:LexLab.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,LexLab.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"'
Unable to install Windows 2000 printer driver files (2)!
----------------------------------------------------------------------------------
then the process repeat it self.
thanks in advance,
Duarte Lázaro
--
More information about the cups
mailing list