Gentoo Wiki


This article is part of the Hardware series.
Laptops TV Tuner Cards Wireless Servers Storage Other Hardware Motherboards Related



This setup has been tested successfully using kernel-2.6.20-gentoo-r6 and the USE flags mentioned below. The steps outlined here set the printer/scanner up as a network device as opposed to a USB connection.


Start by connecting your printer to your router, turn it on and make sure it works (see the user manual for a quick-start guide). Ensure the Gentoo systems that you want to print from are connected to the same network.

The hplip driver by HP works pretty well with this scanner. You might want to choose your USE flags differently (some may already be in your global /etc/make.conf), but I opted for the following (i.e. everything). If you want scanning to work then you should include the scanner flag.

File: /etc/portage/package.use
 net-print/hplip X cups fax foomaticdb parport ppds qt3 scanner snmp

After setting your USE-flags emerge hplip, this will pull in the dependencies that are required.

Code: emerge hplip
 # emerge -av hplip
Note: I found that the sane-backend-1.0.18-r2 ebuild did not like the texlive-2005 install that I had so I had to unemerge texlive-2005 and install tetex (emerge -C texlive-2005 && emerge tetex).

Now as root configure the printer using the hp-setup tool

Code: hp-setup
 # hp-setup

Select "Network/Ethernet/Wireless (direct connection or JetDirect)", providing your printer has been given an IP address automatically by your router you should now have your printer listed as a device, although it will be listed as "HP OfficeJet 6300 series", click on Next and select the ppd file. Give the printer an appropriate Name and any other information you wish to fill in, and click through to Finish.

You should now be able to print and scan (using xsane) to this printer.

HP Tools

The configuration tool can be started as any user using the following command.

Code: hp-tool&
 $ hp-tool &

Or optionally add an entry to the menu system or desktop of your chosen X11 Window Manager.


You may wish to install CUPS to provide a web-based interface to controlling the printer.

Code: emerge cups
 emerge -av cups

See the Gentoo Printing Guide for how to install and use CUPS.


Once everything is up and running you can also change the configuration of the printer by pointing your browser at the IP address it has been assigned, as there is a built-in web-based configuration tool.


Retrieved from ""

Last modified: Sat, 30 Aug 2008 20:25:00 +0000 Hits: 10,613