[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: CUPS on Bullseye and Bookworm



On Sun 14 May 2023 at 20:57:23 -0600, Charles Curley wrote:

> On Sun, 14 May 2023 23:30:25 +0100
> Brian <ad44@cityscape.co.uk> wrote:
> 
> > On Sun 14 May 2023 at 14:04:51 -0600, Charles Curley wrote:
> 
> 
> > 
> > We take it that dragon, hawk and the printer are network connected.
> > 
> > Give what you get from dragon with
> > 
> >   avahi-browse -rt _ipp._tcp
> >   avahi-browse -rt _uscan._tcp
> >   driverless
> >   lpstat -l -e
> > 
> > avahi-browse is in the avahi-utils package.
> > 
> 
> root@dragon:~# avahi-browse -rt _ipp._tcp
> + wlp2s2 IPv4 HP LaserJet MFP M234sdw (C0FB67)              Internet Printer     local
> = wlp2s2 IPv4 HP LaserJet MFP M234sdw (C0FB67)              Internet Printer     local
>    hostname = [hpm234ethernet.local]
>    address = [192.168.100.134]
>    port = [631]
>    txt = ["mopria-certified=2.1" "mac=6c:02:e0:c0:fb:67" "usb_MDL=HP LaserJet MFP M232-M237" "usb_MFG=HP" "TLS=1.2" "PaperMax=legal-A4" "kind=document,envelope,photo" "UUID=d532fa73-f559-43ca-9f8e-1eef16972345" "Fax=F" "Scan=T" "Duplex=T" "Color=F" "note=" "adminurl=http://hpm234ethernet.local./hp/device/info_config_AirPrint.html?tab=Networking&menu=AirPrintStatus"; "priority=10" "product=(HP LaserJet MFP M232-M237)" "ty=HP LaserJet MFP M232-M237" "URF=V1.4,CP99,W8,OB10,PQ3-4,DM1,IS1-4,MT1-3-5,RS300-600" "rp=ipp/print" "pdl=application/PCLm,application/octet-stream,image/pwg-raster" "qtotal=1" "txtvers=1"]

Useful data but an aside first:

The pdl= key lacks image/urf. HP claims AirPrint support for the device (URF=V1.4,...).
It looks like you have been sold a pup. A firmware update?

> root@dragon:~# driverless
> ipps://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipps._tcp.local/

This is the URI for the printer. You will need to substitute it later into an lpadmin
command.

> root@dragon:~# lpstat -l -e
> HP-HP-LaserJet-MFP-M232-M237 permanent ipp://localhost/printers/HP-HP-LaserJet-MFP-M232-M237 dnssd://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipp._tcp.local/?uuid=d532fa73-f559-43ca-9f8e-1eef16972345
> HP-HP-LaserJet-MFP-M232-M237-2 permanent ipp://localhost/printers/HP-HP-LaserJet-MFP-M232-M237-2 ipps://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipps._tcp.local/
> HP-LaserJet-MFP-M232-M237 permanent ipp://localhost/printers/HP-LaserJet-MFP-M232-M237 socket://hpm234ethernet.localdomain:9100
> HP_LaserJet_MFP_M234sdw_C0FB67 network none ipps://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipps._tcp.local/
> root@dragon:~# 

The first three entries are print queues (permanent) you have set up. The fourth is the
printer.

Execute

  lpadmin -p M234 -v "URI" -E -m everywhere

Test with

  lp -d M234 /etc/nsswitch.conf

-- 
Brian.


Reply to: