This Sheet describes the procedure to set-up Samba so that Windows 95/98 computers can automatically install printer drivers across the network when setting up the printer using Windows' Add New Printer Wizard.
# mkdir /usr/smbshares/printer
# chmod 0775 /usr/smbshares/printer
# chown root:staff /usr/smbshares/printer
[printer$]
path = /usr/smbshares/printer
write list = me
guest ok = Yes
browseable = Yes
Restart smbd:
# kill -HUP `cat /var/run/smbd.pid`
If the printer isn't listed, as for the HP LaserJet 2100, use the OEM disk that came with the printer and install the printer driver on a Windows 95/98 machine. Then look through the OEM's .inf file for the name string. For the HP LaserJet 2100 Series PCL 6, the .inf file is HP2100_6.INF.
Make note of the exact case-sensitive name string.
# make_printerdef HP2100_6.inf "HP LaserJet 2100 Series PCL 6" >> printers.def
Watch out for case-sensitivity.
Make_printerdef will print out a list of required files to the console. Copy all the files listed from the Windows machine to /usr/smbshares/printer. Make sure the file names match EXACTLY the names listed, case and all.
[global]
printer driver file = /usr/smbshares/printer/printers.def
[LaserJet]
printer driver = HP LaserJet 2100 Series PCL 6
printer driver location = \\%h\PRINTER$
Restart smbd.