Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 a CUPS server and how to share a printer over a network

Sharing Printer with CUPS

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.

share|improve this question

1 Answer 1

This is consequence of an very old bug in CUPS.

So to fix this, just edit the file /etc/init/smbd.conf:

sudo gedit /etc/init/smbd.conf

Then replace the line:

start on (local-filesystems and net-device-up)

For this:

start on (local-filesystems and started cups and net-device-up)

I have successful in Ubuntu Saucy (13.10).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.