How to Configure Scanner in an HP All-In-One Printer on Linux?

The hplip packages contains all the tools you need to set up the HP scanner. For scanning, you may use the sane and xsane tools. The tricky part to enable the scanner is carefully choose which driver to use from the hplip package. If you choose a non-suitable driver, only the printer will work and the scanner will not be found by Linux. In this post, I will introduce the steps to configure the scanner from an HP all-in-one printer.

First install the packages needed

# dnf install hplip xsane sane

Then run the hp-setup tool to configure the scanner and printer.

# hp-setup

It will ask for the root password.

hp-scaner-pass.png

In the Connection type, choose the “JetDirect” option.

hp-scaner-driver.png

It will scan the network and show you the printer it find out.

hp-scaner-device.png

The add the printer.

hp-scaner-devices-driver.png

By now, the scanner and printer should be ready to be used. For scanning images, I usually use xsane.

$ xsane

If everything is working well, you should be able to scan the images using the scanner now.

xsane.png

Eric Zhiqiang Ma

Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *