Cobra Forum

Other Discussion and Support => Tutorials => Topic started by: mahesh on Dec 01, 2023, 06:49 AM

Title: Brother MFC-9840CDW Scanner On UBUNTU 16.04 and 18.04
Post by: mahesh on Dec 01, 2023, 06:49 AM
1) Install xsane and libusb from repositories - THIS MUST BE DONE FIRST! (I tried for 3 hours to install with the below commands before realizing I didn't have xsane installed)
Code:
$sudo apt-get install xsaneCode:
$sudo apt-get install libusb-0.1-42) First get the brscan3 package from here, which installs the brsaneconfig3 tool and install it (NOTE: download the correct brscan for your printer/scanner):
Code:
$sudo dpkg -i --force-all brscan3-0.2.13-1.amd64.deb
3) Then (critical bit) create these links - for some reason the 32 bit and 64 bit compatibility scripts have fallen down here (probably due to the non-standard nature of the Brother deb packages):

UBUNTU 16.04:
Code:
$sudo mkdir /usr/lib/sane
Code:
$sudo ln -sf /usr/lib64/libbrscandec3.so* /usr/libCode:
$sudo ln -sf /usr/lib64/sane/libsane-brother3.so* /usr/lib/saneUBUNTU 18.04:
Code:
$sudo ln -sfr /usr/lib64/libbrscandec* /usr/lib/x86_64-linux-gnuCode:
$sudo ln -sfr /usr/lib64/sane/libsane-brother* /usr/lib/x86_64-linux-gnu/saneOR You can copy the files manually:

Code:
$sudo cp /usr/lib64/libbrscandec3.so.1.0.0 /usr/lib && cp /usr/lib64/sane/libsane-brother3.so.1.0.7 /usr/lib/sane && cp /usr/lib64/sane/libsane-brother3.so.1 /usr/lib/sane && cp /usr/lib64/sane/libsane-brother3.so /usr/lib/sane && cp /usr/lib64/libbrscandec3.so /usr/lib && cp /usr/lib64/libbrscandec3.so.1 /usr/lib5) Then define the scanner on your system (note, no spaces allowed in the values assigned... and capitalisation seems important) - to find the IP you might need to go to the scanner, hit "Menu" and find the network TCP/IP settings.
Code:
$brsaneconfig3 -a name=SCANNER model=MFC-9840CDW ip=Your-printer-IP
6) This should result in a scanner definition - confirm it here (should be at the bottom of the list in a separate section, probably number 0) (Note: it creates a signature for the device in /usr/local/Brother/sane/brsanenetdevice3.cfg - you can check it here to make sure it's right...):

Code:
$brsaneconfig3 -q
7) If that doesn't do it, you might need to add your user to the "scanner" group. Check the groups you're in by running

Code:
$groups
at the command line when you're logged in. If you add yourself to the new group, you'll have to run "newgrp" or log out and in again to get the group membership to take effect.

Code:
$sudo adduser <user> scanner
8) You can run the following diagnostics to see if the scanner is recognized:

Code:
$brsaneconfig3 -q
9) If you mess up, you can remove any of them with

Code:
$brsaneconfig3 -r SCANNER