Brother MFC-3240C
From Gentoo Linux Wiki
| Laptops • TV Tuner Cards • Wireless • Servers • Storage • Other Hardware • Motherboards • Related |
Contents |
[edit] Instroduction
This HOWTO outlines the steps necessary to install a Brother MFC-3240C printer on a Gentoo system using Cups.
[edit] 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.
[edit] MFC-3240C instructions
Be sure to have read through the official Brother MFC-3240C installation instructions.
[edit] Download Drivers
Download the LPR and cupswrapper drivers from the Brother website:
Save them to a convenient directory.
[edit] 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
[edit] 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.
[edit] 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
[edit] 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/
[edit] Restart Cups
Restart Cups:
# /etc/init.d/cupsd restart
[edit] Install printer in Cups
Ensure the cups daemon is started:
/etc/init.d/cupsd start
then navigate your browser to http://localhost:631/
[edit] USB
[edit] 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 |
[edit] 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.
