This
solution will prevent users from installing HPLIP since HP would not like to make use of their HPLIP, without installing all their mess, as publicized in the package description:
"This package is useful for a minimal footprint headless scanning solution"
HPLIP refuses to provide support, since they simply refer to install HPLIP. I mean, that's not fair since servers needs really "a minimal footprint headless scanning solution" and we do not need HPLIP and other mess.
OK got it to work.
Code:
$ dpkg -l | grep sane
ii libsane 1.0.21-9 API library for scanners
ii libsane-extras 1.0.21.2 API library for scanners -- extra backends
ii libsane-hpaio 3.10.6-2+squeeze1 HP SANE backend for multi-function peripherals
ii sane-utils 1.0.21-9 API library for scanners -- utilities
then you add the directory scan and the file scan.py that you take from hplip deb.
so that you have:
Code:
/usr/share/hplip# ls
data scan scan.py
then you simply do create /etc/hp/hplip.conf
Code:
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.10.6
[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip-doc/HTML
icon=no
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-drv-install=yes
foomatic-ppd-install=yes
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.10.6.15
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
hpcups-only-build=no
hpijs-only-build=no
then you type to see your newly found scanner
and then you see that udev does not see it. Ok, let's work on udev.
OK. Let's simply change the UDEV to right permissions, into the directory /etc/udev/rules.d#
Simple. Done.
OK. Un/replug the USB of our officejet.
let's try:
Let's try now with a regular user:
Code:
$ scanimage -L
[sanei_debug] Setting debug level of dll to 0.
device `hpaio:/usb/Officejet_4500_G510g-m?serial=XX' is a Hewlett-Packard Officejet_4500_G510g-m all-in-one
Then what you do?
- Say thank you, + reportbug to libsane-hpaio (maybe one day, libsane-hpaio will care about it, and will tell you sthg else : INSTALL HPLIP and KDE and all the mess we advice you )
[ SOLVED ]