Printing from CUPS to a Printer attached to Windows XP/Vista/7

Printing from CUPS to a Printer attached to Windows XP/Vista/7

Summary

I find it frequently necessary to configure CUPS to print to a printer that is attached to a Windows PC as many printers do not have network capability.

This tutorial will show you how to install an LPD server on Windows

It is also possible to configure CUPS to work with Windows Shares using Samba. However this may need authentication and I have found can have more complications when configuring.

Guide

LPD is a feature that is available on Windows not installed by default, but it’s very simple to install.

Windows XP setup:

  • In the Windows XP Control Panel
  • Start the Add/Remove Programs tool in Control Panel.
  • Click Add/Remove Windows Components.
  • Click Other Network File and Print Services, and then click Details.
  • Click to select the Print Services for UNIX check box, and then click OK.
  • Follow the instructions on the screen to finish the installation.
  • The installation may ask for a disk however the files you require can be downloaded here –> LPDwinxpdll.zip
  • Now go to the “printers” and share all printers you want to share.
  • Don’t use long names and names with spaces, like “HP Laserjet 4200 Series”, which are hard to setup on the client. Use something short like hplj4200.

Windows 7 setup:

  • In the Windows 7 Control Panel
  • Go to the “Programs and Features”
  • Click “Turn Windows Features on or off”
  • Turn on the LPD protocol.
  • Now go to the “printers” and share all printers you want to share.
  • Don’t use long names and names with spaces, like “HP Laserjet 4200 Series”, which are hard to setup on cups. Use something short like hplj4200.

CUPS setup:

Now you can setup CUPS to print to lpd://[ip-or-hostname-of-client]/[printername], for example lpd://10.10.10.17/hplj4200

Full command for adding the printer:

lpadmin -p [printername] -v lpd://[ip-or-hostname-of-client]/[printername]-E

If you can’t get it to work, please check printer permissions and the firewall of the Windows machine, which must have port 515 open

Source

Printing from a CUPS server to Windows 7

Leave a Reply

Be the First to Comment!

Leave a Reply

wpDiscuz