Installing the HP LaserJet Pro MFP M428fdn printer on Gentoo

local_offer
Category
IT

If you’re looking for a printer that works with Linux, HP’s LaserJet Pro MFP M428fdn is a quite good option. Its driver is even open source as it doesn’t rely on the HPLIP Binary Plug-In, and available in many distro’s repositories—including Gentoo.

To install the printer under Gentoo, all I had to do was the following steps:

  1. Make sure you have the proper kernel options enabled.
  2. Install CUPS, HPLIB and cups-meta:

    emerge -a net-print/cups net-print/cups-meta net-print/hplip
  3. Optional: Install system-config-printer (to have a GUI for CUPS). Continue with step 5 if you don’t want to install system-config-printer. Otherwise continue with the next step.
  4. Optional: Run system-config-printer (as super user) and add your printer.
  5. If you didn’t install system-config-printer (step 3), simply run hp-setup -i 192.168.1.42 (replace your printer’s IP) and follow the steps.
  6. Add all users who should be able to use the printer to the lp user group: gpasswd -a username lp (replace “username” with the username you want to add to the group)
  7. Start cups daemon (cupsd) and add it to the default runlevel:

    rc-service cupsd start
    rc-update add cupsd default

After a reboot, I was able to print (including duplex). However, I haven’t configured scanning yet, but that’s supposed to be completely supported on Linux as well.

Source:

Gentoo-Wiki: HPLIB

Gentoo-Wiki: Printing

CUPS no longer directly depends on its filters