Comment 6 for bug 1776464

Revision history for this message
Esokrates (esokrarkose) wrote : Re: hp-setup requires allowing incoming connections for network discovery

@hplip devs: Setting up a printer should work without opening a port on the machine. avahi-browse provides enough information for generating the DeviceURI for cups.

For example "avahi-browse -a -t -r" finds:

+ wlp58s0 IPv6 HP OfficeJet Pro 8710 [871FCB] Internet Printer local
...
= wlp58s0 IPv4 HP OfficeJet Pro 8710 [871FCB] UNIX Printer local
   hostname = [HPC8D3FF871FCB.local]
   address = [10.0.0.8]
   port = [515]
   txt = ["Scan=T" "Duplex=T" "Color=T" "UUID=[REMOVED FROM OUTPUT]" "note=" "adminurl=http://HPC8D3FF871FCB.local." "mac=[REMOVED FROM OUTPUT]" "priority=52" "usb_MDL=OfficeJet Pro 8710" "usb_MFG=HP" "product=(HP OfficeJet Pro 8710)" "ty=HP OfficeJet Pro 8710" "kind=document,envelope,photo,postcard" "PaperMax=legal-A4" "pdl=application/vnd.hp-PCL,image/jpeg,application/PCLm,image/urf,image/pwg-raster" "rp=RAW" "qtotal=1" "txtvers=1"]

which contains all of the info needed for hp-makeuri:

user@debian:~$ hp-makeuri HPC8D3FF871FCB.local

HP Linux Imaging and Printing System (ver. 3.17.10)
Device URI Creation Utility ver. 5.0

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

CUPS URI: hp:/net/HP_OfficeJet_Pro_8710?hostname=HPC8D3FF871FCB.local
SANE URI: hpaio:/net/HP_OfficeJet_Pro_8710?hostname=HPC8D3FF871FCB.local
HP Fax URI: hpfax:/net/HP_OfficeJet_Pro_8710?hostname=HPC8D3FF871FCB.local

Done.