How to install a Brother DCP7030 printer and scanner in Ubuntu

I have installed this printer and scanner a few times but this time something went wrong the last time due to me not paying attention to what I was doing. So here are the instructions and how to avoid doing what I did that resulted in an error message.

Preparation
You will need to download some drivers from the Brother website.

You will need the two following files for the printer:
brdcp7030lpr-2.0.2-1.i386.deb
cupswrapperDCP7030-2.0.2-1.i386.deb

For the scanner you will need:
brscan3-0.2.11-4.i386.deb
brscan-skey-0.2.3-0.i386.deb

Get them from here

Download them and have them on your desktop.

First thing that I did wrong the last time was the very first step. So ENSURE PRINTER IS PLUGGED IN THE USB AND SWITCHED ON!

Place driver on desktop and open a terminal (to open a terminal just type ‘terminal’ in the box after clicking on ‘dash home’):

You need to type an instruction that has system wide authority (what is known as ‘root’ authority) so to do that the word ‘sudo’ goes in front of the command.

You will need to copy the first command below (sudo dpkg -i –force-all /home/graham/Desktop/brdcp7030lpr-2.0.2-1.i386.deb) then right click in the Terminal and paste it in, then press enter. You can paste it in in two stages.

First you can paste in
sudo dpkg -i –force-all

Then you go to the driver on your desktop and right click on it and choose Copy. This will get the full address of the driver including your user name. You then paste it into the terminal so you get a complete command like this (make sure it is your user name that appears in the command, not mine) and press Enter:

sudo dpkg -i –force-all /home/graham/Desktop/brdcp7030lpr-2.0.2-1.i386.deb

You will then be asked for your password, enter it and press Enter. Then paste this next command in (with your name, not mine) and press enter:

sudo dpkg -i –force-all /home/graham/Desktop/cupswrapperDCP7030-2.0.2-1.i386.deb

Then in the terminal check the printer has installed by pasting in the following and pressing Enter:
dpkg -l | grep Brother

You should see your printer mentioned.

Next you are going to look into a file on your machine that controls things. To do this you are going to open your text editor called Gedit, but you will do it so that it can open and save ‘read only’ files. So in the terminal you paste the following:
sudo gedit /etc/printcap

For USB Connection (Default) you will want to see that the parameter of lp is “:lp=/dev/usb/lp0”

Then restart printer by pasting in this next command and pressing enter:
sudo restart /etc/init.d/lps

INSTALLING THE SCANNER
To install the scanner you need to have a small hidden programme on your machine called ‘sane-utils’. To ensure you have it installed already, make sure you have a scanner programme installed from the Software Centre (the shopping bag icon in your launcher open the Software Centre) such as ‘Simple Scan’ or ‘Xsane Image Scanning’ (which I prefer).

Run in terminal (you should be good at this by now):
sudo dpkg -i –force-all /home/graham/Desktop/brscan3-0.2.11-4.i386.deb

Then:
sudo dpkg -i –force-all /home/graham/Desktop/brscan-skey-0.2.3-0.i386.deb

Then run scan-key-tool and try the test scanning.
Run scan-key-tool (The program will run as a background process). To do that you paste in:
sudo brscan-skey

Then to check if the scan-key-tool detects your scanner device by pasting in:
brscan-skey -l

Now you are going to edit a ‘read only’ file at ‘/lib/udev/rules.d/40-libsane.rules’. If you want to read a bit more about how to do this you can go to a previous post of mine here. This time we will do it the quick way.

Step 1. Paste in the following command and a text document will open. Now this is a bit of the programme that runs your machine so DO NOT DELETE ANYTHING. The command is:

sudo gedit /lib/udev/rules.d/40-libsane.rules

Step 2. You will see a long list of devices and you are going to add yours. You do this by adding the following two lines to the end of the device list. This is where I went wrong, I pasted them in the wrong place. It didn’t do any harm, but the scanner didn’t work.

The two lines must go after where is says: LABEL=”libsane_usb_rules_begin” and before the line “# The following rule will disable …”

I recommend you stick it after LABEL=”libsane_usb_rules_begin” so you don’t have to go to the bottom of the list.

The two lines to be pasted in are:

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

THEN SAVE THE TEXT DOCUMENT or the changes you have just made will be lost and you will have to do that bit again.

Now reboot the machine and both your printer and scanner should work great.

Now you deserve cake!

13 thoughts on “How to install a Brother DCP7030 printer and scanner in Ubuntu

  1. This is where Ubuntu lets itself down. I bet both devices are plug and play in Windows. The average user doesn’t want to have to do all this. It’s a shame, because Ubuntu is jolly good – for browsing the Internet my Netbook is light-years faster in Ubuntu than in Windows.

    • You may be correct, though it did come with a Windows installation disk as it is a multi-function machine. So perhaps not all features would be usable plug and play. Most HP printers are plug and play in Linux but I chose the Brother.

      I do use Windows sometimes on one of my machines but as you I prefer Ubuntu. My Ubuntu machine at home boots in 30 seconds and wakes from sleep in 10 seconds. Windows would still be in a coma in that time.

      • Thanks for all the instructions, unfortunately the scanner doesn’t show up anywhere.

        When I execute this command: brscan-skey -l, this is the result:

        DCP-7030 : brother3:bus1;dev1 : USB Not registered

        Being new to Ubuntu (linux) I’ve been scratching my head a lot the last days to be honest. Don’t get me wrong I’m not bashing Linux, it is however an entirely different beast from Windows. Like Timothy Barton says, it is to much of a hassle for “average Joe“ to make the Windows/Linux switch and I wish there was a way to make initial setup more transparent.

        OT. I installed Ubuntu yesterday side by side with Windows 7, because that’s the last Windows version I will be using. That make me determined to go through the learning curve and the frustrations that come with it. For example the installer refused to install Grub, so I couldn’t boot into Linux. It took me quite some time to figure it out, but if you want to, the Linux community has posted a solution for every problem you can imagine. Just Google you problem. That said, my scanner still isn’t working.

        I don’t know if this webpage is still monitored but I will check back to see if anyone has replied. On goes the search for fully working Ubuntu installation as Windows fades away in the past. 🙂

        Regards,
        Jottum

  2. It works great (I didn’t test the scanner, since I never use it)
    The installing is actually much shorter than it appears (very long blog, for few commands).

    • Glad it still works. It is such an old post I wasn’t sure if it was still relevant. Yes the post could have been shorter but I was aiming it at the very non-techie.

      • So, here’s a short technical guide for the printer:
        ————————————————————–

        Go to this site: from http://support.brother.com
        For installing the Printer download these files to your Desktop:
        – brdcp7030lpr-2.0.2-1.i386.deb
        – cupswrapperDCP7030-2.0.2-1.i386.deb
        For installing the Scanner download these files to your Desktop:
        – brscan-skey-0.2.4-1.i386.deb
        – brscan3-0.2.11-4.i386.deb

        ENSURE PRINTER IS PLUGGED IN THE USB AND SWITCHED ON!

        – open a terminal
        – enter: sudo dpkg -i –force-all ~/Desktop/brdcp7030lpr-2.0.2-1.i386.deb
        – enter your password and press enter
        – enter: sudo dpkg -i –force-all ~/Desktop/cupswrapperDCP7030-2.0.2-1.i386.deb
        – enter: dpkg -l | grep Brother
        – enter: sudo gedit /etc/printcap
        – check if this line is written well: lp=/dev/usb/lp0
        – enter : sudo restart /etc/init.d/lps
        – reboot your computer

        • I like it. Brief and straight forward. Thanks for that Xabuntu.

          For a non techie person though, they may wonder what you mean by “open a terminal”

  3. I have problem with this ‘enter: sudo gedit /etc/printcap’
    All that is written in the file is
    Brother-DCP-7030|Brother DCP-7030:rm=Infinity:rp=Brother-DCP-7030:
    DCP7030|DCP7030:rm=Infinity:rp=DCP7030:

    What should I do?

  4. I’ve tried this manual on Linux Mint without success, I guess Mint was missing some packages necessary (I’m just getting used to it).

    Brother has an installer now (they didn’t have it the last time I installed the printer and went through the process as described on their website). The installer does all the work by itself: http://support.brother.com/g/b/downloadhowto.aspx?c=de&lang=de&prod=dcp7030_all&os=128&dlid=dlf006893_000&flang=4&type3=625

    Worked brilliantly.

Leave a Reply

Your email address will not be published. Required fields are marked *