Connect Windows to a CUPS printer
There are a couple of ways to print to a CUPS printer from a Windows machine–CUPS printer means it’s a printer connected to either a UNIX, Linux or an OSX machine, cups is the system which these OSes use to serve up print services. One way to print from Windows is via the Samba capabilities of your Linux server, if you have already set it up. Samba appears to be easier for the Windows users because Samba looks and feels just like another Windows box. I won’t use Samba for this guide, instead we’ll connect to the CUPS printer using internet printing protocol (this is actually oversimplification, the IPP is a much more involved subject than how I’m presenting it here).
The things you will need
- A driver for your printer. I don’t know what printer you have so I can’t list generic resources here. You can use the CD/DVD that came with your printer, or you can get the latest drivers online (always better to get updated drivers). This approach assumes that the Windows machine contains the printer driver locally. This doesn’t scale very well for enterprise settings, if you are looking for a setup where CUPS is the RIP (if you don’t know what a RIP is, then it’s probably not for you) by acting as a generic postscript printer by using PPDs and CUPS filter queues, you can head over to LinuxPrinting.org, printing with CUPS in Samba
- A properly configured CUPS printer. There are some posts I have written in the past related to installation and configuration of CUPS, here they are If you need to build a linux print server, If you need to add a printer to a CUPS server
The steps
- Make sure the CUPS printer is powered on, connected, and that you can ping it from your windows machine.
- From your Windows machine, go to the “Add printers” section–you know how to find this.
- Choose “Add a network printer”
- The CUPS won’t be listed, so click “My printer isn’t listed”
- On the box provided, type http://IpOrNameOfPrintServer:631/printers/nameofQueue the “printers” subdirectory is pretty common for CUPS printers, the nameofQueue is something your Sys Admin (or you) would know, this the name of the printer added to CUPS, if you are not sure, launch a web browser and type http://IpOrNameOfPrintServer:631 then click “Printers” so that you can verify the name of the printer queue
- After clicking “Next”, you will be prompted to select a driver for your printer, just go on ahead and select it.
- Print a test page
Leave a comment