Installing Brother DCP-540CN Printer on Arch-Linux (32 bit)

I really like my Brother MFP, and its even better that it works across a network and on Linux too! here’s how to get it installed on Arch.

I use sudo on my system, if you don’t then run all sudo prefixed commands as root


# cups
# ghostscript
# gsfonts
# foomatic-filters


Brother needs csh instead of bash so:

sudo pacman -Sy tcsh

and create a link

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

If you are not already a member of the printer group, do so

usermod -aG lp [username]

Download the latest printer drivers, in rpm format, from this page:

Download the latest scanner drivers, in rpm format, from this page:

Create a temporary directory, I used ~/DCP540, and copy the driver files into it

now we need to extract the files, you need a little package to do this:

sudo pacman -Sy rpmextract

then extract all the files dcp540cnlpr-1.0.1-1.i386.rpm dcp540cncupswrapper-1.0.1-1.i386.rpm brscan2-0.2.4-0.i386.rpm

replacing file names if different.

You need to edit the cupswrapper driver to change all instances on /etc/init.d/ to /etc/rc.d/. I sued find and Replace in Mousepad.

Once finished copy all the files across to usr in the file system

sudo cp -r ~/DCP540/usr/* /usr

My printer runs over ethernet/network so now run the script to install

sudo /usr/local/Brother/Printer/dcp540cn/cupswrapper/cupswrapperdcp540cn

Now open up your browser and go to the CUPS setup page


# Click on manage Printers and Delete the Brother printer found!
# Click on Administration and then Find New Printers
# You should see your printer listed, add it, and click on through.
# Print a test page 🙂

Add cups to your daemons in /etc/rc.conf


I have found that rather than simply select the Brother printer from the list, if I enter the lpd settings instead, i get more printer options.



You will need xsane installed to use the scanner

sudo pacman -Sy xsane

You have already downloaded and copied over the scanner driver above, now you need to configure

/usr/local/Brother/sane/setupSaneScan2 -i


sudo brsaneconfig2 -a name=[FRIENDLY-NAME] model=[EXACT-MODEL]

for example

sudo brsaneconfig2 -a name=DCP540CN model=DCP-540CN ip=

to check this has taken

brsaneconfig2 -q

Add yourself to the scanner group

sudo gpasswd -a <username> scanner

(log out and back in again to make it take)

Test by running xsane, it should find your device and you can try a scan 🙂

All thanks go to the Arch Wiki page on this:

3 thoughts on “Installing Brother DCP-540CN Printer on Arch-Linux (32 bit)

  1. Hi, interesting post! I work as a part-time employee at a store that dealing in multi function printers. We receive many orders for multi function printers especially the ones with the fax machine compatibility.

Leave a Reply to Multifunction printer Cancel reply

Your email address will not be published. Required fields are marked *