HOWTO+-+Share+Printer+to+Win7+From+a+Linux+Host

1 - I have the print settings in CUPS as follows - Publish shared printers connected to this system (using Printer Settings GUI within KDE`s System Settings Panel)

2 - in /etc/samba/smb.conf ensure the following was uncommented in the PRINTING section in [global]

load printers = yes printing = cups printcap name = cups

added the following to [printers]

use client driver = Yes

3 - restarted samba: sudo /etc/init.d/samba restart

(Here is a sample Samba configuration file working for me, sharing my printers and home directories of each user)

On the Win7 client

- Add a printer->Networked printer - for the location, specified the printer via CUPS http. So in the location box, where UBUNTU is the hostname of the printer that's shared, and the shared name of my printer (Epson C120)

__@http://ubuntu:631/printers/Epson_C120__

You can determine the shared name of your CUPS printer by going to your UBUNTU host that's sharing the printer, specifying the following URL: __@http://localhost:631__

Go to the PRINTERS tab, point to the queue name of the queue name of the printer that's shared, rt-click and display properties. This is the URL that will be used on your Win7 printer location, except "localhost" will be replaced with the hostname of your ubuntu host (in my case, "ubuntu").

- specify print driver to use on your Win7 machine and print a test page

If the above is not working, try to share the printer with the traditional windows shares way. Open "run" on Windows 7 and enter \\ip-of-the-host and then press enter and you should see the shared printers. For example \\10.20.30.24