This is a small tutorial to make the printer Brother MFC-9840CDW work on Arch, through a wired (ethernet cable) network connection.
Setup with PostScript
The MFC-9840CDW natively supports the postscript format, so for basic printing functionality we'll be using the generic postscript driver that comes with the foomatic packages. (Although it's probably better to convert the official Brother drivers for Linux (currently available in either .rpm or .deb format), no one has done so yet.)
- Install the cups package.
- Install the foomatic-db, foomatic-db-engine, and foomatic-filters packages (to get the generic postscript driver that we need).
- Make sure the printer is connected to your network router/switch. If your router is acting as a DHCP server, the MFC-9840CDW will automatically get an IP address assigned. Make note of this IP address. (You could also assign a static IP address to your printer, but that is outside the scope of this article).
- Go to http://localhost:631 to open up the CUPS web interface.
- Click on "Manage Printers" and then "Add printer."
- Select the "Internet Printing Protocol (http)" option for the Device.
- For the Device URI, use: http://IPADDRESSOFPRINTER:631/postscript_p1. E.g., http://192.168.0.102:631/postscript_p1
- For the Make/Manufacturer, click on Generic, then Generic PostScript Printer Foomatic/Postscript (en) (do not choose the "Level 1" variant, as it is an older postcript driver for older printers)
- Click on Add Printer to finish the wizard.
Print out a test page to see if everything works. The above configuration allows you to change the duplex and resolution (dpi) settings, but is missing the "Toner save" option. Of course, this and all other settings are still accessible via the printer's own web interface, which makes any changes the default settings of the printer (see the official Brother documentation).