Search:  
Gentoo Wiki

HOWTO_Brother_Printer/Scanners

Contents

Requirements / Resources

You need to have udev, hal,(and possibly coldplug for a USB connection) in your system. And a kernel of 2.6.x probably too.


Brother's general 'Linux solutions center'

has useful information http://solutions.brother.com/linux/en_us/

Brother Linux FAQ

http://solutions.brother.com/linux/sol/printer/linux/linux_faq-2.html


2008.09.25 If you have already installed and still can't print, note Brother's Linux FAQ at # I'm using Gentoo Linux and I receive the following error mssage:" Filter "brlpdwrapperXXXXX" for printer "XXXXX" not available: No such file or directory" where it helpfully states:

When you use printer in a Gentoo environment, make a symbolic link to "/usr/libexec/cups/filter/brlpdwrapper[printer name]" after the driver installation.
# ln -s /usr/lib/cups/filter/brlpdwrapper[printer name] /usr/libexec/cups/filter/brlpdwrapper[printer name]


Install Printer

All users download the LPD driver rpm install matching your printer model from Brother's website.

You may also want to check Brothers instruction's if any thing changes.


If you'll be using CUPS, you probably want to get it up and running first.

Install the rpm package

Note: Brother says "If using a 64 bit arch, confirm there are symbolic links between '/usr/lib/' and '/usr/lib64/'. I cant imagine a running 64 bit arch with out this, but maybe its possible.

where xxxx.rpm is the name of the RPM file.

 # rpm -ihv --nodeps xxxx.rpm 

If complaints about a missing directory, eg /var/spool/lpd, make the directory and rerun the installing, with the force option.


Install the CUPS Wrapper driver

If using CUPS do this. If using the LPD print system, see below. You can use cups with Network, USB,...

Refer to Brother's CUPS drivers page for model/series specific instructions and download the appropriate CUPS warpper driver for your model.

In general

 # rpm -ihv --nodeps xxxx..rpm

make a symbolic link to "/usr/libexec/cups/filter/brlpdwrapper[printer name]" after the driver installation.

# ln -s /usr/lib/cups/filter/brlpdwrapper[printer name] /usr/libexec/cups/filter/brlpdwrapper[printer name]

If complaints about /etc/init.d/cups not present, it is probably safe to ignore. If installation fails, you may need to symlink /etc/init.d/cups to /etc/init.d/cupsd.

Also for a 64 bit system it was necessary to move some files from /usr/lib to /usr/lib32. exact file names may vary for your printer

#  mv /usr/lib/libbrcompij2.so* /usr/lib32/

In some cases you have to execute the Binarays to get /usr/lib/cups/filter/.... in my Case I had to execute the executables in the Dir: /usr/local/Brother/cupswrapper/

Configure CUPS

Using the LPD print system for USB, Parallel,or network connected printers (without CUPS )

edit /etc/printcap with you favorite editor

I dont know what all these lines do, taken from

File: /etc/printcap example for USB connection
DCP540CN:\
        :mx=0:\
        :sd=/var/spool/lpd/dcp540cn:\
        :sh:\
        :lp=/dev/usb/lp0:\ 
        :if=/usr/local/Brother/Printer/dcp540cn/lpd/filterdcp540cn:
File: /etc/printcap example for Network connection
DCP540CN:\
        :mx=0:\
        :sd=/var/spool/lpd/dcp540cn:\
        :sh:\
        :rm=192.168.3.3\
        :rp=lp\
        :if=/usr/local/Brother/Printer/dcp540cn/lpd/filterdcp540cn:
File: /etc/printcap example for Parallel connection
HL1440:\
        :mx=0:\
        :sd=/var/spool/lpd/HL1440:\
        :sh:\
        :lp=/dev/lp0:\
        :if=/usr/local/Brother/lpd/filterHL1440:


Verify

Verify you can print. If not research you problem and add any missed steps to the wiki.


Install Scanner

The instructions at http://solutions.brother.com/linux/en_us/ worked for me with no hassle on my amd64, using brscan2 on a MFC-5440CN. I don't use the scankey tool.


emerge sane-backends sane-frontends and xsane if desired

# emerge sane-backends sane-frontends xsane -av





Note from amd64 user

This (the older, below) instructions did not work at all for me, neither with my printer or scanner, and by reading brothers instructions it is obvious why-- because several steps are missing. Steps that were missing included creating device files for the scanner.

My recommendation is to emerge rpm and then follow Brothers instructions very carefully - they are correct, but badly laid out so that you have to carefully read them to not miss important details.

- To add to this, I (a non 64bit user) agree; this HOWTO does not correctly set up scanning on my DCP-130C.
- - A link to the installation instructions would be nice. I have found only .deb and .rpm driver packages...
-  Check out driver selection and download and instructions.



old how-to

These are older instructions, and left here in case they are useful to anyone. Please help migrate any working instructions from here to the new sections of Printer and Scanner

Printer/Scanner Instructions

Code: Get the packages you'll need for extracting the drivers
 # emerge -av app-arch/file-roller app-arch/rpm app-shells/tcsh
Note: Problems? Try "ln /usr/lib/cups/filter/brlpdwrapper{Modelname} /usr/libexec/cups/filter/brlpdwrapper{Modelname}" - works for Brother MFC-5460CN


(older) Scanner Installation

Code: Get the packages you'll need for printing and scanning
 # emerge sane-frontends sane-backends xsane cups

Another way for USB-printers would be to run lsusb

File: /etc/udev/rules.d/51-libsane.rules
  
# Brother|DCP 7020
SYSFS{idVendor}=="04f9", SYSFS{idProduct}=="0183", MODE="660", GROUP="scanner"
# Brother|MFC 5100C
SYSFS{idVendor}=="04f9", SYSFS{idProduct}=="010f", MODE="660", GROUP="scanner"
# Brother|MFC 6800
SYSFS{idVendor}=="04f9", SYSFS{idProduct}=="0111", MODE="660", GROUP="scanner"
# Brother|MFC 210C.
SYSFS{idVendor}=="04f9", SYSFS{idProduct}=="0161", MODE="660", GROUP="scanner" 
# Brother|DCP-120C.
SYSFS{idVendor}=="04f9", SYSFS{idProduct}=="0190", MODE="660", GROUP="scanner"
 
Note: Problems? Try changing "scanner" to "lp" above.
File: /etc/hotplug/usb/libsane.usermap
 
# Brother|DCP 7020
libusbscanner             0x0003      0x04f9   0x0183    0x0000       0x0000   0x00         0x00            0x00            0x00            0x00   0x00               0x00000000
# Brother|MFC 5100C
libusbscanner             0x0003      0x04f9   0x010f    0x0000       0x0000   0x00         0x00            0x00            0x00            0x00   0x00               0x00000000
# Brother|MFC 6800
libusbscanner             0x0003      0x04f9   0x0111    0x0000       0x0000   0x00         0x00            0x00            0x00            0x00   0x00               0x00000000
# Brother|MFC 210C
libusbscanner             0x0003      0x04f9   0x0161    0x0000       0x0000   0x00         0x00            0x00            0x00            0x00   0x00               0x00000000
# Brother|DCP-120C
libusbscanner             0x0003      0x04f9   0x0190    0x0000       0x0000   0x00         0x00            0x00            0x00            0x00   0x00               0x00000000
 


Code: Restarting Hal...
 
# /etc/init.d/hald restart
  

This article is still a Stub. You can help Gentoo-Wiki by expanding it.

Retrieved from "http://www.gentoo-wiki.info/HOWTO_Brother_Printer/Scanners"

Last modified: Mon, 06 Oct 2008 10:35:00 +0000 Hits: 10,987