View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 08-01-2013, 10:00 AM   #1
LQ Newbie
Registered: Jul 2013
Posts: 22

Rep: Reputation: Disabled
How to install Brother DCP-7040 on Slackware

I have studied quite a few web pages on installing Brother on Linux. These are some of the web pages that I studied:


Brother DCP-7040 includes a printer and a scanner. I was able to set up both the printer and scanner on Debian. Also, I have installed and set up the printer on Slackware. But setting up the scanner on Slackware has been a challenge. At the end of this article, I will state my questions about the scanner.

These are the steps that I took to install and set up the printer:

1) Start CUPS service:
chmod +x /etc/rc.d/rc.cups
/etc/rc.d/rc.cups start
2) Download the lpr and cupswrapper (rpm files) from
3) Change directory to where the downloaded packages are, and use the utility rpm2tgz to convert the files to tgz format:
rpm2tgz brdcp7040lpr-2.0.2-1.i386.rpm
rpm2tgz cupswrapperDCP7040-2.0.2-1.i386.rpm
Equivalently, it might be a good idea to type: rpm2tgz *

4) Install the tgz files using installpkg:
installpkg *
5) Add the Brother DCP7040 driver by applying this command:
6) Open http://localhost:631 in your browser, and add printer using the correct driver (Brother DCP7040).

Good news: Printer worked!

Bad news: The following steps did not lead to scanner working.

7) Download the rpm packages for scanner from
8) Change directory to where the downloaded packages are, convert rmp packages to tgz format using rpm2tgz:
rpm2tgz *
9) Install the tgz packages using installpkg
installpkg *
10) Change directory to /usr/local/Brother/sane and run
./setupSaneScan3 -i

11) Edit /lib/udev/rules.d/80-libsane.rules
(Add the following two lines before the line "# The following rule
will disable ..."):

# Brother scanners
ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"

12) Change directory to /opt/brother/scanner/brscan-skey and run

As mentioned, scanner still does not work.

When I type in sane-find-scanner, no scanner is listed. All lines that appear are commented out.
When I press the Scan button on the xsane interface, it says "Failed to start scanner: Invalid argument"

My questions:
1) Any recommendations on how to install and set up the scanner?
2) As mentioned, the scanner and the printer are in one box. What is the
device name for such a scanner?

Last edited by parviz; 08-01-2013 at 10:15 AM.
Old 08-02-2013, 10:36 AM   #2
Senior Member
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,992

Rep: Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100
Did you see this when you were searching for web pages?

Some thoughts on your scanner installation.
Brother devices add an entry to your /etc/sane.d/dll.conf. Is this present? ( Try 'grep brother /etc/sane.d/dll.conf').
# Brother scanners
ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"
That entry does not look complete. There is no entry for idProduct. Something like this would be expected.
ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="01ea", MODE="666", GROUP="scanner", ENV{libsane_matched}="yes"
The idProduct would need to match that of your device.

Does 'scanimage --help' show an available device?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Still no luck getting Brother DCP-7040 working wufo Slackware 1 03-19-2012 12:23 AM
Installing Brother DCP-7040 printer/scanner under CUPS wufo Slackware 4 11-27-2011 08:55 PM
Brother DCP 375CW printer install on Puppy dwarner30uk Linux - Newbie 1 04-24-2011 01:53 PM
[SOLVED] Successfully setup Brother DCP-135C for scanning in Slackware 13.0 Alvin Chey Slackware 3 11-09-2010 11:30 AM
[SOLVED] ubuntu 9.04 64bit and brother dcp-7030 cannot install driver Thane Linux - Hardware 7 04-18-2010 09:24 AM

All times are GMT -5. The time now is 01:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration