script: Brother DCP-7030 printer drivers on Squeeze AMD64

Getting your soundcard to work, using Debian on non-i386 hardware, etc

script: Brother DCP-7030 printer drivers on Squeeze AMD64

Postby Bas Koning » 2011-08-24 12:23

I have a Brother DCP-7030 printer.
During installation of Squeeze AMD64, the printer drivers could not be automatically found, and some other drivers (for some previous model) where advised. They don’t work well at all...

So I created this script. It will handle the installation of the drivers correctly.

The main problem was that DCP-7030 only had i386 drivers available, they seem to work flawlessly on AMD64, just had to use -force-architecture while installing.

I also installed the scanner, including the trigger for the 'SCAN' button (skey), while I was at it:
Code: Select all
#!/bin/sh

echo 'Brother DC-7030 installer for AMD-64'

#download debs for 7030 from Brother, check their site if you have a different model
wget http://www.brother.com/pub/bsc/linux/dlf/brdcp7030lpr-2.0.2-1.i386.deb
wget http://www.brother.com/pub/bsc/linux/dlf/cupswrapperDCP7030-2.0.2-1.i386.deb
wget http://www.brother.com/pub/bsc/linux/dlf/brscan3-0.2.11-4.amd64.deb
wget http://www.brother.com/pub/bsc/linux/dlf/brscan-skey-0.2.1-3.amd64.deb

#next line is part of tip from https://bugs.launchpad.net/ubuntu/+source/cups/+bug/701856 don’t know if it is necessary:
sudo mkdir /usr/share/cups/model

#prerequisite for Ubuntu/Debian according to http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/before.html#004
sudo apt-get install lib32stdc++6

#instal lpr
sudo dpkg -i --force-all --force-architecture brdcp7030lpr-2.0.2-1.i386.deb
#install cupswrapper
sudo dpkg -i --force-all --force-architecture cupswrapperDCP7030-2.0.2-1.i386.deb

#install scanner:

#prerequisite for Ubuntu/Debian according to http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/before.html#101
sudo dpkg -i --force-all brscan3-0.2.11-4.amd64.deb
sudo dpkg -i --force-all brscan-skey-0.2.1-3.amd64.deb

#according to http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/instruction_scn1c.html#d6
sudo echo ' ' >> /lib/udev/rules.d/60-libsane.rules
sudo echo '#Brother scanner' >> /lib/udev/rules.d/60-libsane.rules
sudo echo 'ATTRS{idVendor}=="04f9", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"' >> /lib/udev/rules.d/60-libsane.rules

sudo brscan-skey #start scanner-key program. Check /usr/local/Brother/sane/scripts to see where the images end up.
sudo brscan-skey -l #list scanner

#all finished, cleanup
sudo rm brdcp7030lpr-2.0.2-1.i386.deb
sudo rm cupswrapperDCP7030-2.0.2-1.i386.deb
sudo rm brscan3-0.2.11-4.amd64.deb
sudo rm brscan-skey-0.2.1-3.amd64.deb
echo 'Done: check printer functions at'
echo 'http://localhost:631'
Debian-Wheezy amd64 xfce
Bas Koning
 
Posts: 12
Joined: 2011-08-13 03:10

Re: script: Brother DCP-7030 printer drivers on Squeeze AMD6

Postby hexabit » 2012-02-05 20:43

I did exactly as You but scanner does not work.

Code: Select all
$ dpkg -l|grep Brother
ii  brdcp7030lpr                         2.0.2-1                        Brother DCP-7030 LPR driver
ii  brscan-skey                          0.2.1-3                        Brother Linux scanner S-KEY tool
ii  brscan3                              0.2.11-4                       Brother Scanner Driver
ii  cupswrapperdcp7030                   2.0.2-1                        Brother DCP7030 CUPS wrapper driver


Code: Select all
$ lsusb
Bus 006 Device 002: ID 04f9:01ea Brother Industries, Ltd DCP-7030


Code: Select all
$ brscan-skey -l
DCP-7030          : brother3:bus3;dev1  : USB                  Active
scan from USB(brother3:bus3;dev1) to /root/brscan/brscan.8kf3Ib
scanimage: open of device brother3:bus3;dev1 failed: Invalid argument


Code: Select all
$ sane-find-scanner
...
found USB scanner (vendor=0x04f9, product=0x01ea) at libusb:006:002
...


but xsane does not find any scanner > "no devices available"

Please help.

Ok. I found the solution on Brother website FAQ:

http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/faq_scn.html#f00101

I copy files for Brscan3:

Example
command(For brscan3 Users):

Code: Select all
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/lib


REMEMBER: on my debian there was no /usr/lib/sane directory so I had to make it before copying !

Code: Select all
mkdir /usr/lib/sane


Now the scanner works.
hexabit
 
Posts: 1
Joined: 2012-02-05 20:37


Return to Hardware

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable