I have setup CUPS and Samba server on linux machine which has a hp deskjet 6122 printer attached via usb. I have also managed to install this shared printer on other windows 7 machine via LAN network.
I have gone through many instructions. These are just few of them:
https://help.ubuntu.com/10.04/serverguide/cups.html
https://help.ubuntu.com/community/NetworkPrintingWithUbuntu
What is CUPS server and how to share a printer (Locally or over a network)
The reason I keep doing the same thing with different instructions is because the whole setup works fine until a restart of the windows machine (client) or linux machine (server with attached printer). After the restart of any machine, sending a print request from the windows machine results in print task being visibile in print queue on windows but NOT visible in the print queue on linux. Obviously, this means that documents are not being printed from windows machine.
This problem drives me mad for weeks.
The only way to print from windows is to repeat procedure of installing the network printer. And it works.... till restart of any machine. Note that I do not have to setup anything on linux again to make windows->linux printing work.
I am begging for advice.