hp-makeuri(1)

πŸ“¦
version 3.24.4 Β· 2 versions
, in ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ hp-makeuri(1) ✨ β€” the manual page, but make it make sense πŸ’…

okay bestie, welcome to hp-makeuri, a lil utility from the User Manuals collection that is genuinely so underrated. it does one thing and it does it well. let's get into it 🫢


🌸 NAME 🌸

hp-makeuri β€” Device URI Creation Utility. that's it. that's the whole job. it makes URIs. slay.


πŸ’– DESCRIPTION πŸ’–

It creates device URIs for printers that are hooked up locally and for printers chillin' on the network, so you can use them with CUPS. that's the vibe. one job, done correctly, no notes.


πŸŽ€ SYNOPSIS πŸŽ€

hp-makeuri [OPTIONS] [SERIAL NO.|USB ID|IP|DEVNODE]

like, you give it something that identifies your printer, and it hands you back a URI. iconic behaviour honestly.


πŸ¦‹ SERIAL NO.|USB ID|IP|DEVNODE πŸ¦‹

so this is the part where you tell it which printer you mean. there's a few flavours, and which one you use depends on how the printer is connected:

πŸ’œ USB IDs (usb only)

format is "xxx:yyy" where xxx is the USB bus ID and yyy is the USB device ID.

⚠️ the : and all the leading zeroes must be present. do not skip them. do not get cute with it. the zeroes stay.

(you can get this info with the lsusb command β€” peep Note 1 below πŸ‘€)

πŸ’œ IPs (network only)

either an IPv4 address "a.b.c.d" or a "hostname". simple. elegant.

πŸ’œ DEVNODE (parallel only)

"/dev/parportX", where X=0,1,2,... β€” yes, counting forever, as many parallel ports as your heart desires.

πŸ’œ SERIAL NO. (usb and parallel only)

just "serial no." β€” the printer's serial number. that's the whole thing.


✨ OPTIONS ✨

okay here's the menu, bestie. pick your fighters:

  • -p<port> or --port=<port> β€” use this to specify the port on a multi-port JetDirect. valid values are 1*, 2, and 3. the * means 1 is the default πŸ’…
  • -c or --cups β€” show the CUPS URI only (quiet mode)
  • -s or --sane β€” show the SANE URI only (quiet mode)
  • -f or --fax β€” show the HP Fax URI only (quiet mode)
  • -l<level> or --logging=<level> β€” set the logging level. your choices are none, info*, error, warn, debug. the * means info is the default
  • -g β€” run in debug mode. it's literally the same as option -ldebug, just shorter and cooler
  • -h or --help β€” prints this help information, for when you're lost (we've all been there πŸ₯Ί)

🌈 EXAMPLES 🌈

here's how it actually looks in the wild:

USB:

$ hp-makeuri 001:002

Network:

$ hp-makeuri 66.35.250.209

Parallel:

$ hp-makeuri /dev/parport0

USB or parallel (using serial number):

$ hp-makeuri US123456789

see? easy. ate. πŸ”₯


⭐ NOTES ⭐

1. Example using lsusb to obtain USB bus ID and USB device ID (example only β€” the values you obtain will differ):

$ lsusb

Bus 003 Device 011: ID 03f0:c202 Hewlett-Packard

$ hp-makeuri 003:011

(Note: you may have to run lsusb from /sbin or another location. use $ locate lsusb to figure out where it's hiding πŸ•΅οΈ)


πŸ‘‘ SEE ALSO πŸ‘‘

hp-setup β€” go check it out, they're friends


🫢 AUTHOR 🫢

HPLIP (HP Linux Imaging and Printing) is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux. periodt.


😭 REPORTING BUGS 😭

The HPLIP Launchpad.net site https://launchpad.net/hplip is available to get help, report bugs, make suggestions, discuss the HPLIP project or otherwise contact the HPLIP Team. they're nice, go say hi πŸ’Œ


Copyright (c) 2001-18 HP Development Company, L.P.

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.


and that's the whole page, bestie πŸŽ€ this was hp-makeuri(1) from the Linux manual collection, version 5.0, dated 5.0 β€” ok go make some URIs, you're gonna do great πŸ’–βœ¨