[cups.general] Exporting Drivers to SAMBA ( CUPSADDSMB )

Duarte Lázaro duarte.lazaro at pessoaseprocessos.com
Thu Apr 5 04:13:46 PDT 2007


hi,
just a quick replay, i just copied rpcclient to /sbin , and was able to 
instala the drivers, i´m going out for the weekend, on monday, i talk to 
your again, thanks by the tip :

which rpcclient


:D

Kurt Pfeifle wrote:
>> 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)
>> .....
>>     
>
>
> Are you sure you have only one Samba installation on your system? Or, if you had a previous installation, that this is removed completely? [Your smbd seems to be in /usr/local/..., but the path to your "print$" share of Windows client drivers is in /etc/samba/drivers...]
>
> [....]
>
>   
>> [print$]
>>        comment = Printer Drivers
>>        path = /etc/samba/drivers
>>        browseable = no
>>     
>
> [....]
>
>   
>> [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
>>     
>
> Looks good.
>
>   
>> [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)
>>     
>
> Looks good.
>
>   
>> 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)
>>     
>
> Looks good.
>
>   
>> 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)!
>>     
>
> Hmmm....
>
> Can you please also post the output of these commands:
>
>   tree /etc/samba/drivers/
>   tree -pud /etc/samba/drivers/
>
> Is there a "2" and/or a "3" sub directory in /etc/samba/drivers/W32X86/?
>
>
> ---------------
>
> I'll try and test myself this evening. I may have access to a Samba 3.0.24 with a CUPS 1.2.7 system (Debian Sid/Sidux).
>
>
> What you can test yourself in the meantime:
>
>  (a) use all the commandline parameters for the hosts involved (even
>      if it is localhost for each one):
>
>        cupsaddsmb -H localhost \
>                   -U root      \
>                   -h localhost \
>                   -v           \
>                   LexLab
>
>  (b) run, as user as well as as root, these commands and post the
>      results:
>
>        which smbclient
>        which rpcclient
>
>  (c) not sure if this trick will help to get a more verbose output from
>      Samba/rpcclient:
>
>        (1) move your rpcclient binary to /usr/bin/rpcclient.orig
>
>        (2) create a shellscript with these contents:
>            ---------------- snip -----------------
>            #!/bin/bash
>            exec /usr/bin/rpcclient.orig -d 3 "${@}"
>            ---------------- snap -----------------
>
>            [the "-d 3" adds a debug level 3 to each call of rpcclient]
>
>            Oh, wait: you may be able to avoid that hack; just add a
>            "log level = 3" directive to your smb.conf ([global] section)
>            and it may already make rpcclient give more feedback. This
>            may give a hint. (After that, try "log level = 5"...)
>
> Cheers,
> --
> Kurt Pfeifle
> System & Network Printing Consultant -- Linux/Unix/Windows/Samba/CUPS
> Infotec Deutschland GmbH - A RICOH Company ........ Stuttgart/Germany
>
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups
>
>
>   


-- 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cups.org/pipermail/cups/attachments/20070405/4663a17c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: duartelazaro.JPG
Type: image/jpeg
Size: 13150 bytes
Desc: not available
URL: <https://lists.cups.org/pipermail/cups/attachments/20070405/4663a17c/attachment-0001.jpe>


More information about the cups mailing list