How to get an HP OfficeJet scanner to work in Linux/HPOJ method

HPOJ is obsolete, hplib is now used

Use: Howto get an HP OfficeJet scanner to work in Linux


 * 1) Installation
 * 2) Install HPOJ drivers, http://hpoj.sourceforge.net/
 * 3) Install Sane, http://www.sane-project.org/
 * 4) Install XSane, http://www.xsane.org/
 * 5) Optional Install lsusb
 * 6) Edit /etc/sane.d/dll.conf
 * 7) * Add hpoj to a new line
 * 8) Start Up Drivers
 * 9) Execute: /etc/init.d/hpoj start


 * 1) Testing
 * 2) * First execute: export SANE_DEBUG_DLL=128
 * 3) * Test 1: Execute lsusb
 * 4) **Output: Bus 002 Device 002: ID 03f0:2311 Hewlett-Packard, or similar
 * 5) * Test 2: Execute scanimage -L
 * 6) **Output: [dll] load: searching backend `hpoj' in `/usr/lib/sane' 
 * 7) **Output: [dll] load: trying to load `/usr/lib/sane/libsane-hpoj.so.1' 
 * 8) **Output: [dll] load: dlopening `/usr/lib/sane/libsane-hpoj.so.1' 
 * 9) **Output: [dll] init: initializing backend `hpoj' 
 * 10) **Output: [dll] init: backend `hpoj' is version 1.0.6
 * 11) **Output: [dll] sane_get_devices: found 1 devices
 * 12) **Output: device `hpoj:mlc:usb:officejet_d_series' is a Hewlett-Packard Officejet d series multi-function peripheral
 * 13) Run xsane as non-root user, and see if works