Push Windows Printer Drivers with CUPS - Page 2
CUPS Windows DriversDownload and unpack the CUPS Windows drivers, currently cups-windows-6.0-source.tar.gz. Enter the source directory and run this command:
# make install
Creating directory /usr/share/cups/drivers...
Now you need either the Postscript drivers copied from a Windows PC, or get the Adobe drivers, winsteng.exe. They're all the same; get the Adobe drivers if you can't find them on your Windows PC.
To use the Adobe drivers, download and install them on a Windows system. You don't need a printer, you just want to extract the files. On Windows 2000/XP, look for the windowssystem32spooldriversw32x86 directory. On Windows 9x/ME look for the WIN40 directory. Copy the contents of these directories into /usr/share/cups/drivers directory on the Samba/CUPS server. This is how it looks for Windows 2000/XP:
Add these for Windows 9x/ME:
Be to sure to convert all filenames to lowercase. If you don't cupsaddsmb won't work.
Export CUPS Drivers to Samba
# smbpasswd -a root
New SMB password:
Retype new SMB password:
# ifdown eth0To export the drivers, use the command:
# cupsaddsmb -H localhost -U root -a -v
Important smb.conf Tweak
Go back to your smb.conf and make a small but very important change. Change security = user to security = share. If you don't, you'll have to set up Samba users and passwords for all of your users.
Restart CUPS and Samba, and rejoin the network:
# /etc/init.d/samba restart
# /etc/init.d/cupsys restart
# ifup eth0
Automagic Windows Installation
Give Samba a minute or two to broadcast itself to your LAN. Then go to any Windows PC on your LAN, run the Add Printer Wizard, and voila! Automatic printer installation from the Samba server.
If you get a message like "the printer server does not have the correct printer driver installed" you have a couple of options. First, test the offending .ppd file with the cupstestppd command. PPD files are plain text files, so if you can find an error you can fix it.
Another option is to search for a .ppd file that Windows will accept. You might find this on another Windows PC, on the same Adobe page where you downloaded the Postscript drivers, or on linuxprinting.org.
Finally, the worst-case scenario is you have to hunt down a driver CD, and don't forget your Windows CD, and install the drivers locally. True, this means leaving the lair, but with a bit of luck it won't happen often.
The Official Samba-3 HOWTO and Reference Guide