Difference between revisions of "Brother MFC-420CN"

From ArchWiki
Jump to: navigation, search
(Installing the scanner (Network, Ethernet))
Line 108: Line 108:
 
  # usermod -aG scanner [username]
 
  # usermod -aG scanner [username]
  
Additional info about setting up [http://wiki.archlinux.org/index.php/Scanner_setup_%26_configure set up SANE] if needed.
+
Additional info about setting up [http://wiki.archlinux.org/index.php/Scanner_setup_%26_configure SANE] if needed.
  
 
== Downloading scanner drivers ==
 
== Downloading scanner drivers ==
 
This scanner works with Brother's [http://solutions.brother.com/linux/sol/printer/linux/sane_drivers.html brscan2] driver. Lucky for us there is a package in AUR named [http://aur.archlinux.org/packages.php?do_Details=1&ID=6814&O=0&L=0&C=0&K=brscan&SB=n&SO=a&PP=25 brscan2-network] that will do the work for us. This driver should work for both Local USB and Network (Ethernet) modes.
 
This scanner works with Brother's [http://solutions.brother.com/linux/sol/printer/linux/sane_drivers.html brscan2] driver. Lucky for us there is a package in AUR named [http://aur.archlinux.org/packages.php?do_Details=1&ID=6814&O=0&L=0&C=0&K=brscan&SB=n&SO=a&PP=25 brscan2-network] that will do the work for us. This driver should work for both Local USB and Network (Ethernet) modes.
 
Once installed you can check the list of supported scanners by running:
 
$ brsaneconfig2 -q
 
  
 
== Installing the scanner (Local USB) ==
 
== Installing the scanner (Local USB) ==
Unfortunately I was unable to test this method but installing the package from AUR should do the work for you. If it doesn't please edit this wiki and add any extra steps you had to do here to benefit future users.
+
Installing the package from AUR should do the work for you. If your having problems then make sure your a member of the scanner group as mentioned above. You may also want to read up on setting up [http://wiki.archlinux.org/index.php/Scanner_setup_%26_configure SANE].
  
 
== Installing the scanner (Network, Ethernet) ==
 
== Installing the scanner (Network, Ethernet) ==
Line 133: Line 130:
 
  # echo "xxx.xxx.xxx.xxx brother.mynetwork brother" >> /etc/hosts
 
  # echo "xxx.xxx.xxx.xxx brother.mynetwork brother" >> /etc/hosts
 
  # brsaneconfig2 -a name=MFC420CN model=MFC-420CN nodename=brother
 
  # brsaneconfig2 -a name=MFC420CN model=MFC-420CN nodename=brother
 +
 +
== Using your scanner ==
 +
To use your scanner just install a scanning application such as the following..
 +
* xsane
 +
* xsane-frontends
 +
* kooka (kde)
  
 
= PC FAX =
 
= PC FAX =
 
Brother also has a Linux driver for the PC FAX features of this printer. For more information about the PC Fax drivers please see the [http://solutions.brother.com/linux/en_us/index.html Brother Linux Driver page].
 
Brother also has a Linux driver for the PC FAX features of this printer. For more information about the PC Fax drivers please see the [http://solutions.brother.com/linux/en_us/index.html Brother Linux Driver page].

Revision as of 02:32, 27 January 2008


Introduction

This is a brief tutorial to make the Brother MFC-420CN printer/scanner work on Arch. While this tutorial is based on the MFC-420CN specifically, it can be used as a general guide for most Brother MFC model printers (substituting MFC-420CN for your model where needed). On Brother's Linux Driver page you can find extra information along with drivers for different printer models.

Printer

Prerequisites

This tutorial assumes you have the following packages installed. Failure to do so may result in hard to trace issues with printing.

  • cups
  • ghostscript
  • gsfonts
  • foomatic-filters

If you previously tried to install the printer in CUPS, remove it and any remaining driver files!!

Brother's scripts make use of the C Shell (csh) instead of the more common Bash. We must install tcsh from the "extra" repo.

# pacman -Sy tcsh

Brother's scripts look for C Shell in /bin/csh but will fail with the error "Bad Interpreter" unless we correct this to /usr/bin/tcsh. As root lets create a symbolic link:

# ln -s /usr/bin/tcsh /bin/csh

Your user is a member of the printer group (lp). Be sure to logout for changes to take affect.

# usermod -aG lp [username]

Additional info about setting up CUPS if needed.

Download printer drivers

Brother actively supplies Linux drivers for it's MFC series printers in RPM and DEB formats. Luckily there are tools to change these formats into something Arch can use.

First create a temporary directory.

Then you must download the official LPR drivers from the Brother website into this directory. Click here to download the MFC-420CN LPR driver (RPM archive).

You should also download the CUPS wrapper script. Click here to download the MFC-420CN CUPS wrapper script (RPM archive). This script creates the filters and PPD file for CUPS automatically saving us from extra work.

Extracting the RPM files

Now you need a small script called rpmextract which allows you to extract files from the RPM you've just downloaded.

In the terminal as root:

# pacman -Sy rpmextract

Extract both RPM files :

$ rpmextract.sh MFC420CNlpr-1.0.2-1.i386.rpm
$ rpmextract.sh cupswrapperMFC420CN-1.0.0-1.i386.rpm

Editing files to make it work with Arch

Arch Linux uses its own file system organization, so we'll have to edit some files. Assuming you are still in the temporary directory you created. You can use your favorite text editor to edit usr/local/Brother/cupswrapper/cupswrapperMFC420CN-1.0.0 and change all instances of /etc/init.d/ to /etc/rc.d/ OR you can just do the following.

As root in terminal:

# sed -i 's|/etc/init.d|/etc/rc.d|' usr/local/Brother/cupswrapper/cupswrapperMFC420CN-1.0.0

Once you've finished this step, copy all of the files to their corresponding directories in your file system :

# cp -r usr/* /usr

Installing the printer (Local USB)

Now lets run the script to install the driver for us.

As root in terminal:

/usr/local/Brother/cupswrapper/cupswrapperMFC420CN-1.0.0

It will stop the cups daemon if it's running, and restart it.

Now go to the CUPS setup page: http://localhost:631/ Click on Manage Printers you should see your MFC-420CN printer automatically installed and configured. Print a test page!

If the test page fails with error "Printer not connected; will retry in 30 seconds..." then.

  1. Click Delete Printer and remove the automatically created printer.
  2. Click Administration --> Find New Printers
  3. You should see your Brother printer listed here, add it!
  4. Print a test page

NOTE: Be sure to add cups to the DAEMON line in rc.conf so it loads everytime at startup.

Installing the printer (Network, Ethernet)

Now lets run the script to install the driver for us.

As root in terminal:

/usr/local/Brother/cupswrapper/cupswrapperMFC420CN-1.0.0

It will stop the cups daemon if it's running, and restart it.

Now go to the CUPS setup page: http://localhost:631/

  1. Click Manage Printers --> Delete Printer and remove the automatically created printer.
  2. Click Administration --> Find New Printers
  3. You should see your Brother printer listed here, add it!
  4. Print a test page

If Find New Printers doesn't list any printers you can try to set it up manually.

  1. Click Add Printer
  2. Location can be left blank, but can have something in it for reference sake, Description can be left blank, but can also have something in it for reference sake. Click continue
  3. Choose the device "Appsocket/HP JetDirect" then click continue
  4. Set the Device URI to socket://192.168.0.10:9100
  5. Select the make Brother
  6. Select the printer Brother MFC-420CN CUPS
  7. Click finish and print a test page.

NOTE: Be sure to add cups to the DAEMON line in rc.conf so it loads everytime at startup.

Scanner

Prerequisites

This tutorial assumes you have the following packages installed.

  • sane

Your user is a member of the scanner group. Be sure to logout for changes to take affect.

# usermod -aG scanner [username]

Additional info about setting up SANE if needed.

Downloading scanner drivers

This scanner works with Brother's brscan2 driver. Lucky for us there is a package in AUR named brscan2-network that will do the work for us. This driver should work for both Local USB and Network (Ethernet) modes.

Installing the scanner (Local USB)

Installing the package from AUR should do the work for you. If your having problems then make sure your a member of the scanner group as mentioned above. You may also want to read up on setting up SANE.

Installing the scanner (Network, Ethernet)

To setup scanning over the network Brothers driver needs to know the IP address or Hostname of the scanner/printer.

You can check the list of supported scanners by running. Make note of your model name if your not using MFC-420CN

$ brsaneconfig2 -q

As root in terminal: (where xxx.xxx.xxx.xxx is the ip address of your scanner/printer)

# brsaneconfig2 -a name=MFC420CN model=MFC-420CN ip=xxx.xxx.xxx.xxx

OR if you would prefer to use the hostname method instead of IP address..

As root in terminal: (where xxx.xxx.xxx.xxx is the ip address of your scanner and brother.mynetwork brother is the name you wish to use)

# echo "xxx.xxx.xxx.xxx brother.mynetwork brother" >> /etc/hosts
# brsaneconfig2 -a name=MFC420CN model=MFC-420CN nodename=brother

Using your scanner

To use your scanner just install a scanning application such as the following..

  • xsane
  • xsane-frontends
  • kooka (kde)

PC FAX

Brother also has a Linux driver for the PC FAX features of this printer. For more information about the PC Fax drivers please see the Brother Linux Driver page.