Come installare una stampante non trovata automaticamente dal discovery di HP sapendone l'IP (menu stampa configurazione della stampante stessa).
Il requisito minimo e' l'installazione del pacchetto hplip presente nel repository di ubuntu e kubuntu:
root@baix:~# apt-cache depends hplip
hplip
Dipende: libc6
Dipende: libcups2
Dipende: libdbus-1-3
Dipende: libsane
Dipende: libsnmp15
Dipende: libssl0.9.8
Dipende: libusb-0.1-4
Dipende: python-dbus
Dipende: python-imaging
Dipende: coreutils
Dipende: lsb-base
Dipende: adduser
Dipende: cups
Dipende: hplip-data
Dipende: hplip-data
Predipende: python
|Consiglia: <kdeprint>
|Consiglia: gtklp
Consiglia: xpp
Consiglia: hplip-gui
Consiglia: hplip-doc
Consiglia: openprinting-ppds
Raccomanda: hpijs
Raccomanda: cups-client
Raccomanda: sane-utils
Va in conflitto: hpijs
Va in conflitto: <hplip-base>
Va in conflitto: hplip-gui
Va in conflitto: hpoj
Sostituisce: <hplip-base>
Sostituisce: hplip-data
Sostituisce: hplip-gui
Installo il pacchetto:
# apt-get install hplip
ci saranno questi programmi in path:
(tra <> ci metto i tasto che premo)
root@baix:~# hp <tab> <tab>
hp-align hp-levels hpljP1505n hp-sendfax
hp-check hp-linefeedcal hp-makecopies hp-setup
hp-clean hplj1000 hp-makeuri hpssd
hp-colorcal hplj1005 hp-mkuri hp-systray
hp-devicesetup hplj1018 hp-plugin hp-testpage
hp-fab hplj1020 hp-pqdiag hp-timedate
hp-faxsetup hpljP1005 hp-print hp-toolbox
hp-firmware hpljP1006 hp-printsettings hp-unload
hp-hpdio hpljP1007 hp-probe
hpijs hpljP1008 hp-query
hp-info hpljP1505 hp-scan
Faccio partire il setup di HP e purtroppo non mi trova la stampante:
root@baix:~# hp-setup
HP Linux Imaging and Printing System (ver. 3.9.2)
Printer/Fax Setup Utility ver. 8.0
Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0)
error: No devices found on bus: net
Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0)
error: No devices found on bus: net
Searching... (bus=net, timeout=5, ttl=4, search=10.180.156.245 desc=0)
error: No devices found on bus: net
Done.
Cerco qua e la tra i vari programmi e trovo questo make URI:
root@baix:~# hp-makeuri
HP Linux Imaging and Printing System (ver. 3.9.2)
Device URI Creation Utility ver. 5.0
Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
HP Linux Imaging and Printing System (ver. 3.9.2)
Device URI Creation Utility ver. 5.0
Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
Creates device URIs for local and network connected printers for use with CUPS.
Usage: hp-makeuri [OPTIONS] [SERIAL NO.|USB ID|IP|DEVNODE]
[SERIAL NO.|USB ID|IP|DEVNODE]
USB IDs (usb "xxx:yyy" where xxx is the USB bus ID and yyy is the
only): USB device ID. The ':' and all leading zeroes must be
present.
(Use the 'lsusb' command to obtain this information.
See Note 1.)
IPs (network IPv4 address "a.b.c.d" or "hostname"
only):
DEVNODE (parallel "/dev/parportX", X=0,1,2,...
only):
SERIAL NO. (usb "serial no."
and parallel
only):
[OPTIONS]
To specify the -p<port> or --port=<port> (Valid values are 1*, 2, and
port on a 3. *default)
multi-port
JetDirect:
Show the CUPS URI -c or --cups
only (quiet mode):
Show the SANE URI -s or --sane
only (quiet mode):
Show the HP Fax -f or --fax
URI only (quiet
mode):
Set the logging -l<level> or --logging=<level>
level:
<level>: none, info*, error, warn, debug (*default)
Run in debug mode: -g (same as option: -ldebug)
This help -h or --help
information:
Examples:
USB: $ hp-makeuri 001:002
Network: $ hp-makeuri 66.35.250.209
Parallel: $ hp-makeuri /dev/parport0
USB or parallel $ hp-makeuri US123456789
(using serial
number):
Notes:
1. Example using 'lsusb' to obtain USB bus ID and USB device ID (example only, the values you obtain will differ) :
$ lsusb
Bus 003 Device 011: ID 03f0:c202 Hewlett-Packard
$ hp-makeuri 003:011
(Note: You may have to run 'lsusb' from /sbin or another location. Use '$ locate lsusb' to determine this.)
See Also:
hp-setup
error: You must specify one SERIAL NO., IP, USB ID or DEVNODE parameter.
Inserisco l'IP della mia stampante di rete:
root@baix:~# hp-makeuri 10.180.156.245
HP Linux Imaging and Printing System (ver. 3.9.2)
Device URI Creation Utility ver. 5.0
Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
CUPS URI: hp:/net/HP_LaserJet_4000_Series?ip=10.180.156.245
Done.
Copio la CUPS URI e faccio una query per vedere se la stampante che mi risponde e' quella che voglio io:
root@baix:~# hp-query -dhp:/net/HP_LaserJet_4000_Series?ip=10.180.156.245
warning: hp-query should not be run as root/superuser.
hp-query: error: Must specify key with -k/--key or specify -a/--all.
Vuole una chiave e gli specifico il parametro -a (all):
root@baix:~# hp-query -dhp:/net/HP_LaserJet_4000_Series?ip=10.180.156.245 -a
warning: hp-query should not be run as root/superuser.
align-type=0
clean-type=0
color-cal-type=0
copy-type=0
embedded-server-type=1
fax-type=0
fw-download=False
icon=HP_LaserJet_4000.png
io-mfp-mode=6
io-mode=1
io-support=1
job-storage=0
linefeed-cal-type=0
model1=HP LaserJet 4000 Printer
model2=HP LaserJet 4000n Printer
model3=HP LaserJet 4000se Printer
model4=HP LaserJet 4000t Printer
model5=HP LaserJet 4000tn Printer
monitor-type=0
panel-check-type=1
pcard-type=0
plugin=0
plugin-reason=0
power-settings=0
pq-diag-type=0
r-type=0
r0-agent1-kind=4
r0-agent1-sku=C4127A/C4127X
r0-agent1-type=1
scan-style=0
scan-type=0
status-battery-check=0
status-dynamic-counters=0
status-type=9
support-released=True
support-subtype=12903
support-type=2
support-ver=0.9.5
tech-class=['LJMono', 'Postscript']
tech-subclass=['Normal']
tech-type=3
usb-pid=0
usb-vid=1008
Ottimo e' lei! installo la stampante a mano usando hp-setup -dURI
root@baix:~# hp-setup -dhp:/net/HP_LaserJet_4000_Series?ip=10.180.156.245 -a
HP Linux Imaging and Printing System (ver. 3.9.2)
Printer/Fax Setup Utility ver. 8.0
Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
Using device: hp:/net/HP_LaserJet_4000_Series?ip=10.180.156.245
Done.
Ecco fatto la stampante e' pronta per essere utilizzata!