Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm running Linux Mint 17.3 (although I don't think the distro matters here) and I'd like to add HP Color Laserjet Pro m277dw by a name instead of IP. How to do that?
My router shows two different MAC addresses to the printer with the name "NPIB88B68" associated to both of them.
Does anyone know what are the two devices (MAC addresses)?
One seems to be silent and the other seems to have 7 services.
(Tried to probe them with nmap.)
Does anyone know what kind of URI to use?
The manual doesn't tell.
Last edited by turboscrew; 08-29-2018 at 12:30 AM.
I'm running Linux Mint 17.3 (although I don't think the distro matters here) and I'd like to add HP Color Laserjet Pro m277dw by a name instead of IP. How to do that?
You should be able to do that, provided the hostname is resolvable. My home router acts as a name server, and so this allows me to reach (DHCP-addressed) hosts by hostname without any additional effort. Similarly, if using Avahi, local hostname resolution using a "hostname.local" naming scheme may also be possible.
Quote:
My router shows two different MAC addresses to the printer with the name "NPIB88B68" associated to both of them.
That may well be the default hostname associated with your HP printer. If the printer has a built-in web-based config server, you should be able to access it via a browser and change the details as you like.
Quote:
Does anyone know what kind of URI to use?
That depends on the printer. If you're using the HPLIP driver though, then the hp backend must be used. The printer URI will look something like
Code:
hp:/net/HP_LaserJet_P3010_Series?ip=192.168.2.50
Edit: You'll have to try 'hp-setup' to see whether it is possible to configure via hostname though. I do recall some user saying HPLIP might not be able to resolve by hostname.
FWIW, my Brother network printer can be reached by DNS hostname or Avahi hostname....both these URIs work
It looks like when the printer is in sleep, only the first entry is present.
nmap didn't find any services there, but 7 services in the second "device".
(The date and time of the second "device" is updated soon after the printer is waken.)
Last edited by turboscrew; 08-29-2018 at 01:58 PM.
My goal is to put the printer back behind DHCP, and access it by name.
So if something happens to the router, I don't have to reinstall the printer to all my machines.
I have 6 machines, and a couple of weeks ago thunder broke my ADSL/router.
And my new router has different IP range.
Some users claim only 'hp:/net/name_of_hp_printer?ip=ipaddress' works. I don't own HP hardware so can't test this. YMMV.
I think this is exactly the answer to my question "Does anyone know what kind of URI to use?".
I think if I can't get that to work, then it's not possible with my printer. There are other ways but hplip, but probably the URI form is the key in all of them. THANKS!
and printers could be logged into with telnet, remote secure, and do vector or bit graphics (postscript), and it was built into the print: and it was the format that high speed publishers accepted
until (they) "improved it" with cheap imports and software to try making it work !
Last edited by X-LFS-2010; 09-04-2018 at 10:09 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.