Re: CUPS on Bullseye and Bookworm
On Mon 15 May 2023 at 08:24:28 -0600, Charles Curley wrote:
> On Mon, 15 May 2023 12:09:33 +0100
> Brian <ad44@cityscape.co.uk> wrote:
[...]
> Ah, OK. So can I get rid of the three queues and print directly to the
> printer?
Indeed you can! 'lpstat -l -e' should show only the printer on the network
and a working local queue, M234.
> > Execute
> >
> > lpadmin -p M234 -v "URI" -E -m everywhere
> >
> > Test with
> >
> > lp -d M234 /etc/nsswitch.conf
>
> root@dragon:~# lp -d M234 /etc/nsswitch.conf
> lp: Error - The printer or class does not exist.
> root@dragon:~# lpadmin -p M234 -v "URI" -E -m everywhere
> lpadmin: Bad device-uri "URI".
> root@dragon:~# lpadmin -p M234 -v "ipps://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipps._tcp.local/" -E -m everywhere
> root@dragon:~# lp -d M234 /etc/nsswitch.conf
> request id is M234-25 (1 file(s))
> root@dragon:~#
>
> And that printed. And I see a new queue on dragon's
> system-config-printer.
Good. The issue is solved, but how do you feel about being adventurous?
Assuming you have deleted the three non-working queues,'lpstat -a' and
s-c-p should show only M234. On dragon do
systemctl stop cups-browsed
Check that 'lpstat -l -e' still shows the printer as
HP_LaserJet_MFP_M234sdw_C0FB67
* Now print: 'lp -d HP_LaserJet_MFP_M234sdw_C0FB67 /etc/nsswitch.conf'.
* Immediately afterwards do 'lpstat -a'. What do you observe?
* Run 'lpstat -a' a minute or so later. What do you observe?
--
Brian.
Reply to: