Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

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

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


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.