2. Set Up Your Windows 7 Machine for Printing
Samba is a great tool for networking a GNU/Linux machine to a Windows machine. However, I have found LPD to be a much more reliable method of printing from GNU/Linux to Windows. LPD stands for Line Printer Daemon protocol. LPD is a network protocol that was designed specifically for printing from Unix (and hence GNU/Linux) machines. It is stable, reliable, and it has been around for a very long time. Fortunately, Windows 7 supports the LPD protocol! However, the support is turned off by default, so we have to turn it on. Once we do, the Windows 7 machine will listen for GNU/Linux print requests on TCP port 515.
To configure LPD to start every time you turn on your Windows 7 machine, here are the steps: Control Panel >> System and Security >> Administrative Tools >> Services. Clicking on the Services link should give you a pop-up similar to Figure 4 below. You will have to scroll down to LPD Service. When you right-click and click on Start, Windows 7 will automatically start the LPD Service every time Windows starts up.
Now, you will have to share the printer on your network. Again, this is extremely easy. You’ll go to Control Panel >> View devices and printer. You’ll right-click on your printer and select Printer properties. Go to the Sharing tab, check mark the Share this printer box, put a name in the Share name box, and hit Apply. I recommend that you make the printer share name something descriptive, but easy to remember. You will need to insert this name later on your GNU/Linux system. My printer is a Canon MP560, so I just chose mp560 for my share name. This would make the share easy to identify if I had multiple printers in the house.