I bought a second-hand HP LaserJet 1200 series for $80 from an Internet cafe which was going out of business. An evening spent with cups, and I can print from windows, have driver auto-download going (for Win2K+ at least) and also got a PDF-output print which writes to /home/tbble/cups-pdf for output. ^_^
The hardest bit was the driver-upload. I had root disabled in samba (sensibly) but the samba drivers directory /var/lib/samba/printers/ is only writable by root, as you’d expect. I ended up enabling root for samba for the moment.
rpcclient -U root -c ‘adddriver “Windows NT x86” “CUPS-pdf:pscript5.dll:PostscriptColor.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript.ntf” 3’ 192.168.0.1
rpcclient -U root -c ‘setdriver Keitarou CUPS-pdf’ 192.168.0.1
And in a reversal, jobs are spooled in /tmp, since everyone can write there.
I’ll look forward to samba4 for slightly more sensibility. ^_^