How do I configure TCP/IP printing in windows to print to a linux print spooler?
Yes I know this question is covered in countless other blogs and web pages, but what's another notch on post.
Go to control panel and add a printer -> Specify local printer (but do not choose detect printer automatically) -> Create New port ( select Standard TCP/IP Port) -> New port wizard comes up
Enter hostname or IP address -> Select Custom (click settings) -> Protocol select LPR -> Enter queue name -> click the checkbox "LPR byte counting enabled" -> Click Ok -> Next -> Finish
Back at the add printer wizard select the print driver -> enter name and default printer options -> Sharing options -> Testing options -> Finish
Prior to having "LPR byte counting enabled" I noticed LPD logging "Error while reading file - Numerical result out of range". So when I looked online I found that if "LPR byte counting enabled" is not checked the windows 2000 implementation of lpr doesn't send the file length to the unix LPD as it expects it sends a value that resolves in terabytes hence the "out of range" portion of the error.
An excellent writeup of the protocol implementation differences is located
here.