Installing the HP LaserJet Pro MFP M428fdn printer on Gentoo
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:
- Make sure you have the proper kernel options enabled.
Install CUPS, HPLIB and cups-meta:
emerge -a net-print/cups net-print/cups-meta net-print/hplip
- 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.
- Optional: Run
system-config-printer
(as super user) and add your printer. - 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. - 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) 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: