Print to CUPS from Windows

Introduction
This is a guide to print from a Windows machine to a printer attached to a linux machine running CUPS without using Samba. This is probably the best method to use unless you have printers with drivers that need uploading or something more complex.

Configuring CUPS
If your clients have IP's in the 192.168.1.0-255 range, modify and add  in the  section. Adapt this line for your IP addresses, or add more lines like this if necessary. Now add this to :

Now restart your CUPS daemon:

Windows Client setup

 * Click Start/Settings/Printers and Faxes.
 * Click "Add a Printer".
 * Click Next.
 * Select "Add a network printer ..." and click the Next button.
 * Select "Connect to a printer on the Internet..." and type in the URL for the print queue. It will look like http://server_IP:631/printers/PrinterName (the PrinterName is the same from the localhost:631 entry of your printer). Then click the Next button.
 * In the next windows select your printer model. if that doesn't seem to work select a postscript driver. Any PostScript driver should work, for example 'Apple Color LW 12/660' or the Generic Postfix/MS Publisher Imagesetter should be fine.
 * Click Finish.

Enjoy your printer!