<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
hi,<br>
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 :<br>
<pre wrap="">which rpcclient</pre>
<br>
:D<br>
<br>
Kurt Pfeifle wrote:
<blockquote cite="mid29042-cups.general@news.easysw.com" type="cite">
  <blockquote type="cite">
    <pre wrap="">Hi,

I&#180;m trying to export drivers from Cups to Samba for windows clients, i&#180;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@lab drivers]# ldd /usr/local/samba/sbin/smbd
......
libcups.so.2 => /usr/lib/libcups.so.2 (0x00197000)
......
    </pre>
  </blockquote>
  <pre wrap=""><!---->

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...]

[....]

  </pre>
  <blockquote type="cite">
    <pre wrap="">[print$]
       comment = Printer Drivers
       path = /etc/samba/drivers
       browseable = no
    </pre>
  </blockquote>
  <pre wrap=""><!---->
[....]

  </pre>
  <blockquote type="cite">
    <pre wrap="">[root@lab drivers]# lpstat -v
device for LexLab: socket://172.16.0.10

[root@lab drivers]# pwd
/usr/share/cups/drivers
[root@lab drivers]# tree
...
|-- cups6.inf
|-- cups6.ini
|-- cupsps6.dll
|-- cupsui6.dll
|-- ps5ui.dll
|-- pscript.hlp
|-- pscript.ntf
`-- pscript5.dll
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Looks good.

  </pre>
  <blockquote type="cite">
    <pre wrap="">[root@lab drivers]# cupsaddsmb -H lab -U root -v LexLab

[root@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)
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Looks good.

  </pre>
  <blockquote type="cite">
    <pre wrap="">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)
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Looks good.

  </pre>
  <blockquote type="cite">
    <pre wrap="">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)!
    </pre>
  </blockquote>
  <pre wrap=""><!---->
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
<a class="moz-txt-link-abbreviated" href="mailto:cups@easysw.com">cups@easysw.com</a>
<a class="moz-txt-link-freetext" href="http://lists.easysw.com/mailman/listinfo/cups">http://lists.easysw.com/mailman/listinfo/cups</a>


  </pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<img src="cid:part1.05040904.06050605@pessoaseprocessos.com" border="0"></div>
</body>
</html>