Search:  
Gentoo Wiki

Brother_MFC-3240C

Contents

About

This HOWTO outlines the steps necessary to install a Brother MFC-3240C printer on a Gentoo system using Cups.

Requirements

You will need to emerge the following packages before you continue:

 emerge app-arch/rpm2targz app-shells/tcsh

rpm2targz will make installation much less of a hassle and tcsh is an improved C shell replacement.

MFC-3240C instructions

Be sure to have read through the official Brother MFC-3240C installation instructions.

Download Drivers

Download the LPR and cupswrapper drivers from the Brother website:

  1. LPR Driver
  2. Cups wrapper driver

Save them to a convenient directory.

Install Drivers

Change into the directory where you downloaded the LPR and Cups wrapper drivers. E.g., if you saved them to your home directory:

 cd ~

Convert the files to compressed tarballs:

 rpm2targz ./MFC3240Clpr-1.0.2-1.i386.rpm
 rpm2targz ./cupswrapperMFC3240C-1.0.0-1.i386.rpm

Extract the tarballs, starting with the LPR driver first:

 # tar zxvf ./MFC3240Clpr-1.0.2-1.i386.tar.gz -C /
 ./
 ./usr/
 ./usr/bin/
 ./usr/bin/brprintconfij2
 ./usr/lib/
 ./usr/lib/libbrcompij2.so.1.0.2
 ./usr/local/
 ./usr/local/Brother/
 ./usr/local/Brother/inf/
 ./usr/local/Brother/inf/brio04aa.bcm
 ./usr/local/Brother/inf/brio04ab.bcm
 ./usr/local/Brother/inf/brio04ac.bcm
 ./usr/local/Brother/inf/brio04ad.bcm
 ./usr/local/Brother/inf/brMFC3240Crc
 ./usr/local/Brother/inf/setupPrintcapij
 ./usr/local/Brother/inf/brMFC3240Cfunc
 ./usr/local/Brother/inf/paperinfij2
 ./usr/local/Brother/inf/brPrintListij2
 ./usr/local/Brother/lpd/
 ./usr/local/Brother/lpd/filterMFC3240C
 ./usr/local/Brother/lpd/psconvertij2
 ./usr/local/Brother/lpd/rastertobrij2
 # tar zxvf ./cupswrapperMFC3240C-1.0.0-1.i386.tar.gz -C /
 ./
 ./usr/
 ./usr/local/
 ./usr/local/Brother/
 ./usr/local/Brother/cupswrapper/
 ./usr/local/Brother/cupswrapper/cupswrapperMFC3240C-1.0.0

Problems with default install

If you follow the instructions on the Brother installation guide, you will run into the following two errors:

When installing cupswrapper driver:

Code: ./cupswrapperMFC3240C-1.0.0 -i
 /etc/init.d/cups: Command not found.

and

When attempting to install printer in Cups web interface:

Code:
 "Filter "brlpdwrapperMFC3240C" for printer "Brother_MFC-3240C_USB_1" not available: No such file or directory"

To solve this, you must make a couple changes to the default installation files before installing the printer in Cups.

Editing default files

First, edit the cupswrapperMFC3240C-1.0.0 script found in the /usr/local/Brother/cupswrapper directory to reflect the correct Gentoo init script names with the following commands:

 cd /usr/local/Brother/cupswrapper
 cp ./cupswrapperMFC3240C-1.0.0 ./cupswrapperMFC3240C-1.0.0.bak
 /bin/sed 's/\/etc\/init.d\/cups\ restart/\/etc\/init.d\/cupsd\ restart/g' \
   ./cupswrapperMFC3240C-1.0.0.bak \
   > ./cupswrapperMFC3240C-1.0.0

This will replace all instances of the command:

 /etc/init.d/cups restart

in the cupswrapperMFC3240C-1.0.0 script, with

 /etc/init.d/cupsd restart

You can now install the Cups wrapper driver without any problems:

 ./cupswrapperMFC3240C-1.0.0 -i

Resolving CUPS filter paths

Next step is to create a symbolic link to the Cups filter from where the Cups wrapper installed it, to where Cups (on Gentoo) expects to find it:

 ln -s /usr/lib/cups/filter/brlpdwrapperMFC3240C /usr/libexec/cups/filter/

Restart CUPS

Restart CUPS:

/etc/init.d/cupsd restart

Install printer in Cups

Ensure the cups daemon is started:

 /etc/init.d/cupsd start

then navigate your browser to http://localhost:631/

USB

Kernel Setup

You must have kernel support for USB printers.

Linux Kernel Configuration: USB Printer Support
 Device Drivers  --->
   USB support  --->
   <M> Support for Host-side USB
   <M>   USB Printer support

CUPS web interface installation

If your printer is connected to your computer by USB cable, Cups will have automatically detected your printer and will prompt you to install it. Following the instructions from there should have you set up in no time.

Retrieved from "http://www.gentoo-wiki.info/Brother_MFC-3240C"

Last modified: Sat, 23 Aug 2008 13:55:00 +0000 Hits: 3,313