Printer Driver Download + CUPS

Michael Sweet mike at easysw.com
Sat Feb 17 10:06:02 GMT 2001


Hi, All!

I'm working on a program to automatically add/install printer drivers
for CUPS printers (http://www.cups.org); essentially this involves
the use of a PostScript Printer Description (PPD) file from CUPS and
the standard PostScript printer drivers from Windows (you can also
use the Adobe drivers...)

I'm using the current SAMBA CVS with some additional CUPS patches
(to use IPP calls instead of commands for the printing stuff)  I'm
able to add printers on Windows clients (choosing the driver on
the client machine) and print, etc. fine with these patches.

The problem comes with the driver download...

After a lot of fiddling and reading PRINTER_DRIVER2.txt, I've setup
the print$ share with the appropriate directories, copied the
necessary files (PSCRIPT.DLL, PSCRPTUI.DLL, PSCRIPT.HLP, and the
PPD file) to the driver directory, and then used rpcclient to add
the printer driver and printer.  The following were the commands I
used for the Xerox N2025:

    spooladdprinterdriver "Windows NT x86" "Xerox DP N2025 \
    PS3:PSCRIPT.DLL:N2025NT4.PPD:PSCRPTUI.DLL:\
    PSCRIPT.HLP:NULL:RAW:NULL"

    spooladdprinter N2025 N2025 "Xerox DP N2025 PS3" \
    "Samba Printer Port"

I can then access the printer from a Win NT system and it downloads
the printer driver from the SAMBA server.  However, I cannot
set the printer properties or document defaults - it claims that
the driver has *not* been downloaded even though when I double-
clicked on the printer share it said it did, and the files are
loaded under the WINNT directory...

I still need to test with some other printers/PPDs, in case this
is just specific to the Xerox driver, but it has occurred to me
that I'm doing something wrong... :)

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products                  mike at easysw.com
Printing Software for UNIX                       http://www.easysw.com




More information about the samba-technical mailing list