Gentoo Wiki




This is for setting up CUPS printing for the Brother MFC-3820CN. Scanning will be added when I or someone else finds out how with this printer.

I am well aware that there is a Brother MFC 420CN and Brother MFC 420CN/Cups. As you read farther, you may notice that the instructions are very similar to that of the page previously mentioned. The reason why I wrote this page was because the instructions are different in such a way that it is worth writing a new page for. So, enough of me rambling, lets get your Brother MFC-3820CN working on your Gentoo Linux installation.

Getting Started

Absolute First Step

You must change into root.

su root

Emerge required packages

Note: Only emerge cups if you still need to install or if your CUPS needs updating. If you do need to update CUPS run: emerge -uva cups
emerge -va cups tcsh rpm

For this Brother printer you do not need the foomatic package like the MFC 420CN.

Getting your needed files

These are for printing through CUPS only as of now. I am working on getting the scanner to work and I will post what I find to work.

You will need these files, download the files into whatever download directory you may have. The three files you need for CUPS are:

Printer Driver
CUPS Wrapper
CUPS Wrapper Script

On to the Installation

Note: I'm posting the same warning as the other page because I'm uncertain if this installation may have the same problem.

It is VERY important that you emerge the LPR driver first. If you accidently installed the cupswrapper first, then please let us know how you got it working. This is an ongoing unresolved issue. So PLEASE install the LPR driver, THEN the cupswrapper. It must be done in that order.

Install MFC Drivers

Note: Most likely when you try to run the rpm commands below you will get this error:rpmdb: Berkeley DB library configured to support only private environments rpmdb: Berkeley DB library configured to support only private environments error: db4 error(22) from dbenv->open: Invalid argument error: cannot open Packages index using db3 - Invalid argument (22) error: cannot open Packages database in /var/lib/rpmto fix this you must create a file: '''/etc/rpm/macros''', inside your new file insert: '''%__dbi_cdb create cdb private mpool mp_mmapsize=16Mb mp_size=1Mb''' then it should work.
Note: One last note on rpm, if it ever complains about missing directories, simply create them then rerun the command that gave the error.

Start cups then trun these commands:

rpm -ihv --nodeps MFC210Clpr-1.0.0-1.i386.rpm

If it complains about folders not existing then create them, and rerun this command.

rpm -ihv --nodeps cupswrapperMFC210C-1.0.0-1.i386.rpm

If cupswrapper complains about cupsd, ignore it.

cp /usr/lib/cups/filter/brlpdwrapperMFC3820CN /usr/libexec/cups/filter/brlpdwrapperMFC3820CN

Here we simply copy the filter where Gentoo expects it to be.

CUPS Wrapper Script

Run this command:

csh -f cupswrappermfc3820cn.csh

You may get two errors, both of which will be command not found. Do not worry about the errors, it will not compromise anything.

cupswrapper creates two files: /usr/share/cups/model/brmfc3820cn_cups.ppd, and /usr/lib/cups/filter/brlpdwrapperMFC3820CN.

Restart CUPS

/etc/init.d/cupsd restart

Configure CUPS

Note: If you are prompted to enter a user name and password, enter your root name and password

Start your favorite web browser and in the address bar type in:

Then, click on the Administration tab.

If the printer shows up on CUPS

Click on the add printer button underneath your Brother MFC-3820CN Printer. Underneath the list of preloaded brother drivers in the section Provide a PPD File click on browse and locate the file in the path: /usr/share/cups/model/brmfc3820cn_cups.ppd

If the printer doesn't show up on CUPS

Click on the add printer button underneath Printers. Fill in the forms and continue until you see the same page as mentioned above.

Your Finished

If needed restart the CUPS service:

/etc/init.d/cupsd restart

Thanks to:

Brother MFC 3820CN and Linux
Brother MFC 420CN
Brother MFC 420CN/Cups

Retrieved from ""

Last modified: Sat, 23 Aug 2008 13:58:00 +0000 Hits: 2,489