Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I,m still trying to install a ds-740 scanner I get
Code:
found USB scanner (vendor=0x04f9 [Brother], product=0x0469 [DS-740D]) at libusb:001:003
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
Code:
scanimage -L
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
Have you downloaded the driver? I found a .deb package at https://www.brother.co.uk/support/ds-740d/downloads. You'd have to unpack this by hand to install it in PCLinuxOS or Slackware but it can be done.
The most essential parts of the driver are the configuration file, which goes into /etc/sane.d and the SANE backend, which goes into one of the library trees (Slackware puts them in /usr/lib64/sane but I don't know where RedHat distros put them). You also need to edit the name of the configuration file into /etc/sane.d/dll.conf, but it's quite possible that the package contains a script which does all that for you.
Have a look at the man page for sane. It describes how to run scanimage with debugging active so that you can see where the holdup is.
I didn't see an rpm when I looked, which surprised me. Usually manufacturers provide both. Obviously I didn't look hard enough.
The txz file that you have made (I assume you used rpm2tgz to convert it) should be directly installable in Slackware using installpkg. Afterwards you should find all the files you need in their proper locations. You may need to put your usb vendor and device numbers into the config file provided but sometimes just uncommenting the usb option is enough. And you definitely need to check if the driver name has been edited into dll.conf by the installer. If you're lucky, the thing will just work. If not, debug it as described in the man page.
Check in /lib/udev/rules.d. There should be a file of rules for scanners; in Slackware it's called 80-libsane.rules. I don't know what Debian calls it. If there isn't a line there for your scanner, add one, using the existing lines as a model. Then unplug the scanner and plug it in again. udev needs to transfer group ownership of the usb port that your scanner uses to the scanner group in order for you to find it without being root.
after adding:
# Brother-DS740D
ATTR{idVendor}=="0x04f9", ATTR{idProduct}=="0x0469", MODE="0660", GROUP="lp", ENV{libsane_matched}="yes"
Hplip gives a warning, and scanimage --l still does not detect scanner. I would like to try and reinstall sane but the 15 mirrors are not available yet. OR maybe remove hplip ?
Last edited by prizm02; 11-10-2021 at 08:29 PM.
Reason: mistake
I converted the 64bit RPM from the brother website
There is no indication of the actual command used.
Quote:
but it's quite possible that the package contains a script which does all that for you
Indeed there is.
I suggest running
Code:
rpm2txz -c -S -n -d brscan5-1.2.7-0.x86_64.rpm
(the -S option extracts the install scripts in the rpm) to rebuild the package, and then run
Code:
upgradepkg --reinstall brscan5-1.2.7-x86_64-0.txz
The doinst.sh script will run, adding the supporting libraries, followed by running the script '/opt/brother/scanner/brscan5/setupSaneScan5' with the -i option (this adds an entry to /etc/sane.d/dll.conf) and then '/opt/brother/scanner/brscan5/udev-rules/udev_install' (to set up udev rules).
Upgrading brscan5-1.2.7-x86_64-0 package using ./brscan5-1.2.7-x86_64-0.txz
+==============================================================================
Pre-installing package brscan5-1.2.7-x86_64-0...
Removing package: brscan5-1.2.7-x86_64-0-upgraded-2021-11-11,08:50:14
Verifying package brscan5-1.2.7-x86_64-0.txz.
Installing package brscan5-1.2.7-x86_64-0.txz:
PACKAGE DESCRIPTION:
# brscan5 (Brother Scanner Driver brscan5)
#
# Brother sane backend Driver
#
Executing install script for brscan5-1.2.7-x86_64-0.txz.
This software is based in part on the work of the Independent JPEG Group.
ln: failed to create symbolic link '/usr/lib//libLxBsDeviceAccs.so.1.0.0': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsDeviceAccs.so.1.0': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsDeviceAccs.so.1': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsNetDevAccs.so.1.0.0': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsNetDevAccs.so.1.0': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsNetDevAccs.so.1': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsScanCoreApi.so.3.2.0': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsScanCoreApi.so.3.2': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsScanCoreApi.so.3': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsUsbDevAccs.so.1.0.0': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsUsbDevAccs.so.1.0': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsUsbDevAccs.so.1': File exists
ln: failed to create symbolic link '/usr/lib64//sane/libsane-brother5.so.1.0.7': File exists
ln: failed to create symbolic link '/usr/lib64//sane/libsane-brother5.so.1.0': File exists
ln: failed to create symbolic link '/usr/lib64//sane/libsane-brother5.so.1': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsDeviceAccs.so.1.0.0': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsDeviceAccs.so.1.0': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsDeviceAccs.so.1': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsNetDevAccs.so.1.0.0': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsNetDevAccs.so.1.0': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsNetDevAccs.so.1': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsScanCoreApi.so.3.2.0': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsScanCoreApi.so.3.2': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsScanCoreApi.so.3': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsUsbDevAccs.so.1.0.0': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsUsbDevAccs.so.1.0': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsUsbDevAccs.so.1': File exists
ln: failed to create symbolic link '/etc/opt/brother/scanner/brscan5/brscan5.ini': File exists
ln: failed to create symbolic link '/etc/opt/brother/scanner/brscan5/brsanenetdevice.cfg': File exists
ln: failed to create symbolic link '/etc/opt/brother/scanner/brscan5/models/models': File exists
ln: failed to create symbolic link '/usr/bin/brsaneconfig5': File exists
Package brscan5-1.2.7-x86_64-0.txz installed.
Package brscan5-1.2.7-x86_64-0 upgraded with new package ./brscan5-1.2.7-x86_64-0.txz.
Dmesg :
Code:
290.858551] usb 1-4: New USB device found, idVendor=04f9, idProduct=0469, bcdDevice= 4.06
[ 290.858564] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 290.858570] usb 1-4: Product: DS-740D
[ 290.858574] usb 1-4: Manufacturer: Brother
[ 290.858577] usb 1-4: SerialNumber: U65748A1X117440
[ 899.020522] usb 1-4: USB disconnect, device number 3
[ 908.509301] usb 1-4: new high-speed USB device number 4 using ehci-pci
[ 914.089337] usb 1-4: device descriptor read/64, error -110
[ 914.324885] usb 1-4: New USB device found, idVendor=04f9, idProduct=0469, bcdDevice= 4.06
[ 914.324899] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 914.324904] usb 1-4: Product: DS-740D
[ 914.324908] usb 1-4: Manufacturer: Brother
[ 914.324911] usb 1-4: SerialNumber: U65748A1X117440
[ 951.986824] usb 1-4: USB disconnect, device number 4
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages)
scanimage -p
Code:
root@condor:~# scanimage -p
Output format is not set, using pnm as a default.
scanimage: no SANE devices found
sane-find-scanner
Code:
found USB scanner (vendor=0x04f9 [Brother], product=0x0469 [DS-740D]) at libusb:001:004
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
According to Archwiki brother DS series needs libsane-dsseries 1.0.5_1-2 package to work with brother DS scanners. I did not find it in slackbuilds repo.
also
Code:
/opt/brother/scanner/brscan5/models
is empty.
output of brsaneconfig5
Code:
/opt/brother/scanner/brscan5/brscan_gnetconfig: error while loading shared libraries: libavahi-client.so.3: cannot open shared object file: No such file or directory
/opt/brother/scanner/brscan5/brscan_cnetconfig: error while loading shared libraries: libavahi-client.so.3: cannot open shared object file: No such file or directory
As I understand it, brsaneconfig5 is used for setting up ethernet connections.
Running 'for f in br*config* lib*; do echo $f; ldd $f | grep not; done' in /opt/brother/scanner/brscan5 shows that brscan_cnetconfig, brscan_gnetconfig and libsane-brother5.so.1.0.7 all have a dependency on avahi.
The use case for network discovery of a portable scanner defeats me, so I would not expect this to be a hard dependency.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.