Brother HL-2030

From ArchWiki
Revision as of 04:38, 14 October 2011 by Jstjohn (talk | contribs) (Introduction: improved the link formatting)
Jump to: navigation, search

Tango-view-refresh-red.pngThis article or section is out of date.Tango-view-refresh-red.png

Reason: please use the first argument of the template to provide a brief explanation. (Discuss in Talk:Brother HL-2030#)


This is a small tutorial to make the Brother HL-2030 printer work on Arch Linux. There are currently no drivers available from that work with CUPS. If you previously tried to install the printer in CUPS, remove it.

Foomatic drivers

This method also works with the Brother HL-2035 printer.

To install the required software and drivers, type:

# pacman -S cups foomatic-{db,db-engine} a2ps

Without Template:Package Official there was only blinking LED on my printer and nothing more.

Then blacklist the Template:Codeline kernel module. See Kernel_modules#Blacklisting for instructions.

Now go to http://localhost:631

  • Go to Administration
  • Click 'Add Printer'
  • Select your printer and click 'continue'
  • Configure your printer

The printer should work fine now.

Brother drivers

Brother supplies official Linux drivers for the HL-2030. These, however, come in the form of RPM packages. They can be installed on Arch Linux in two ways: either using the Template:Package AUR from the AUR or manually following these instructions.

Download drivers

First create a temporary directory. Then, you must download the official LPR drivers from the Brother website in that directory. Click here. This is an RPM archive. You also have to download the cupswrapper file from here. This script creates the filters and PPD file for CUPS automatically. It is also an RPM archive.

Extracting the RPM files

Now, you need a small script called Template:Package Official which allows you to get the files included in the RPM you have just downloaded. As root, install Template:Package Official:

# pacman -S rpmextract

Extract both RPM files:

$ brhl2030lpr-2.0.1-1.i386.rpm
$ cupswrapperHL2030-2.0.1-1.i386.rpm
Note: Template:Package Official must be run as Template:Codeline. Using Template:Codeline without the Template:Codeline suffix will not work.

It should give you two directories: Template:Filename and Template:Filename.

Editing files to make them work with Arch Linux

Arch Linux uses its own file system organisation, so you have to edit some files. Use your favorite text editor (e.g. vim) to open the file named Template:Filename. If you created the temporary directory "Template:Filename" in your home directory, it must be in Template:Filename. In this file, you must replace all of the Template:Codeline occurrences with Template:Codeline.

Then you have to edit the file Template:Filename, and replace Template:Codeline with Template:Codeline.

When that is done, copy all of the files in their corresponding directories:

# cp -r /home/user/tmp/usr/* /usr
# cp -r /home/user/tmp/var/* /var

Installing the driver and printer

Go into Template:Filename and run the Template:Filename file:

# cd /usr/local/Brother/cupswrapper/
# ./cupswrapperHL2030-2.0.1

It will stop the Template:Codeline daemon if it is running, and then restart it. Now, go to the CUPS page - http://localhost:631/ - and in the "Administartion" category, choose Manage printers. There you should see a HL2030 printer automatically installed and configured. Click to print the test page, and you can hear the sweet sound of your printer.

Compatibility with Brother HL-2035

Brother does not (yet) provide specific drivers for the HL-2035, but the HL-2030 drivers seem to work fine for this model as well. Use at your own risk, though.

Common Issues

If you have done all of the steps above, and the printer will either not appear in your CUPS interface or if you want to print sth. the printer will just warm up and then not print anything, the following is reported to have helped:

  1. install the Template:Package AUR from the AUR
  2. visit your CUPS interface, and under "Administration" hit "find new printer". Surprisingly, it should be found. In the next step, choose the ppd file (found in Template:Filename) and everything should work just fine ...
  3. make sure Template:Codeline is running before the Template:Codeline daemon is started
Note: HAL has been deprecated for some time now.