Artec Scanner

Hi All.

I’ve recently updated my old Mint installation to v21.1 and have hit an issue with my scanner, to whit I can’t get Mint to see the Artec driver files. This has occurred before - please see the link below.

https://linuxforums.org.uk/index.php?topic=11804.msg94330#msg94330

I’ve tried following the instructions that Mark (RIP) gave previously but the link to the Peppermint site no longer works, so that part of the method is out. However, I do have the driver files in my saved (old) Mint which are now copied to my new desktop. My problem is, in following Mark’s method (leaving out the ‘getting of the files from Peppermint’) I get an error message in terminal saying no such file…

richard@richard-H310M-S2V-2-0:~$ cd /usr/share/sane/gt68xx
richard@richard-H310M-S2V-2-0:/usr/share/sane/gt68xx$ sudo tar xvf Artec-Ultima-2000-firmware.tar.gz
[sudo] password for richard:         
tar: Artec-Ultima-2000-firmware.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
richard@richard-H310M-S2V-2-0:/usr/share/sane/gt68xx$ sudo tar xvf richard/Desktop/Artec-Ultima-2000-firmware.tar.gz
tar: richard/Desktop/Artec-Ultima-2000-firmware.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
richard@richard-H310M-S2V-2-0:/usr/share/sane/gt68xx$ sudo chown root:root ePlus2k.usb gt680xfw.usb
chown: cannot access 'ePlus2k.usb': No such file or directory
chown: cannot access 'gt680xfw.usb': No such file or directory
richard@richard-H310M-S2V-2-0:/usr/share/sane/gt68xx$

It’s been so long since I’ve needed to do this, I’ve forgotten how to make Mint ‘see’ the appropriate file. Any ideas?

TIA, Rich

HI Rich.

I’m not familiar with Mint but found a file in my Ubuntu 20.04 system: /usr/bin/sane-find-scanner. It’s a script and when I run it I get:

keith@E5570:~$ sane-find-scanner


  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

could not open USB device 0x413c/0x81b6 at 002:003: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0003 at 002:001: Access denied (insufficient permissions)
could not open USB device 0x0a5c/0x5832 at 001:003: Access denied (insufficient permissions)
could not open USB device 0x1bcf/0x28b8 at 001:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
  # No USB scanners found. If you expected something different, make sure that
  # you have loaded a kernel driver for your USB host controller and have setup
  # the USB system correctly. See man sane-usb for details.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.

  # You may want to run this program as root to find all devices. Once you
  # found the scanner devices, be sure to adjust access permissions as
  # necessary.
keith@E5570:~$

I don’t have a stand-alone scanner - hence the errors. Might be worth trying.

I also found:

keith@E5570:~$ find /usr -iname "*sane"

/usr/libexec/colord-sane
/usr/src/linux-headers-5.15.0-56-generic/include/config/NF_CONNTRACK_SANE
/usr/src/linux-headers-5.15.0-53-generic/include/config/NF_CONNTRACK_SANE
/usr/share/doc/libsane
/usr/lib/x86_64-linux-gnu/sane
keith@E5570:~$ 

The last directory contains files for lots of scanners including:

lrwxrwxrwx 1 root root      23 Sep 17  2020 libsane-artec.so.1 -> libsane-artec.so.1.0.29
-rw-r--r-- 1 root root   92264 Sep 17  2020 libsane-artec.so.1.0.29

So might be worth searching your system for something relevant.

Clutching at straws, really!
Keith

Hi Keith - thanks for the reply.

My scanner is found ok but won’t scan due to the relevant software not being found, despite the file sitting on my desktop! The bit I’m struggling with is getting the system to use this file.

In the past, Mark’s instructions worked fine but no longer. The link to Peppermint is defunct but, as I have the file downloaded anyway, I’ve tried leaving out that part and carrying on with the rest of the method. This is where the failure lies. I’ve pointed to where the file resides (via Terminal) but still no joy. Puzzled!!

Rich

EDIT: This is the output from Terminal

ichard@richard-H310M-S2V-2-0:~$ sudo tar xvf Artec-Ultima-2000-firmware.tar.gz
[sudo] password for richard:         
tar: Artec-Ultima-2000-firmware.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
richard@richard-H310M-S2V-2-0:~$ sudo tar xvf /richard/Desktop/Artec-Ultima-2000-firmware.tar.gz
tar: /richard/Desktop/Artec-Ultima-2000-firmware.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
richard@richard-H310M-S2V-2-0:~$ 

Rich,
You need to tell the tar command that the file is compressed so needs to be uncompressed, by using the -z option along with the others. So “xvfz” not just “xvf”:

sudo tar xvfz Artec-Ultima-2000-firmware.tar.gz

Another thing: Where actually is your file? Your command:
Richard@richard-H310M-S2V-2-0:~$ sudo tar xvf Artec-Ultima-2000-firmware.tar.gz
assumes the file is (I think) in your home directory, but your second command:
richard@richard-H310M-S2V-2-0:~$ sudo tar xvf /richard/Desktop/Artec-Ultima-2000-firmware.tar.gz
is looking in your Desktop.

The “No such file or directory” complaint might just be that the -z option is missing as it “Cannot open” the file without the -z option.

I’m guessing a bit here as I find the tar command a bit magic and I’ve never used it in anger.
Hope that helps a bit.

Keith

No, still won’t play ball! I copied the files on to my new installation Desktop from the saved (external) drive I’d used pre-changes.

I’ll keep looking and update as and when. Thanks for the advice so far!

Rich