Difference between revisions of "Brother HL-2030"

From ArchWiki
Jump to: navigation, search
(Adding AUR option)
(Brother drivers)
Line 25: Line 25:
 
==Download drivers==
 
==Download drivers==
 
First create a temporary directory. Then you must download the official LPR drivers from the Brother website in that directory. Click [http://www.brother.com/cgi-bin/agreement/agreement.cgi?dlfile=http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/lpr_others/brhl2030lpr-2.0.1-1.i386.rpm&lang=English_lpr here] . This is a RPM archive. You have to download the cupswrapper file. Right [http://www.brother.com/cgi-bin/agreement/agreement.cgi?dlfile=http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/cups_wrapper/cupswrapperHL2030-2.0.1-1.i386.rpm&lang=English_gpl here]. This script creates the filters and PPD file for CUPS automatically. It's an RPM archive too.
 
First create a temporary directory. Then you must download the official LPR drivers from the Brother website in that directory. Click [http://www.brother.com/cgi-bin/agreement/agreement.cgi?dlfile=http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/lpr_others/brhl2030lpr-2.0.1-1.i386.rpm&lang=English_lpr here] . This is a RPM archive. You have to download the cupswrapper file. Right [http://www.brother.com/cgi-bin/agreement/agreement.cgi?dlfile=http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/cups_wrapper/cupswrapperHL2030-2.0.1-1.i386.rpm&lang=English_gpl here]. This script creates the filters and PPD file for CUPS automatically. It's an RPM archive too.
 
  
 
==Extracting the RPM files==
 
==Extracting the RPM files==
Line 35: Line 34:
 
  $ rpmextract.sh cupswrapperHL2030-2.0.1-1.i386.rpm
 
  $ rpmextract.sh cupswrapperHL2030-2.0.1-1.i386.rpm
 
It should give you two directories : usr and var.
 
It should give you two directories : usr and var.
 
  
 
==Editing files to make them work with Arch==
 
==Editing files to make them work with Arch==
Arch Linux uses its own file system organisation, so you have to edit some files.
+
Arch Linux uses its own file system organisation, so you have to edit some files. Use your favorite text editor (i.e. vi) to open the file named cupswrapperHL2030-2.0.1. If you created the temporary directory "tmp" in your home, it must be in /home/user/tmp/usr/local/Brother/cupswrapper. In this file, you must replace all the <i>/etc/init.d/</i> occurences by <i>/etc/rc.d/</i>.
Use your favorite text editor (i.e. vi) to open the file named cupswrapperHL2030-2.0.1
+
If you created the temporary directory "tmp" in your home, it must be in /home/user/tmp/usr/local/Brother/cupswrapper .
+
In this file, you must replace all the <i>/etc/init.d/</i> occurences by <i>/etc/rc.d/</i>.
+
 
Then you have to edit the file usr/local/Brother/inf/setupPrintcap, and replace <i>/etc/printcap.local</i> by <i>/etc/printcap</i>.
 
Then you have to edit the file usr/local/Brother/inf/setupPrintcap, and replace <i>/etc/printcap.local</i> by <i>/etc/printcap</i>.
 +
 
When it's done, copy all the files in their corresponding directories :
 
When it's done, copy all the files in their corresponding directories :
 
  # cp -r /home/user/tmp/usr/* /usr
 
  # cp -r /home/user/tmp/usr/* /usr
Line 48: Line 44:
  
 
==Installing the driver and printer==
 
==Installing the driver and printer==
Last step !
 
 
Go into /usr/local/Brother/cupswrapper/ and run the cupswrapper file :
 
Go into /usr/local/Brother/cupswrapper/ and run the cupswrapper file :
 
  # cd /usr/local/Brother/cupswrapper/
 
  # cd /usr/local/Brother/cupswrapper/
 
  # ./cupswrapperHL2030-2.0.1
 
  # ./cupswrapperHL2030-2.0.1
It will stop the cups daemon if it's running, and restart it.
+
It will stop the cups daemon if it's running, and 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 <b>automatically</b> installed and configured. Click to print the test page, and  you can hear the sweet sound of your printer.
Now go to the CUPS page : http://localhost:631/
+
In the Administartion category, choose Manage printers. There you should see a HL2030 printer <b>automatically</b> installed and configured.
+
Click to print the test page, and  you can hear the sweet sound of your printer.
+
  
 
==Compatibility with Brother HL-2035==
 
==Compatibility with Brother HL-2035==

Revision as of 15:25, 24 May 2011


Introduction

This is a small tutorial to make the printer Brother HL-2030 work on Arch. There are no drivers available from Openprinting.org at the moment for this printer to work in CUPS. If you previously tried to install the printer in CUPS, remove it.

Foomatic: an alternative to the official drivers

Note that there is an alternative to the official, Brother-supplied drivers. Using this method, my Brother HL-2030 worked instantly and without any problems. (The following steps are copied from the forum. Thanks to thayer!)

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

Go to http://localhost:631

   * Add printer
   * Give name
   * Select HL-2030 on USB from Device menu
   * Select HL-2030/hl1250 foomatic driver (PPD)
   * Done

Brother drivers

Brother supplies official linux drivers for the HL-2030. These, however come in the form of RPM packages. These can be installed on Arch in two ways: Either using the [url=http://aur.archlinux.org/packages.php?ID=14131]AUR PKGBUILD[/url] 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 a RPM archive. You have to download the cupswrapper file. Right here. This script creates the filters and PPD file for CUPS automatically. It's an RPM archive too.

Extracting the RPM files

Now you need a small script called rpmextract which allows you to get the files included in the RPM you've just downloaded. Log in as root and execute :

# pacman -S rpmextract

Extract both RPM files :

$ rpmextract.sh brhl2030lpr-2.0.1-1.i386.rpm
$ rpmextract.sh cupswrapperHL2030-2.0.1-1.i386.rpm

It should give you two directories : usr and var.

Editing files to make them work with Arch

Arch Linux uses its own file system organisation, so you have to edit some files. Use your favorite text editor (i.e. vi) to open the file named cupswrapperHL2030-2.0.1. If you created the temporary directory "tmp" in your home, it must be in /home/user/tmp/usr/local/Brother/cupswrapper. In this file, you must replace all the /etc/init.d/ occurences by /etc/rc.d/. Then you have to edit the file usr/local/Brother/inf/setupPrintcap, and replace /etc/printcap.local by /etc/printcap.

When it's done, copy all 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 /usr/local/Brother/cupswrapper/ and run the cupswrapper file :

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

It will stop the cups daemon if it's running, and 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 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 hal cups utils: pacman -S hal-cups-utils
  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 /usr/share/cups/model/HL2030.ppd) and everything should work just fine ...