[Samba] Samba 2.2 + CUPS driver download work for anyone?
kpfeifle at danka.de
Sun Apr 6 17:22:17 GMT 2003
Brian Wiese bwiese at hms4emc.com wrote on Samba-Digest:
> Sat Apr 5 17:15:22 GMT 2003
> I have tried everything I could possibly think of to get printer driver
> download working with Samba 2.2.3a-6 and CUPS 1.1.15-4 (latest Debian
> unstable packages). I am wondering if anyone else has go this to work at
> all (with newer versions of samba or cups?)
But it may be a special problem of the Debian package(s). Due to Debian's
policy of no upgrading any "stable" package (apart from patching security
fixes into it), you are stuck with Samba-2.2.3a -- unless you compile
yourself or find some unofficial debs.
> -- if so please let me know to
> give me some hope.
It works if done right.
> Or else I am thinking this is officially 'broken'.
> CUPS is working perfectly with the printers installed, even Win98 clients
> can print using the shared network HP8100N printer via Samba with their own
> locally installed printer drivers (from manufacture disks). I would simply
> like to automated the printer driver selection and installation for the
> Win98 clients. (right click on printer -> install should "just work"). What
> else do I need to do? Can I just place some actual drivers files in the
> [print$] share manually??
While it *can* be done manually, it's not enough to simply copy it over --
-- you also need to successfully run the "rpcclient setdriver" and
"rpcclient adddriver" commands. Too little time to explain now here.
(The upcoming Samba-HOWTO-Collection for 3.0 should have the steps written
> Thanks in advance! ...
> I've setup the [print$] share:
> and am trying to setup CUPS for driver download:
> // These printers work fine, from UNIX and Win98 clients
> root at WS-072:/var/log/samba# lpstat -v
> device for HP8100N: socket://192.168.2.27:9100/
> device for HP8100Nps: socket://192.168.2.27:9100/
> // PPD files used for CUPS Printers, both work
> root at WS-072:/etc/cups/ppd# ls -l
> total 248
> -rw-r--r-- 1 root root 122039 Apr 6 14:19 HP8100N.ppd
> -rw-r--r-- 1 root root 122039 Apr 6 14:23 HP8100Nps.ppd
What's the supposed difference between the to printers, if they use
the same PPD?
> // ADOBE Postscript drivers
> root at WS-072:/usr/share/cups/drivers# ls -l
> total 2232
> -rwxr--r-- 1 root root 575573 Mar 30 12:38 ADFONTS.MFM
> -rwxr--r-- 1 root root 1295840 Mar 30 12:38 ADOBEPS4.DRV
> -rwxr--r-- 1 root root 196460 Mar 30 12:38 ADOBEPS4.HLP
> -rwxr--r-- 1 root root 13492 Mar 30 12:39 DEFPRTR2.PPD
> -rwxr--r-- 1 root root 118128 Mar 30 12:38 ICONLIB.DLL
> -rwxr--r-- 1 root root 57344 Mar 30 12:39 PSMON.DLL
> /* ADOBEPS5.DLL, ADOBEPSU.DLL, ADOBEPSU.HLP were not found on the
> /* adobe.com website for either their Universal 1.0.6 drivers
> /* (winsteng.exe) or their Postscript 4.2.6 drivers for Win9x
> /* (aps426eng.exe). These files where copied over from a Windows 98
> /* machine, are the missing files necessary for CUPS driver download??
No. You just need to have the files listed in "man cupsaddsmb".
(BTW -- more recent versions of CUPS also work with the "CUPS PostScript
Driver for WinNT4/2K/XP", available as "cups-samba.tar.gz" from the
CUPS download area... "man cupsaddsmb" mentions it, if your version
is recent enough.)
> // Running the cupsaddsmb program to copy the CUPS printer drivers
> // to the samba [print$] share -- unsuccessfully.
> root at WS-072:~# cupsaddsmb -U root -a
> Warning: No PPD file for printer "HP8100N"!
Do you get (long) output to the commands
lpoptions -p HP8100N -l
lpoptions -p HP8100Nps -l
?? If not, your "TempDir" varible (as set in cupsd.conf) is probably
not writeable. It defaults to /var/spool/cups/tmp/ ...
> /* Why is it giving this error?
Check for the access rights to "TEMPDIR".
Use "strace cupsaddsmb -v HP9100N" to see if you find out more then.
> The proper PPD files are in
> /* /etc/cups/ppd/ as shown above and placed there by the CUPS
> /* web-based install and command line "lpadmin -p HP8100N -v \
> /* socket://192.168.2.27:9100 -E -P /usr/share/cups/model/HP8100N.PPD"
> /* printer install process.
> // PPD files of course not added to the [print$] share
More information about the samba