Re: cups/cups-browsed: only advertise online network printers

2015-07-29 Thread Brian
On Wed 29 Jul 2015 at 14:21:20 +0200, Tuxo Holic wrote: Thanks Brian and Jochen for the efforts, but switching off services to remove the queue and end up with no advertised printer is not an option as well. So you want the printer to be advertised. In your first mail you said: I'd prefer

Re: cups/cups-browsed: only advertise online network printers

2015-07-29 Thread David Wright
Quoting Tuxo Holic (tuxoho...@hotmail.de): Thanks Brian and Jochen for the efforts, but switching off services to remove the queue and end up with no advertised printer is not an option as well. So the main goal I was aiming at seems to be not available which was: give notification to the

RE: cups/cups-browsed: only advertise online network printers

2015-07-29 Thread Tuxo Holic
Thanks Brian and Jochen for the efforts, but switching off services to remove the queue and end up with no advertised printer is not an option as well. So the main goal I was aiming at seems to be not available which was: give notification to the user, that this network printer is switched off

RE: cups/cups-browsed: only advertise online network printers

2015-07-28 Thread Tuxo Holic
Okay Brian - here's the update of further testing: I need one BrowsePoll line enabled so the cups-browsed clients know what hostname or IP they should poll,which leaves me with the following *not default* but very simplistic cups-browsed.conf grep -v ^# /etc/cups/cups-browsed.conf

Re: cups/cups-browsed: only advertise online network printers

2015-07-28 Thread Brian
On Tue 28 Jul 2015 at 10:35:33 +0200, Tuxo Holic wrote: Okay Brian - here's the update of further testing: I need one BrowsePoll line enabled so the cups-browsed clients know what hostname or IP they should poll,which leaves me with the following *not default* but very simplistic

Re: cups/cups-browsed: only advertise online network printers

2015-07-28 Thread Jochen Spieker
Brian: A=$(lsusb | grep -i 'Stylus Color 740') if [ -z $A ]; then systemctl stop cups.service cups.socket cups.path fi (No sniggering at the back, please. I'm aware of the deficiencies in the logic. Improvements are welcome). I would have phrased it something like this: if ! lsusb |

Re: cups/cups-browsed: only advertise online network printers

2015-07-28 Thread Brian
On Tue 28 Jul 2015 at 15:53:47 +0100, Brian wrote: On Tue 28 Jul 2015 at 10:35:33 +0200, Tuxo Holic wrote: Which brings me back to my previous question: Seems to me server cups knows that printer is not running yet, how can I make server cups tell this to client cups , so the users gets

RE: cups/cups-browsed: only advertise online network printers

2015-07-27 Thread Tuxo Holic
On Sun, 26 Jul 2015 20:28:21 +0100, Brian wrote: Your problem (please correct me if I have not understood what you said) is that applications, Iceweasel, Evince etc, still see HP_LaserJet_1020 after the server is closed down. No, I meant: the server usually stays on until I go to bed, but

Re: cups/cups-browsed: only advertise online network printers

2015-07-27 Thread Brian
On Mon 27 Jul 2015 at 14:17:52 +0200, Tuxo Holic wrote: On Sun, 26 Jul 2015 20:28:21 +0100, Brian wrote: Your problem (please correct me if I have not understood what you said) is that applications, Iceweasel, Evince etc, still see HP_LaserJet_1020 after the server is closed down.

RE: cups/cups-browsed: only advertise online network printers

2015-07-26 Thread Tuxo Holic
On Sat 25 Jul 2015 at 11:30:30 +0100, Brian wrote: Please stop cups-browsed on the client and post the output of 'lpstat -t'. systemctl stop cups-browsed.service systemctl status cups-browsed.service ● cups-browsed.service - Make remote CUPS printers available locally    Loaded: loaded

Re: cups/cups-browsed: only advertise online network printers

2015-07-26 Thread Brian
On Sun 26 Jul 2015 at 17:54:50 +0200, Tuxo Holic wrote: On Sat 25 Jul 2015 at 11:30:30 +0100, Brian wrote: Please stop cups-browsed on the client and post the output of 'lpstat -t'. systemctl stop cups-browsed.service systemctl status cups-browsed.service ● cups-browsed.service - Make

Re: cups/cups-browsed: only advertise online network printers

2015-07-25 Thread Brian
On Fri 24 Jul 2015 at 15:16:32 +0200, Tuxo Holic wrote: I' have a HP LaserJet 1020 USB - plugged to my server running debian/stable with cups, the clients connect to it using cups-browsed and the cups network protocol. The server does *not* run 24/7 nor does my printer: I usually switch on