Network Printing: How do you set up an HP laserjet?

What is the proper way to set up wired network printing for an HP LaserJet on a fresh install?

Which of system settings printers, yast printer, website cups, hp device manager is the best way?

In the past, on the hp-setup of hp device manager utility, I’ve manually entered the IP address in the advanced options. But what is the proper way?

I’ve tried it with the firewall disabled, and it finds it through the Network selection. I’ve added myself to the “lp” group. What else is missing?

Open CUPS in your web browser http://127.0.0.1:631

Manage your printer and make sure you click on share this printer.

YaST is integrated with the HPILLP utilities when configuring HP printers, so best just to use the ‘hp-setup’ utility IMO.

In the past, on the hp-setup of hp device manager utility, I’ve manually entered the IP address in the advanced options. But what is the proper way?

I’ve tried it with the firewall disabled, and it finds it through the Network selection. I’ve added myself to the “lp” group. What else is missing?

You can configure manually with IP address (or Avahi hostname), or if firewall disabled, it should be able to discover automatically. Are you having problems?

It just seems like I struggle each time, and I wanted to learn how to best do it. Disabling firewall for setup is best? I don’t know if it’s related, but I’ve had trouble before when resuming a paused printer with using my user name and needed to supply the root username. Figure it is best to be the user rather than root for controlling printers.

There’s a long thread about this topic that drills down into this. To keep things simple though, it’s easiest to disable the firewall, (most are behind service provider firewalls anyway), while configuring, or manually configure (assuming you know the IP address). If you prefer to leave the openSUSE firewall active, you can allow the mdns service in firewalld, and choose ‘Show Advanced Options’ in the ‘hp-setup’ utility. For ‘Network discovery method’ choose ‘Avahi’. This will allow the inbuilt Avahi service to be used for discovery on a LAN. Other methods will faill, unless you’re prepared for more complex firewall configuration outlined in the thread.

I don’t know if it’s related, but I’ve had trouble before when resuming a paused printer with using my user name and needed to supply the root username. Figure it is best to be the user rather than root for controlling printers.

The user/admin privileges are defined by various directives in /etc/cups/cupsd.conf

More info…

man cupsd.conf

Hi.
Do you mean that the printer has a manual (not dhcp) fixed IP on the local network ?
In that same case, i used the hplip he-setup tool with manual discovery and it just worked out of the box without any tweak on the firewall.
Or you are in a different case ? Printer not in the same network ? DHCP printer ip adress ?
Or are you accessing the dedicated printer wireless network from your computer ?

On a fresh install, plug it in and turn it on before you start the installation and in course of the installation it will be configured automatically for you along with all the other hardware on the system.

I have been using the same technique for an assortment of printers on openSUSE, going back to many versions before openSUSE-12.1, and even with the latest LEAP-15.2 and latest Tumbleweed this technique still works. It may not be the quickest (although I find it moderately quick) and it is not the most automated (although I do use a wizard in parts). The main aspect of it is NOT to rely on manual discovery, but rather provide openSUSE the LAN/WLAN network IP address of one’s printer a couple of times. Hence one 1st needs to figure out the IP address of their printer. One also needs hplip installed.

I blogged about this here:
https://forums.opensuse.org/entry.php/107-Connecting-openSUSE-to-an-HP-wireless-printer

While I posted about an “inkjet” HP C309a, I have also used this approach with a Laserjet.

I also blogged more recently using this approach with another inkjet:
https://forums.opensuse.org/entry.php/185-Installing-an-HP-Deskject-All-in-One-2675-with-SUSE-LEAP

Again, this approach also work with a Laserjet.

I have never had a firewall issue adopting this approach.

You won’t. That is only an issue for those relying on automatic discovery (SLP, Avahi etc).

Wow! That’s useful information. Enough to convince me to temporarily disable the firewall or enter the IP address. The IP address was what I had been doing, but thought it should be better to use DHCP for the printer to get an IP. But for a small network, I can see it’s not worth the effort. I notice in my 15.2, (or is it hplip 3.19.12?) the Avahi service is not an option. It only shows SLP and mDNS/Bonjour. But I’ll try it with the IP address.

Thanks. I hadn’t thought of turning on the printer during install. I’ll have to try that next time.

Not sure why that is the case. I have 3 options for ‘Network discovery method’:SLP, mDNS/Bonjour, and Avahi.

That only applies to USB-connected printers. Network printers need explicit configuration.

Very clear instructions. I notice in your instructions, you run the hp-setup button. What does running printer setup from Yast do for you rather than just running hp-setup from the beginning?

On one install time, I seemed to have two sets of printer setups. One handled by Yast (or CUPS?), and another from HP. It didn’t resume or pause the the same printer even though they both showed what looked like the same printer. Does that have something to do with it?

There is no advantage to using YaST for such configuration. The ‘hp-setup’ tool is all that is required.

On one install time, I seemed to have two sets of printer setups. One handled by Yast (or CUPS?), and another from HP. It didn’t resume or pause the the same printer even though they both showed what looked like the same printer. Does that have something to do with it?

CUPS (web interface or CLI) or YaST can be used to configure printer devices in general. That includes devices supported by HPLIP drivers and non-HPLIP drivers. The ‘hp-setup’ utility is designed for HPLIP compatible devices only.

Thank you for clearing that up. I need to remember that non-HP printers need some other setup utility.