NSLU2-Linux
view · edit · print · history

HowTo.UnslungScanWithHPLIP History

Hide minor edits - Show changes to markup

May 17, 2009, at 04:18 PM by Brian Zhou -- success story with optware/syno-x07
Changed lines 170-171 from:
  • Apr 2009 - see also http://forum.dsmg600.info/viewtopic.php?id=4286
to:
  • Apr 2009 - see also http://forum.dsmg600.info/viewtopic.php?id=4286
  • May 2009 - see also http://forum.synology.com/enu/viewtopic.php?f=27&t=14801
April 29, 2009, at 05:59 PM by BrianZhou --
Changed lines 169-170 from:
  • October 3, 2008 - Didn't work for me on Unslung 6.10 Beta and hplip-2.8.7-2. Running /opt/bin/scanimage -L says No scanners were identified, but sane-find-scanner says found USB scanner (vendor=0x03f0 [HP], product=0x7e04 [Deskjet F4100 series]) at libusb:002:007, Your USB scanner was (probably) detected. It may or may not be supported by SANE. I thought the point of using HPLIP was that it didn't need SANE to work and was compatible with more HP printers? Was HPLIP 2.8.7-2 possibly not compiled with scanner support? How can you check? Why would that have been done? Can it be compiled on the NSLU2?
to:
  • October 3, 2008 - Didn't work for me on Unslung 6.10 Beta and hplip-2.8.7-2. Running /opt/bin/scanimage -L says No scanners were identified, but sane-find-scanner says found USB scanner (vendor=0x03f0 [HP], product=0x7e04 [Deskjet F4100 series]) at libusb:002:007, Your USB scanner was (probably) detected. It may or may not be supported by SANE. I thought the point of using HPLIP was that it didn't need SANE to work and was compatible with more HP printers? Was HPLIP 2.8.7-2 possibly not compiled with scanner support? How can you check? Why would that have been done? Can it be compiled on the NSLU2?
  • Apr 2009 - see also http://forum.dsmg600.info/viewtopic.php?id=4286
October 03, 2008, at 05:53 AM by colin gebhart -- like I said, minor edits...
Changed lines 1-2 from:

This page will probably fit your needs, but it is still a work-in-progress. The only risks you will have on following its intructions are to have to reinstall the hplip, hpijs and python packages, but if you aren't adventurous enough to try it, check the comments in the end of the page (for user reports) or come back in the future.

If you try it and it works for you (or not), please, leave your note on this comments section in the end of the page so I can impprove these instructions accordingly.

to:

This page will probably fit your needs, but it is still a work-in-progress. The only risks you will have on following its instructions are to have to reinstall the hplip, hpijs and python packages, but if you aren't adventurous enough to try it, check the comments in the end of the page (for user reports) or come back in the future.

If you try it and it works for you (or not), please, leave your note on this comments section in the end of the page so I can improve these instructions accordingly.

Changed lines 12-13 from:

Since I spent an entire Sunday afternoon figuring out why hplip didn't work util I find a not-so-simple cause and not-so-trivial solution, because every hp-* utilities failed stating "CUPSEXT" extension could not be loaded although it was there, and consequently making sane not to be able to detect your scanner, I decided to share this with the slug community in the hope it could be of some help to anyone else.

to:

Since I spent an entire Sunday afternoon figuring out why hplip didn't work until I find a not-so-simple cause and not-so-trivial solution, because every hp-* utilities failed stating "CUPSEXT" extension could not be loaded although it was there, and consequently making sane not to be able to detect your scanner, I decided to share this with the slug community in the hope it could be of some help to anyone else.

Changed lines 16-17 from:

Requirements / pre-requisites

to:

Requirements / prerequisites

Changed lines 64-66 from:
This is necessary because the hplip-2.7.12 package was assembled upon python 2.4 while hplip-2.8.7-1 was assebled upon python 2.5, so an important extension (cupsext) is linked accordingly.
to:
This is necessary because the hplip-2.7.12 package was assembled upon python 2.4 while hplip-2.8.7-1 was assembled upon python 2.5, so an important extension (cupsext) is linked accordingly.
Changed lines 148-149 from:

Now, if not familiar to it, read sane's docummentation on how to use "scanimage". This will allow you to use your scanner from the Slug's command prompt.

to:

Now, if not familiar to it, read sane's documentation on how to use "scanimage". This will allow you to use your scanner from the Slug's command prompt.

Changed lines 163-164 from:

Please, add your comment here if you have success or fail on making this guide to work for you (the first two are just exaples):

to:

Please, add your comment here if you have success or fail on making this guide to work for you (the first two are just examples):

Changed line 166 from:
  • August, 1 2008 - Didn't work for me since I couldn't find the file... blah bhla... (hypotetical)
to:
  • August, 1 2008 - Didn't work for me since I couldn't find the file... blah blah... (hypothetical)
October 03, 2008, at 05:51 AM by colin gebhart --
Changed line 169 from:
  • October 3, 2008 - Didn't work for me on Unslung 6.10 Beta and hplip-2.8.7-2. Running /opt/bin/scanimage -L says No scanners were identified, but sane-find-scanner says found USB scanner (vendor=0x03f0 [HP], product=0x7e04 [Deskjet F4100 series]) at libusb:002:007, Your USB scanner was (probably) detected. It may or may not be supported by SANE. I thought the point of using HPLIP was that it didn't need SANE to work and was compatible with more HP printers ???
to:
  • October 3, 2008 - Didn't work for me on Unslung 6.10 Beta and hplip-2.8.7-2. Running /opt/bin/scanimage -L says No scanners were identified, but sane-find-scanner says found USB scanner (vendor=0x03f0 [HP], product=0x7e04 [Deskjet F4100 series]) at libusb:002:007, Your USB scanner was (probably) detected. It may or may not be supported by SANE. I thought the point of using HPLIP was that it didn't need SANE to work and was compatible with more HP printers? Was HPLIP 2.8.7-2 possibly not compiled with scanner support? How can you check? Why would that have been done? Can it be compiled on the NSLU2?
October 03, 2008, at 05:49 AM by colin gebhart --
Changed line 169 from:
  • September 24, 2008 - Didn't work for me on Unslung 6.10 Beta and hplip-2.8.7-2. Running /opt/bin/hp-probe -busb says error: CUPSEXT could not be loaded. Please check HPLIP installation., oops fixed that, CUPS must be installed and functional before starting this. Now the error when running hp-probe -busb is error: HPMUDEXT could not be loaded. Please \check HPLIP installationl;p
to:
  • October 3, 2008 - Didn't work for me on Unslung 6.10 Beta and hplip-2.8.7-2. Running /opt/bin/scanimage -L says No scanners were identified, but sane-find-scanner says found USB scanner (vendor=0x03f0 [HP], product=0x7e04 [Deskjet F4100 series]) at libusb:002:007, Your USB scanner was (probably) detected. It may or may not be supported by SANE. I thought the point of using HPLIP was that it didn't need SANE to work and was compatible with more HP printers ???
October 03, 2008, at 02:53 AM by colin gebhart -- net-snmp is required
Changed lines 23-24 from:
     #ipkg remove hpijs
to:
     # ipkg remove hpijs
Changed lines 29-30 from:
     #ipkg install sane-backends
to:
     # ipkg install sane-backends
Changed lines 33-40 from:
     #ipkg install hplip
2.3 - python, python24 and python25 packages (this page is based on 2.5-1, 2.4.5-1 and 2.5.2-2 respectively)
     #ipkg install python
     #ipkg install python24
     #ipkg install python25
     #ipkg install coreutils
to:
     # ipkg install hplip
2.3 - net-snmp
     # ipkg install net-snmp
2.4 - python, python24 and python25 packages (this page is based on 2.5-1, 2.4.5-1 and 2.5.2-2 respectively)
     # ipkg install python
     # ipkg install python24
     # ipkg install python25
     # ipkg install coreutils
Changed lines 48-49 from:
2.4 - make sure /opt/bin/python symlink points to the "correct" python executable (depending on hplip version):
to:
2.5 - make sure /opt/bin/python symlink points to the "correct" python executable (depending on hplip version):
Changed lines 52-55 from:
     #cd /opt/bin
     #rm python
     #ln -s /opt/bin/python24 python
to:
     # cd /opt/bin
     # rm python
     # ln -s /opt/bin/python24 python
Changed lines 58-61 from:
     #cd /opt/bin
     #rm python
     #ln -s /opt/bin/python25 python
to:
     # cd /opt/bin
     # rm python
     # ln -s /opt/bin/python25 python
Changed lines 76-77 from:
     #vi /opt/lib/python2.4/site-packages/cupsext.so
to:
     # vi /opt/lib/python2.4/site-packages/cupsext.so
Changed lines 80-81 from:
     #vi /opt/lib/python2.5/site-packages/cupsext.so
to:
     # vi /opt/lib/python2.5/site-packages/cupsext.so
Changed lines 91-95 from:
     #mkdir /opt/bin/data
     #mkdir /opt/bin/data/models
     #ln -s /opt/share/hplip/data/models/models.dat /opt/bin/data/models
     #ln -s /opt/share/hplip/hpssd.py /opt/bin
to:
     # mkdir /opt/bin/data
     # mkdir /opt/bin/data/models
     # ln -s /opt/share/hplip/data/models/models.dat /opt/bin/data/models
     # ln -s /opt/share/hplip/hpssd.py /opt/bin
Changed lines 97-98 from:
     /opt/bin/hp-probe
to:
     # /opt/bin/hp-probe
Changed lines 115-117 from:
     #cd /opt/bin
     #./hp-probe -busb
to:
     # cd /opt/bin
     # ./hp-probe -busb
Changed lines 137-139 from:
     #cd /opt/bin
     #./scanimage -L
to:
     # cd /opt/bin
     # ./scanimage -L
Deleted line 155:
Changed line 169 from:
  • September 24, 2008 - Didn't work for me on Unslung 6.10 Beta and hplip-2.8.7-2. Running /opt/bin/hp-probe -busb says error: CUPSEXT could not be loaded. Please check HPLIP installation., oops fixed that, CUPS must be installed and functional before starting this. Now the error when running hp-probe -busb is error: HPMUDEXT could not be loaded. Please check HPLIP installation
to:
  • September 24, 2008 - Didn't work for me on Unslung 6.10 Beta and hplip-2.8.7-2. Running /opt/bin/hp-probe -busb says error: CUPSEXT could not be loaded. Please check HPLIP installation., oops fixed that, CUPS must be installed and functional before starting this. Now the error when running hp-probe -busb is error: HPMUDEXT could not be loaded. Please \check HPLIP installationl;p
October 01, 2008, at 02:43 PM by colin gebhart -- formatting
Added line 94:
Changed lines 96-98 from:
     -sh:hp-probe:not found. 
You either didn't install coreutils as above, or it is mis-configured. If you can't figure out how to fix coreutils, one solution is to change the shebang line in each of the scripts that fails.
The header of the script you are trying to run will say
to:
     -sh:hp-probe:not found.
You either didn't install coreutils as above, or it is mis-configured. If you can't figure out how to fix coreutils, one solution is to change the shebang line in each of the scripts that fails. The header of the script you are trying to run will say
October 01, 2008, at 02:41 PM by colin gebhart -- shebangs and coreutils
Added line 40:
     #ipkg install coreutils
Changed lines 92-96 from:

3 - If you are using Unslung 6.10 Beta and hplip-2.8.7-2, every python script in HPLIP appears to have the wrong interpreter command in it. e.g. -

     /opt/bin/hp-probe 
header says
     #!/usr/bin/env python
When you try to run it below, BASH will try to interpret it and you will get something like
to:

3 - If when you try to run a script like

     /opt/bin/hp-probe
You get an error like
Changed lines 96-99 from:
To get the python interpreter to run it instead of BASH, change the header to
     #!/usr/bin/python
Note: I may have this wrong. Somehow you can set an env system path that will allow this alternative header. I haven't figured out how to do it yet though. http://lists.apple.com/archives/darwin-userlevel/2004/Jul/msg00010.html
to:
You either didn't install coreutils as above, or it is mis-configured. If you can't figure out how to fix coreutils, one solution is to change the shebang line in each of the scripts that fails.
The header of the script you are trying to run will say
     #! /usr/bin/env python
     Change it to
     #! /usr/bin/python
September 25, 2008, at 06:29 AM by colin gebhart -- maybe i was wrong on that?
Changed lines 99-100 from:
to:
Note: I may have this wrong. Somehow you can set an env system path that will allow this alternative header. I haven't figured out how to do it yet though. http://lists.apple.com/archives/darwin-userlevel/2004/Jul/msg00010.html
September 25, 2008, at 06:21 AM by colin gebhart -- CUPS required and update my new problem
Changed lines 3-4 from:
to:

You must install CUPS before continuing http://www.nslu2-linux.org/wiki/HowTo/AddPrinter

Changed line 163 from:
  • September 24, 2008 - Didn't work for me on Unslung 6.10 Beta and hplip-2.8.7-2. Running /opt/bin/hp-probe -busb says error: CUPSEXT could not be loaded. Please check HPLIP installation.
to:
  • September 24, 2008 - Didn't work for me on Unslung 6.10 Beta and hplip-2.8.7-2. Running /opt/bin/hp-probe -busb says error: CUPSEXT could not be loaded. Please check HPLIP installation., oops fixed that, CUPS must be installed and functional before starting this. Now the error when running hp-probe -busb is error: HPMUDEXT could not be loaded. Please check HPLIP installation
September 25, 2008, at 04:13 AM by colin gebhart -- done maybe?
Changed lines 40-41 from:
     On Unslung 6.10 Beta I believe Python2.5 is installed as python, and if you are using hplip-2.8.7-2 I think python24 is unnecessary.  Python25 in any case is redundant.
to:
On Unslung 6.10 Beta I believe Python2.5 is installed as python, and if you are using hplip-2.8.7-2 I think python24 is unnecessary. Python25 in any case is redundant.
Changed lines 56-60 from:

If you are using Unslung 6.10 Beta and hplip-2.8.7-2, do nothing. The symlinks exist and are correct. Further there is no /opt/bin/python25, it is /opt/bin/python2.5

This is necessary because the hplip-2.7.12 package was assembled upon python 2.4 while hplip-2.8.7-1 was assebled upon python 2.5, so an important extension (cupsext) is linked accordingly.

to:
If you are using Unslung 6.10 Beta and hplip-2.8.7-2, do nothing. The symlinks exist and are correct. Further there is no /opt/bin/python25, it is /opt/bin/python2.5
This is necessary because the hplip-2.7.12 package was assembled upon python 2.4 while hplip-2.8.7-1 was assebled upon python 2.5, so an important extension (cupsext) is linked accordingly.
Changed lines 77-78 from:
     Do nothing, cupsext.so has the correct unicode statement
to:
Do nothing, cupsext.so has the correct unicode statement
September 25, 2008, at 04:11 AM by colin gebhart -- now we\'re getting somewhere
Changed lines 90-92 from:

3 - If you are using Unslung 6.10 Beta and hplip-2.8.7-2, every python script in HPLIP appears to have the wrong interpreter command in it. e.g. - /opt/bin/hp-probe header says

to:

3 - If you are using Unslung 6.10 Beta and hplip-2.8.7-2, every python script in HPLIP appears to have the wrong interpreter command in it. e.g. -

     /opt/bin/hp-probe 
header says
Changed line 94 from:

When you try to run it below, BASH will try to interpret it and you will get something like

to:
When you try to run it below, BASH will try to interpret it and you will get something like
Changed line 96 from:

To get the python interpreter to run it instead of BASH, change the header to

to:
To get the python interpreter to run it instead of BASH, change the header to
September 25, 2008, at 04:10 AM by colin gebhart -- i\'m about to give up
Changed lines 92-94 from:

When you try to run it below, BASH will try to interpret it and you will get something like -sh:hp-probe:not found. To get the python interpreter to run it instead of BASH, change the header to

to:

When you try to run it below, BASH will try to interpret it and you will get something like

     -sh:hp-probe:not found. 

To get the python interpreter to run it instead of BASH, change the header to

September 25, 2008, at 04:09 AM by colin gebhart -- i messed up the formatting
Changed lines 90-91 from:

3 - If you are using Unslung 6.10 Beta and hplip-2.8.7-2, every python script in HPLIP appears to have the wrong interpreter command in it. e.g. -

     /opt/bin/hp-probe header says
to:

3 - If you are using Unslung 6.10 Beta and hplip-2.8.7-2, every python script in HPLIP appears to have the wrong interpreter command in it. e.g. - /opt/bin/hp-probe header says

Changed lines 92-93 from:
     When you try to run it below, BASH will try to interpret it and you will get something like -sh:hp-probe:not found.
     To get the python interpreter to run it instead of BASH, change the header to 
to:

When you try to run it below, BASH will try to interpret it and you will get something like -sh:hp-probe:not found. To get the python interpreter to run it instead of BASH, change the header to

September 25, 2008, at 04:06 AM by colin gebhart -- i messed up the formatting
Changed lines 56-58 from:
     If you are using Unslung 6.10 Beta and hplip-2.8.7-2:
     Do nothing, the symlinks exist and are correct.  Further there is no /opt/bin/python25, it is /opt/bin/python2.5
to:

If you are using Unslung 6.10 Beta and hplip-2.8.7-2, do nothing. The symlinks exist and are correct. Further there is no /opt/bin/python25, it is /opt/bin/python2.5

September 25, 2008, at 04:04 AM by colin gebhart -- make corrections known to this point
Changed lines 34-35 from:
2.3 - python, python24 and python25 packages (this page is based on 2.5-1, 2.4.5-1 and 2.5.2-2 respectivelly)
to:
2.3 - python, python24 and python25 packages (this page is based on 2.5-1, 2.4.5-1 and 2.5.2-2 respectively)
Changed lines 39-41 from:
to:
     On Unslung 6.10 Beta I believe Python2.5 is installed as python, and if you are using hplip-2.8.7-2 I think python24 is unnecessary.  Python25 in any case is redundant.
Added lines 56-58:
     If you are using Unslung 6.10 Beta and hplip-2.8.7-2:
     Do nothing, the symlinks exist and are correct.  Further there is no /opt/bin/python25, it is /opt/bin/python2.5
Deleted line 72:
Changed lines 77-80 from:
You will have to look for the "PyUnicodeUCS2_DecodeUTF8" string (if using vi, type "/UC2" without the quotes and type enter).
to:
     If you are using Unslung 6.10 Beta and hplip-2.8.7-2
     Do nothing, cupsext.so has the correct unicode statement
You will have to look for the "PyUnicodeUCS2_DecodeUTF8" string (if using vi, type "/UCS2" without the quotes and type enter).
Changed lines 91-92 from:

Testing and seting it up

to:

3 - If you are using Unslung 6.10 Beta and hplip-2.8.7-2, every python script in HPLIP appears to have the wrong interpreter command in it. e.g. -

     /opt/bin/hp-probe header says
     #!/usr/bin/env python
     When you try to run it below, BASH will try to interpret it and you will get something like -sh:hp-probe:not found.
     To get the python interpreter to run it instead of BASH, change the header to 
     #!/usr/bin/python

Testing and setting it up

Changed lines 160-161 from:
  • September, 9 2008: - Didn't work for me (Marcelo Vianna / Unslung 6.8-beta / hplip-2.8.7 / sane-backends1.0.19+cvs20080315-3 / python25-2.5.2-2) - It seems hplip-2.8.7 was not compiled with scan support
to:
  • September, 9 2008: - Didn't work for me (Marcelo Vianna / Unslung 6.8-beta / hplip-2.8.7 / sane-backends1.0.19+cvs20080315-3 / python25-2.5.2-2) - It seems hplip-2.8.7 was not compiled with scan support
  • September 24, 2008 - Didn't work for me on Unslung 6.10 Beta and hplip-2.8.7-2. Running /opt/bin/hp-probe -busb says error: CUPSEXT could not be loaded. Please check HPLIP installation.
September 10, 2008, at 02:24 AM by Marcelo Vianna -- noes on hplip 2.8.7
Changed lines 5-7 from:
to:

DO NOT UPGRADE TO 2.8.7

September 10, 2008, at 02:00 AM by Marcelo Vianna -- notes on hplip-2.8.7
Added lines 4-5:

NOTE: Although this page describer how to fix hplip-2.8.7, it seems the package was not compiled with scanning support. Currently this fix only works with hplip-2.7.12.

Changed line 144 from:
  • September, 9 2008: - This works for me (Marcelo Vianna / Unslung 6.8-beta / hplip-2.8.7 / sane-backends1.0.19+cvs20080315-3 / python25-2.5.2-2)
to:
  • September, 9 2008: - Didn't work for me (Marcelo Vianna / Unslung 6.8-beta / hplip-2.8.7 / sane-backends1.0.19+cvs20080315-3 / python25-2.5.2-2) - It seems hplip-2.8.7 was not compiled with scan support
September 10, 2008, at 12:46 AM by Marcelo Vianna -- Updated page to include fixes for hplip-2.8.7 and hplip-2.7.12
Changed lines 5-6 from:

This howto intends to teach how to fix the HPLIP-2.7.12 package for the Unslung distribution in order to make "scanimage" and "saned" to work with your HP scanner so you can use your slug as a scanner server for both Windows and Linux clients.

to:

This howto intends to teach how to fix the HPLIP-2.7.12 and HPLIP-2.8.7 packages for the Unslung distribution in order to make "scanimage" and "saned" to work with your HP scanner so you can use your slug as a scanner server for both Windows and Linux clients.

Changed lines 26-27 from:
2.2 - hplip (this page is based on 2.7.12-2 version)
to:
2.2 - hplip (this page is based on 2.7.12-2 and 2.8.7-1 versions)
Changed lines 30-31 from:
2.3 - python and python24 packages (this page is based on 2.5-1 and 2.4.5-1 respectivelly)
to:
2.3 - python, python24 and python25 packages (this page is based on 2.5-1, 2.4.5-1 and 2.5.2-2 respectivelly)
Changed lines 34-38 from:
NOTE: If you don't have python25 installed, you can skit the next step, although it won't hurt.
2.4 - make sure /opt/bin/python symlink points to /opt/bin/python24 and not to /opt/bin/python25. This is necessary because the hplip-2.7.12 package was assembled upon python 2.4, so an important extension (cupsext) it carries is python 2.4 only.
to:
     #ipkg install python25
2.4 - make sure /opt/bin/python symlink points to the "correct" python executable (depending on hplip version):
     If you are using hplip-2.7.12-2:
Changed lines 44-48 from:

Fixing the hplip-2.7.12-2 package

1 - Fix the hplip "cupsext" extension included in the hplip 2.7.12 package:

The "cupsext.so" file included in the hplip 2.7.12 package was linked under a 2-BYTE Unicode environment, while the python24 2.4.5-1 package was linked under a 4-BYTE Unicode environment.
to:
     If you are using hplip-2.8.7-1:

     #cd /opt/bin
     #rm python
     #ln -s /opt/bin/python25 python

This is necessary because the hplip-2.7.12 package was assembled upon python 2.4 while hplip-2.8.7-1 was assebled upon python 2.5, so an important extension (cupsext) is linked accordingly.

Fixing the hplip package

1 - Fix the hplip "cupsext" extension included in the hplip package:

The "cupsext.so" file included in the hplip package was linked under a 2-BYTE Unicode environment, while the python24 and python25 packages were linked under a 4-BYTE Unicode environment.
Added lines 60-61:
     if you are using hplip-2.7.12:
Added lines 64-68:
     if you are using hplip-2.8.7:

     #vi /opt/lib/python2.5/site-packages/cupsext.so
Changed lines 141-142 from:
  • August, 27 2008 - Didn't work with Unslung 6.10 Could not execute #./hp-probe -busb Please help. Can I reach you by mail? Tell me yours and I'll contact you
to:
  • August, 27 2008 - Didn't work with Unslung 6.10 Could not execute #./hp-probe -busb Please help. Can I reach you by mail? Tell me yours and I'll contact you
  • September, 9 2008: - This works for me (Marcelo Vianna / Unslung 6.8-beta / hplip-2.8.7 / sane-backends1.0.19+cvs20080315-3 / python25-2.5.2-2)
August 27, 2008, at 11:46 AM by Marcelo Vianna -- success / fail log
Changed line 124 from:
  • August, 27 2008 - Didn't work with Unslung 6.10 Could not execute #./hp-probe -busb Please help. Can I reach you by mail?
to:
  • August, 27 2008 - Didn't work with Unslung 6.10 Could not execute #./hp-probe -busb Please help. Can I reach you by mail? Tell me yours and I'll contact you
August 26, 2008, at 10:25 PM by Timo Krumscheid --
Changed lines 123-124 from:
  • August, 1 2008 - Didn't work for me since I couldn't find the file... blah bhla... (hypotetical)
to:
  • August, 1 2008 - Didn't work for me since I couldn't find the file... blah bhla... (hypotetical)
  • August, 27 2008 - Didn't work with Unslung 6.10 Could not execute #./hp-probe -busb Please help. Can I reach you by mail?
August 09, 2008, at 02:55 PM by Marcelo Vianna -- added hpijs in the initial disclaimer
Changed line 1 from:

This page will probably fit your needs, but it is still a work-in-progress. The only risks you will have on following its intructions are to have to reinstall the hplip and python packages, but if you aren't adventurous enough to try it, check the comments in the end of the page (for user reports) or come back in the future.

to:

This page will probably fit your needs, but it is still a work-in-progress. The only risks you will have on following its intructions are to have to reinstall the hplip, hpijs and python packages, but if you aren't adventurous enough to try it, check the comments in the end of the page (for user reports) or come back in the future.

August 04, 2008, at 12:42 AM by Marcelo Vianna -- More text impprovements
Changed lines 93-94 from:
     #scanimage -L
to:
     #cd /opt/bin
     #./scanimage -L
August 04, 2008, at 12:38 AM by Marcelo Vianna -- Impprove text on the Detect your scanner section
Changed lines 74-75 from:

NOTE: Make sure to be on /opt/bin when running hp-probe

to:
NOTE: Make sure to be on /opt/bin when running hp-probe
August 04, 2008, at 12:36 AM by Marcelo Vianna -- imprrove the Detect your scanner scetion
Changed lines 71-72 from:
     #/opt/bin/hp-probe -busb
to:
     #cd /opt/bin
     #./hp-probe -busb

NOTE: Make sure to be on /opt/bin when running hp-probe

August 04, 2008, at 12:34 AM by Marcelo Vianna -- Fix the hp-probe path on \"detect your scanner\"
Changed lines 71-72 from:
     #hp-probe -busb
to:
     #/opt/bin/hp-probe -busb
August 02, 2008, at 08:54 PM by Marcelo Vianna -- formatting
Changed lines 102-103 from:

Now, if you want to turn your Slug into a scanner server, refer to the Setup a Scanner Server with Sane. Although it was written to instruct you on how to set saned for Openslug, it will also work for Unslung. IMPORTANT: Please notice I didn't have to do the fstab part of this page, but configuring saned.conf is a necessary step. Since you will have to install xinetd, it is a good idea to check its optware page to follow some security hints on it.

to:

Now, if you want to turn your Slug into a scanner server, refer to the Setup a Scanner Server with Sane. Although it was written to instruct you on how to set saned for Openslug, it will also work for Unslung. IMPORTANT: Please notice I didn't have to do the fstab part of this page, but configuring saned.conf is a necessary step.
Since you will have to install xinetd, it is a good idea to check its optware page to follow some security hints on it.

August 02, 2008, at 08:53 PM by Marcelo Vianna -- notes about xinetd
Changed lines 102-103 from:

Now, if you want to turn your Slug into a scanner server, refer to the Setup a Scanner Server with Sane. Although it was written to instruct you on how to set saned for Openslug, it will also work for Unslung. IMPORTANT: Please notice I didn't have to do the fstab part of this page, but configuring saned.conf is a necessary step.

to:

Now, if you want to turn your Slug into a scanner server, refer to the Setup a Scanner Server with Sane. Although it was written to instruct you on how to set saned for Openslug, it will also work for Unslung. IMPORTANT: Please notice I didn't have to do the fstab part of this page, but configuring saned.conf is a necessary step. Since you will have to install xinetd, it is a good idea to check its optware page to follow some security hints on it.

August 02, 2008, at 08:19 PM by Marcelo Vianna -- Page impprovements
Changed lines 9-10 from:

- Marcelo Vianna

to:
August 02, 2008, at 07:47 PM by Marcelo Vianna -- impproved the initial disclaimer
Changed lines 1-3 from:

This page will probably fit your needs, but it is still a work-in-progress, so if you are not adventurous enough to try it, please, come back in the future.

There is a comments section in the end of the page. If you try it and it works for you (or not), please, leave your note so I can update the page accordingly.

to:

This page will probably fit your needs, but it is still a work-in-progress. The only risks you will have on following its intructions are to have to reinstall the hplip and python packages, but if you aren't adventurous enough to try it, check the comments in the end of the page (for user reports) or come back in the future.

If you try it and it works for you (or not), please, leave your note on this comments section in the end of the page so I can impprove these instructions accordingly.

August 02, 2008, at 07:38 PM by Marcelo Vianna -- typo
Changed line 117 from:
  • July, 27 2008: - This works for me (Marcelo Vianna / Unslung 6.8-beta / hplip-2.7.13 / sane-backends1.0.19+cvs20080315-3 / python24-2.4.5-1)
to:
  • July, 27 2008: - This works for me (Marcelo Vianna / Unslung 6.8-beta / hplip-2.7.12 / sane-backends1.0.19+cvs20080315-3 / python24-2.4.5-1)
August 02, 2008, at 07:38 PM by Marcelo Vianna -- typo
Changed line 117 from:
  • July, 27 2008: - This works for me (Marcelo Vianna / Unslung 6.80beta / hplip-2.7.13 / sane-backends1.0.19+cvs20080315-3 / python24-2.4.5-1)
to:
  • July, 27 2008: - This works for me (Marcelo Vianna / Unslung 6.8-beta / hplip-2.7.13 / sane-backends1.0.19+cvs20080315-3 / python24-2.4.5-1)
August 02, 2008, at 07:38 PM by Marcelo Vianna -- typos and comments examples impprovements
Changed lines 102-103 from:

Now, if you want to turn your Slug into a scanner server, refer to the Setup a Scanner Server with Sane. Although it was written toinstruct you on how to set saned for Openslug, it will also work for Unslung. Please notice I didn't have to do the fstab part of this page, but configuring saned.conf is a necessary step.

to:

Now, if you want to turn your Slug into a scanner server, refer to the Setup a Scanner Server with Sane. Although it was written to instruct you on how to set saned for Openslug, it will also work for Unslung. IMPORTANT: Please notice I didn't have to do the fstab part of this page, but configuring saned.conf is a necessary step.

Changed line 117 from:
  • July, 27 2008: - This works for me (Marcelo Vianna / hplip-2.7.13 / sane-backends1.0.19+cvs20080315-3 / python24-2.4.5-1)
to:
  • July, 27 2008: - This works for me (Marcelo Vianna / Unslung 6.80beta / hplip-2.7.13 / sane-backends1.0.19+cvs20080315-3 / python24-2.4.5-1)
August 02, 2008, at 07:35 PM by Marcelo Vianna -- impproved comment examples
Changed lines 117-118 from:
  • This works for me (Marcelo Vianna - July, 27 2008)
  • Didn't work for me since I couldn't find the file... blah bhla... (hypotetical)
to:
  • July, 27 2008: - This works for me (Marcelo Vianna / hplip-2.7.13 / sane-backends1.0.19+cvs20080315-3 / python24-2.4.5-1)
  • August, 1 2008 - Didn't work for me since I couldn't find the file... blah bhla... (hypotetical)
August 02, 2008, at 07:33 PM by Marcelo Vianna -- Comments exaples
Changed lines 115-116 from:
Please, add your comment here if you have success or fail on making this guide to work for you:
  • This works for me (Marcelo Vianna - July, 27 2008)
to:

Please, add your comment here if you have success or fail on making this guide to work for you (the first two are just exaples):

  • This works for me (Marcelo Vianna - July, 27 2008)
  • Didn't work for me since I couldn't find the file... blah bhla... (hypotetical)
August 02, 2008, at 07:31 PM by Marcelo Vianna -- Formatting
Changed line 116 from:
*This works for me (Marcelo Vianna - July, 27 2008)
to:
  • This works for me (Marcelo Vianna - July, 27 2008)
August 02, 2008, at 07:30 PM by Marcelo Vianna -- Formatting
Changed lines 115-116 from:

- Please, add your comment here if you have success or fail on making this guide to work for you:

This works for me (Marcelo Vianna - July, 27 2008)
to:
Please, add your comment here if you have success or fail on making this guide to work for you:
*This works for me (Marcelo Vianna - July, 27 2008)
August 02, 2008, at 07:29 PM by Marcelo Vianna -- text impprovements and formatting)
Changed lines 106-109 from:

SANE - Scanner Access Now Easy

SANED - SANE Network Daemon

to:
SANE - Scanner Access Now Easy
SANED - SANE Network Daemon
Changed lines 112-113 from:

SaneTwain

to:
SaneTwain
Changed lines 115-116 from:

- Please, add your comment here if you have success or fail on making this guide to work for you:

to:

- Please, add your comment here if you have success or fail on making this guide to work for you:

This works for me (Marcelo Vianna - July, 27 2008)
August 02, 2008, at 07:27 PM by Marcelo Vianna -- formatting
Added line 105:
Added line 107:
Added line 111:
August 02, 2008, at 07:27 PM by Marcelo Vianna -- Added more references for other configuration pages
Changed lines 65-66 from:
You've finally fixed hplip and now shall be able to configure it.
to:

You've finally fixed hplip and now shall be able to configure it.

Changed lines 100-103 from:

Now, if not familiar to it, read sane's docummentation on how to use "scanimage". This will allow you to use your scanner from your Slug command prompt.

Now, if you want to turn your slug into a scanner server, refer to the Setup a Scanner Server with Sane. Although it was written toinstruct you on how to set saned for Openslug, it will also work for Unslung.

to:

Now, if not familiar to it, read sane's docummentation on how to use "scanimage". This will allow you to use your scanner from the Slug's command prompt.

Now, if you want to turn your Slug into a scanner server, refer to the Setup a Scanner Server with Sane. Although it was written toinstruct you on how to set saned for Openslug, it will also work for Unslung. Please notice I didn't have to do the fstab part of this page, but configuring saned.conf is a necessary step.

Other good references on Sane and saned configuration: SANE - Scanner Access Now Easy SANED - SANE Network Daemon

And the reference for setting up Windows scanner client: SaneTwain

August 02, 2008, at 07:18 PM by Marcelo Vianna -- typos
Changed lines 69-70 from:
Make sure your device is turned on and correctly connected to the USB port on your Slug and then run:
to:
Make sure your device is turned on and correctly connected to the USB port on your Slug, then run:
August 02, 2008, at 07:17 PM by Marcelo Vianna -- More text impprovements
Changed lines 69-70 from:
Make sure your device is turned on and correctly connected to the USB port than run:
to:
Make sure your device is turned on and correctly connected to the USB port on your Slug and then run:
Added lines 85-87:

2 - Check if scanimage can see your device:

Changed lines 97-102 from:

If you get so far, CONGRATULATIONS!!! You are ready to go!

Now, if not familiar to it, read sane's docummentation on how to use "scanimage".

If you want to turn your slug into a scanner server, refer to the Setup a Scanner Server with Sane. on how to setup saned on your slug.

to:

CONGRATULATIONS!!!!

If you get so far, you are ready to go!

Now, if not familiar to it, read sane's docummentation on how to use "scanimage". This will allow you to use your scanner from your Slug command prompt.

Now, if you want to turn your slug into a scanner server, refer to the Setup a Scanner Server with Sane. Although it was written toinstruct you on how to set saned for Openslug, it will also work for Unslung.

August 02, 2008, at 07:12 PM by Marcelo Vianna -- impproved text
Changed lines 48-49 from:
This leads it to an Unresolved Symbol situation when hplip utilities tries to import it under this version of python. In order to fix this, you will have to edit a binary file. I did this using vi:
to:
This leads it to an Unresolved Symbol situation when hplip utilities try to import it under this version of python. In order to fix this, you will have to edit a binary file. I did this using vi:
August 02, 2008, at 07:11 PM by Marcelo Vianna -- text fixing
Changed lines 54-55 from:
Finally save the file making sure you don't touch anything else and quit (again, if using vi, type ":wq", always without the quotes and type enter)
to:
Finally save the file making sure you don't touch anything else and quit (again, if using vi, type ":wq", always without the quotes, and type enter)
August 02, 2008, at 07:10 PM by Marcelo Vianna -- formatting
Changed lines 54-55 from:
Finally save the file making sure you don't touch anything else and quit (again, if using vi, type ":wq" - without the quotes)
to:
Finally save the file making sure you don't touch anything else and quit (again, if using vi, type ":wq", always without the quotes and type enter)
August 02, 2008, at 07:09 PM by Marcelo Vianna -- formatting
Changed lines 53-56 from:

Then you must replace it to "PyUnicodeUCS4_DecodeUTF8" (if using vi, just put the cursor over the "2", press "r" followed by "4").

Then save the file making sure you don't touch anything else and quit (again, if using vi, type ":wq" - without the quotes)
to:
Then you must replace it to "PyUnicodeUCS4_DecodeUTF8" (if using vi, just put the cursor over the "2", press "r" followed by "4").
Finally save the file making sure you don't touch anything else and quit (again, if using vi, type ":wq" - without the quotes)
August 02, 2008, at 07:08 PM by Marcelo Vianna --
Changed lines 52-54 from:
You will have to look for the "PyUnicodeUCS2_DecodeUTF8" string (if using vi, type "/UC2" without the quotes and type enter).//Then you must replace it to "PyUnicodeUCS4_DecodeUTF8" (if using vi, just put the cursor over the "2", press "r" followed by "4").
to:
You will have to look for the "PyUnicodeUCS2_DecodeUTF8" string (if using vi, type "/UC2" without the quotes and type enter).

Then you must replace it to "PyUnicodeUCS4_DecodeUTF8" (if using vi, just put the cursor over the "2", press "r" followed by "4").

August 02, 2008, at 07:07 PM by Marcelo Vianna -- formatting
Changed line 52 from:
You will have to look for the "PyUnicodeUCS2_DecodeUTF8" string (if using vi, type "/UC2" without the quotes and type enter).\\ Then you must replace it to "PyUnicodeUCS4_DecodeUTF8" (if using vi, just put the cursor over the "2", press "r" followed by "4").
to:
You will have to look for the "PyUnicodeUCS2_DecodeUTF8" string (if using vi, type "/UC2" without the quotes and type enter).//Then you must replace it to "PyUnicodeUCS4_DecodeUTF8" (if using vi, just put the cursor over the "2", press "r" followed by "4").
August 02, 2008, at 07:07 PM by Marcelo Vianna -- formatting
Changed line 52 from:
You will have to look for the "PyUnicodeUCS2_DecodeUTF8" string (if using vi, type "/UC2" without the quotes and type enter), and then you must replace it to "PyUnicodeUCS4_DecodeUTF8" (if using vi, just put the cursor over the "2", press "r" followed by "4").
to:
You will have to look for the "PyUnicodeUCS2_DecodeUTF8" string (if using vi, type "/UC2" without the quotes and type enter).\\ Then you must replace it to "PyUnicodeUCS4_DecodeUTF8" (if using vi, just put the cursor over the "2", press "r" followed by "4").
August 02, 2008, at 07:06 PM by Marcelo Vianna -- Impproved text
Changed line 52 from:
You will have to look for the "PyUnicodeUCS2_DecodeUTF8" (if using vi, type "/UC2" without the quotes and type enter), and then you must replace it to "PyUnicodeUCS4_DecodeUTF8" (if using vi, just put the cursor over the "2", press "r" followed by "4").
to:
You will have to look for the "PyUnicodeUCS2_DecodeUTF8" string (if using vi, type "/UC2" without the quotes and type enter), and then you must replace it to "PyUnicodeUCS4_DecodeUTF8" (if using vi, just put the cursor over the "2", press "r" followed by "4").
August 02, 2008, at 07:05 PM by Marcelo Vianna -- Formatting
Changed line 52 from:
You will have to look for the "PyUnicodeUCS2_DecodeUTF8" (if using vi, type +["/UC2?"]+ without the quotes and type enter), and then you must replace it to "PyUnicodeUCS4_DecodeUTF8" (if using vi, just put the cursor over the "2", press "r" followed by "4").
to:
You will have to look for the "PyUnicodeUCS2_DecodeUTF8" (if using vi, type "/UC2" without the quotes and type enter), and then you must replace it to "PyUnicodeUCS4_DecodeUTF8" (if using vi, just put the cursor over the "2", press "r" followed by "4").
August 02, 2008, at 07:03 PM by Marcelo Vianna -- Formatting
Changed line 52 from:
You will have to look for the "PyUnicodeUCS2_DecodeUTF8" (if using vi, type "/UC2?" without the quotes and type enter), and then you must replace it to "PyUnicodeUCS4_DecodeUTF8" (if using vi, just put the cursor over the "2", press "r" followed by "4").
to:
You will have to look for the "PyUnicodeUCS2_DecodeUTF8" (if using vi, type +["/UC2?"]+ without the quotes and type enter), and then you must replace it to "PyUnicodeUCS4_DecodeUTF8" (if using vi, just put the cursor over the "2", press "r" followed by "4").
August 02, 2008, at 07:02 PM by Marcelo Vianna -- formatting
Changed line 52 from:
You will have to look for the "PyUnicodeUCS2_DecodeUTF8" (if using vi, type "/UC2?" without the quotes and type enter), and then you must replace it to "PyUnicodeUCS4_DecodeUTF8" (if using vi, just put the cursor over the "2", press "r" followed by "4").
to:
You will have to look for the "PyUnicodeUCS2_DecodeUTF8" (if using vi, type "/UC2?" without the quotes and type enter), and then you must replace it to "PyUnicodeUCS4_DecodeUTF8" (if using vi, just put the cursor over the "2", press "r" followed by "4").
August 02, 2008, at 07:01 PM by Marcelo Vianna -- Impproved vi instructions for edititng the cupsext.so file
Changed line 52 from:
You will have to look for the "PyUnicodeUCS2_DecodeUTF8" replacing it to "PyUnicodeUCS4_DecodeUTF8" (if using vi, just put the cursor over the "2", press "r" followed by "4").
to:
You will have to look for the "PyUnicodeUCS2_DecodeUTF8" (if using vi, type "/UC2?" without the quotes and type enter), and then you must replace it to "PyUnicodeUCS4_DecodeUTF8" (if using vi, just put the cursor over the "2", press "r" followed by "4").
August 02, 2008, at 06:59 PM by Marcelo Vianna -- formatting
Changed lines 48-49 from:
This leads it to an Unresolved Symbol situation when hplip utilities tries to import it under this version of python. In order to fix this, you will have to edit a binary file. I did this using vi:
to:
This leads it to an Unresolved Symbol situation when hplip utilities tries to import it under this version of python. In order to fix this, you will have to edit a binary file. I did this using vi:
August 02, 2008, at 06:59 PM by Marcelo Vianna -- formatting
Changed lines 48-49 from:
This leads it to an unresolved symbol situation when hplip utilities tries to import it under this version of python. In order to fix this, you will have to edit a binary file. I did this using vi:
to:
This leads it to an Unresolved Symbol situation when hplip utilities tries to import it under this version of python. In order to fix this, you will have to edit a binary file. I did this using vi:
August 02, 2008, at 06:57 PM by Marcelo Vianna -- fix the text referencing an inexistent step 3
Changed lines 35-36 from:
NOTE: If you don't have python25 installed, skip to step 3
to:
NOTE: If you don't have python25 installed, you can skit the next step, although it won't hurt.
August 02, 2008, at 06:53 PM by Marcelo Vianna -- typo
Changed line 1 from:

This page will probably fit your needs, but is still a work-in-progress, so if you are not adventurous enough to try it, please, come back in the future.

to:

This page will probably fit your needs, but it is still a work-in-progress, so if you are not adventurous enough to try it, please, come back in the future.

August 02, 2008, at 06:53 PM by Marcelo Vianna -- Created a Comments section
Changed lines 1-2 from:

This page will probably fit your needs, but is still a work-in-progree, so if you are not adventurous enough to try it, please, come back in the future.

to:

This page will probably fit your needs, but is still a work-in-progress, so if you are not adventurous enough to try it, please, come back in the future.

There is a comments section in the end of the page. If you try it and it works for you (or not), please, leave your note so I can update the page accordingly.

August 02, 2008, at 06:51 PM by Marcelo Vianna -- editing
Changed lines 1-2 from:

This is the initial version of this page and may contain inconsistencies. If you are not adventurous enough to try it, please, come back in the future.

to:

This page will probably fit your needs, but is still a work-in-progree, so if you are not adventurous enough to try it, please, come back in the future.

Added lines 98-99:

Comments

- Please, add your comment here if you have success or fail on making this guide to work for you:

August 02, 2008, at 06:44 PM by Marcelo Vianna -- references the SetUpAScannerServerWithSANE page
Changed lines 96-97 from:

If you want to turn your slug into a scanner server, refer to the Sercomm utility.++] on how to setup saned on your slug.

to:

If you want to turn your slug into a scanner server, refer to the Setup a Scanner Server with Sane. on how to setup saned on your slug.

August 02, 2008, at 06:43 PM by Marcelo Vianna -- editing
Changed lines 96-97 from:

If you want to turn your slug into a scanner server, refer to the //EXISTING PAGE// on how to setup saned on your slug.

to:

If you want to turn your slug into a scanner server, refer to the Sercomm utility.++] on how to setup saned on your slug.

August 01, 2008, at 01:08 AM by Marcelo Vianna -- fix typo
Changed lines 40-41 from:
     #ln -s /opt/bin/pytohn24 python
to:
     #ln -s /opt/bin/python24 python
August 01, 2008, at 01:07 AM by Marcelo Vianna -- fix typo
Changed lines 40-41 from:
     #ln -s /opt/bin/pytohn24 pytohn
to:
     #ln -s /opt/bin/pytohn24 python
July 31, 2008, at 03:10 AM by Marcelo Vianna -- Initial version of this page (and some typo fixing)
Changed lines 54-55 from:

2 - Fix some "missing" files (actually existing one but expected to be somewhere else):

to:

2 - Fix some "missing" files (actually existing ones but expected to be somewhere else):

July 31, 2008, at 03:05 AM by Marcelo Vianna -- Initial Version of this page
Added lines 1-97:

This is the initial version of this page and may contain inconsistencies. If you are not adventurous enough to try it, please, come back in the future.

Motivation and purpose:

This howto intends to teach how to fix the HPLIP-2.7.12 package for the Unslung distribution in order to make "scanimage" and "saned" to work with your HP scanner so you can use your slug as a scanner server for both Windows and Linux clients.

Since I spent an entire Sunday afternoon figuring out why hplip didn't work util I find a not-so-simple cause and not-so-trivial solution, because every hp-* utilities failed stating "CUPSEXT" extension could not be loaded although it was there, and consequently making sane not to be able to detect your scanner, I decided to share this with the slug community in the hope it could be of some help to anyone else.

- Marcelo Vianna

Requirements / pre-requisites

IMPORTANT NOTE: This howto doesn't intend (yet) to guide you to use hplip to replace hpijs for printing purposes, so if you depend upon hpijs for printing STOP HERE! or proceed at your own risk. Possibly this page will in the future contain hints on how to configure hplip for printing purposes as well, come back in the future and check it.

1 - First make sure you DON'T have hpijs installed:

     #ipkg remove hpijs

2 - Then make sure you have installed:

2.1 - sane-backends (this page is based on 1.0.19+cvs20080315-3 version):
     #ipkg install sane-backends
2.2 - hplip (this page is based on 2.7.12-2 version)
     #ipkg install hplip
2.3 - python and python24 packages (this page is based on 2.5-1 and 2.4.5-1 respectivelly)
     #ipkg install python
     #ipkg install python24
NOTE: If you don't have python25 installed, skip to step 3
2.4 - make sure /opt/bin/python symlink points to /opt/bin/python24 and not to /opt/bin/python25. This is necessary because the hplip-2.7.12 package was assembled upon python 2.4, so an important extension (cupsext) it carries is python 2.4 only.
     #cd /opt/bin
     #rm python
     #ln -s /opt/bin/pytohn24 pytohn

Fixing the hplip-2.7.12-2 package

1 - Fix the hplip "cupsext" extension included in the hplip 2.7.12 package:

The "cupsext.so" file included in the hplip 2.7.12 package was linked under a 2-BYTE Unicode environment, while the python24 2.4.5-1 package was linked under a 4-BYTE Unicode environment.
This leads it to an unresolved symbol situation when hplip utilities tries to import it under this version of python. In order to fix this, you will have to edit a binary file. I did this using vi:
     #vi /opt/lib/python2.4/site-packages/cupsext.so
You will have to look for the "PyUnicodeUCS2_DecodeUTF8" replacing it to "PyUnicodeUCS4_DecodeUTF8" (if using vi, just put the cursor over the "2", press "r" followed by "4").
Then save the file making sure you don't touch anything else and quit (again, if using vi, type ":wq" - without the quotes)

2 - Fix some "missing" files (actually existing one but expected to be somewhere else):

     #mkdir /opt/bin/data
     #mkdir /opt/bin/data/models
     #ln -s /opt/share/hplip/data/models/models.dat /opt/bin/data/models
     #ln -s /opt/share/hplip/hpssd.py /opt/bin

Testing and seting it up

You've finally fixed hplip and now shall be able to configure it.

1 - Detect your scanner:

Make sure your device is turned on and correctly connected to the USB port than run:
     #hp-probe -busb
You shall see something like this (will vary according to you scanner model):
     --------------------
     | DEVICE DISCOVERY |
     --------------------

       Device URI                                   Model             
       -------------------------------------------  ------------------
       hp:/usb/psc_2400_series?serial=xxxxxxxxxxxx  HP psc 2400 series

     Found 1 printer(s) on the 'usb' bus.
If you get so far, hplip is correctly configured then you can try sane's scanimage command:
     #scanimage -L
You shall see something like this:
     device `hpaio:/usb/psc_2400_series?serial=xxxxxxxxxxxx' is a Hewlett-Packard psc_2400_series all-in-one

If you get so far, CONGRATULATIONS!!! You are ready to go!

Now, if not familiar to it, read sane's docummentation on how to use "scanimage".

If you want to turn your slug into a scanner server, refer to the //EXISTING PAGE// on how to setup saned on your slug.

view · edit · print · history · Last edited by Brian Zhou.
Based on work by BrianZhou, colin gebhart, Marcelo Vianna, and Timo Krumscheid.
Originally by Marcelo Vianna.
Page last modified on May 17, 2009, at 04:18 PM