The last step is to modify the Samba configuration file by adding the following three options:
-
printer
driver
-
printer
driver
file
-
printer
driver
location
The
printer
driver
file
is a global option that points to the
printers.def file; place that option in your
[global]
section. The other options should be set in the printer share for which you wish to automatically configure the drivers. The value for
printer
driver
should match the string that shows up in the Printer Wizard on the Windows system. The value of the
printer
driver
location
is the pathname of the PRINTER$ share you set up, not the Unix pathname on the server. Thus, you could use the following:
[global]
printer driver file = /usr/local/samba/print/printers.def
[hpdeskjet]
path = /var/spool/samba/printers
printable = yes
printer driver = HP DeskJet 560C Printer
printer driver location = \\%L\PRINTER$
Now you're ready to test it out. At this point, remove the Windows printer that you "set up" in the first step from the list of printers in the Printers window of My Computer. If Samba asks you to delete unneeded files, do so. These files will be replaced shortly on the client, as they now exist on the Samba server.