Martin Cooper's Linux Blog

All things Linux …

Brother Drivers for a DCP 7055 on Xubuntu

Adding the Propitiatory Brother Drivers for a DCP 7055

Tested on Xubunto 11.04, this printer is a combined Printer/copier and scanner and the drivers cannot be found in the Ubuntu repos not at least in the 10.04 version of Xubuntu.

So we tried the brother Driver installer found here

http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/faq_prn.html#f00091

which seemed to work at first but did not install the correct driver for this Printer and it therefore failed to print. We then decided to start from scratch form here

http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html

and started with the Before the Installation link and in a Terminal running the following commands;

$ sudo apt-get install -y cups
[just in case it’s not installed]

$ sudo aa-complain cupsd

$ sudo mkdir /usr/share/cups/model
[don’t change this line it should say model at the end]

$ sudo ln -s /etc/init.d/cups /etc/init.d/lpd

$ sudo mkdir /var/spool/lpd

## if your using 64 bit ##
# $ sudo apt-get install -y ia32-libs

$ sudo apt-get install -y csh

$ sudo apt-get install -y sane-utils

$ sudo apt-get install -y psutils

The under Download on the above page we selected Printer Driver then the link for the name of the printer and downloaded the LPR driver and the cupswrapper driver. You need to select each in turn then right click the “I Accept” button and use “Save Link As” option to download the DEB. Both DEB’s are i386 so if you are using 64 bit you need to install them using a Terminal using the following;

$ sudo dpkg -i --force-all /home/user/Downloads/dcp7055lpr-2.1.0-1.i386.deb

and

$ sudo dpkg -i --force-all /home/user/Downloads/cupswrapperDCP7055-2.0.4-2.i386.deb

check the naming of the files as they may be change and also adjust the path to the directory your files are stored in.

If you are using a 32 bit system just double click on the files to install them.

Once the drivers are installed are installed you can use your Printing config option to add the printer, if the driver does not show in the list, try a reboot.

Next the scanning drivers.
Back at the above page under Download we now select Scanner Driver / Scan-Key-Tool link and search for the print model, in our case this leads us to the brscan4 driver and here you can download both 32 and 64 bit drivers and you need the brscan4 and scan-key-tool DEB’s which once downloaded can be installed by double clicking on them.

Notes:
You may find that the Package Manager complains that the DEB’s are faulty but it seems to be just because the package maintainer has not included his or her email address in the package. I just continued on and they installed ok.

Update for Ubuntu 12.04

You need to copy 3 files into the /usr/lib/sane directory as follows.
$ sudo cp /usr/lib64/sane/libsane-brother4.so.1 /usr/lib/sane

$ sudo cp /usr/lib64/sane/libsane-brother4.so /usr/lib/sane

$ sudo cp /usr/lib64/sane/libsane-brother4.so.1.0.7 /usr/lib/sane
You will also probably find that your scanner software will still not open the scanner hardware. I installed the xsane software;

$ sudo apt-get install -y xsane

then ran it as user from a Terminal;

$ xsane
with no result, so then I ran it as root with;

$ sudo xsane
and all was well.

I’m not sure why this should be the case but it seems to be a /dev access problem, my quick and dirty option was to open the launder [the XFCE launder] command is;

Exec=xsane
and changed it to
Exec gksudo xsane
When the launcher is clicked it then asks the user for the root/sudo password.

Another option is to run the program as root without the system asking for a password [be warned you do this at your own risk as it’s a security risk]

open the /etc/sudoers file with;

$ sudo visudo

add this line below these lines

# User privilege specification
root ALL=(ALL) ALL

username ALL=NOPASSWD: /usr/bin/xsane

then amend the launcher from;

exec=xsane

to

exec=sudo xsane

you need to substitute username for your own system name and the path and name of the program if different and you may need to reboot

Advertisements

8 responses to “Brother Drivers for a DCP 7055 on Xubuntu

  1. queeup February 11, 2012 at 12:38 pm

    I think udev rule better than sudo trick for scanner.
    http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/instruction_scn1c.html#u9.10

    I have no idea how to print two side tho. If you know something about it please share.

  2. queeup March 9, 2012 at 10:40 am

    Hey Martin,

    Did you find the way for printing 2-sided? I can’t find it. I know this printer not duplex but it should be manual 2-sided print. Like print first odd numbered pages or something.

  3. Jo Vandeginste May 13, 2012 at 7:09 am

    Thanks for this information, it got me going very quickly! I have a suggestion:

    The sudo issue (in my case at least, but probably for everyone) is solved by adding your own user to the group ‘lp’. If you check the strace of xsane, it accesses a bunch of /dev/bus/usb/00x/00y (x and y are numbers). One of those returns ‘permission denied’, and that one is exactly the scanner entry (mind: the exact path is different per person, even on the same system while you plug/unplug devices this changes!). ‘ls -l’ shows:

    $ ls -l /dev/bus/usb/001/002
    crw-rw-r– 1 root lp 189, 1 mei 13 09:02 /dev/bus/usb/001/002

    Meaning: group owner is ‘lp’. Add your user to the group lp, reboot for good measure, and your ready to scan without sudo:
    sudo usermod -a -G lp username

    Hope this is clear 🙂 (and please test it and feed me back if anything is wrong)

  4. queeup May 22, 2012 at 2:37 pm

    I had a problem with printing on ubuntu 12.04. I guess brother needs to update their drivers. But I extract ppd file from Mac version and modify a little bit for linux. It’s working better I guess. More responsive. Here it is: http://code.google.com/p/queeup/downloads/detail?name=Brother_DCP-7055_CUPS_Linux.ppd

    Just download and install drivers like before but on printer adding chose ppd file I submit.

  5. simon July 11, 2013 at 2:37 pm

    UBUNTU 12.04:
    When installing the driver, I got the message:
    initctl: Unknown job: lpd

    To solve that, I removed the symlink created by the above listed command:
    sudo ln -s /etc/init.d/cups /etc/init.d/lpd

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: