Update 2013-01-20: same works with a MFC-7360N. (Use the packages appropriate for this model in the section below instead) The only change is, that the new scan-to-key tool has moved all its files to /opt/brother/scanner so put all scan scripts there and edit the appropriate .cfg file there.
- Connect and switch on your All-in-one Brother device via USB
- Check in your package management, if sane-utils and psutils are installed. If not, install them.
- Download the scanner driver for your model, depending of your system the 32bit or 64bit version - in any case: the .deb-File
- Install it by opening a console, navigating to the folder where you saved the driver, becoming root and casting the command:
dpkg -i --force-all [brscan-driverpackage].deband test if it was installed correctly
dpkg -l | grep Brother - Make the scanner available for all users: cast (with root console)
gedit /lib/udev/rules.d/40-libsane.rulesThis opens a text editor with the file in question. Add the following lines before the line "# The following rule will disable ...":
# Brother scannersand save the file.
ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"
- Restart your computer!
- Download the appropriate scan-key-tool for your system (deb)
- Install it by opening a console, navigating to the folder where you saved the driver, becoming root and casting the command:
dpkg -i --force-all [brscankeytoolname].deband test if it was installed correctly
dpkg -l | grep Brother - Open a user console (not root!) and cast: brscan-skeyand check if the scankey-tool finds your scanner bybrscan-skey -l
- If your device was found properly, change the brscan-scripts to your needs as has been posted here. For quick copy and paste, the scripts are all in cd /usr/local/Brother/sane/script
- If all scripts work as you want them to work, don't forget to create an entry in "System --> Settings --> Autostart" with starting command brscan-skey for all users who need to use the "scan-to" key of your All-in-One device.
#! /bin/sh
set +o noclobber
#
# $1 = scanner device
# $2 = friendly name
#
#
# 100,200,300,400,600
#
resolution=200
device=$1
mkdir -p ~/brscan
if [ "`which usleep`" != '' ];then
usleep 10000
else
sleep 0.01
fi
output_file=`mktemp ~/brscan/brscan.XXXX`
echo "scan from $2($device) to $output_file"
scanimage --device-name "$device" --resolution \
$resolution -y 298.00 > $output_file
# following the original line from brother:
# echo gimp $output_file \;rm -f $output_file | sh &
#
# instead we use imagemagick to directly convert it
# into a jpg picture
# < 420 kB
convert $output_file -define jpeg:extent=420kb \
$output_file.jpg
rm $output_file # removes the temporary scan file
set +o noclobber
#
# $1 = scanner device
# $2 = friendly name
#
#
# 100,200,300,400,600
#
resolution=200
device=$1
mkdir -p ~/brscan
if [ "`which usleep`" != '' ];then
usleep 10000
else
sleep 0.01
fi
output_file=`mktemp ~/brscan/brscan.XXXX`
echo "scan from $2($device) to $output_file"
scanimage --device-name "$device" --resolution \
$resolution -y 298.00 > $output_file
# following the original line from brother:
# echo gimp $output_file \;rm -f $output_file | sh &
#
# instead we use imagemagick to directly convert it
# into a jpg picture
# < 420 kB
convert $output_file -define jpeg:extent=420kb \
$output_file.jpg
rm $output_file # removes the temporary scan file
Remark for devices with ADF:
I found additional information and ideas of scripts for using the ADF (automatic document feeder) via wiki.ubuntuusers.de (sorry guys, a German site) on this website (english).
A script enabling scanning over the ADF tested with the MFC-7420 (should work on the MFC-7820N as well) is presented in this follow-up post.
No comments:
Post a Comment