Difference between revisions of "Brother HL-2030"

From ArchWiki
Jump to: navigation, search
(added more formatting; cleaned up grammar and improved some links; added a Note box for rpmextract)
(update link(s) (avoid redirect))
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
[[Category:Printers_(English)]]
+
[[Category:Printers]]
 
{{out of date}}
 
{{out of date}}
=Introduction=
+
==Introduction==
  
 
This is a small tutorial to make the Brother HL-2030 printer work on Arch Linux.
 
This is a small tutorial to make the Brother HL-2030 printer work on Arch Linux.
There are currently no drivers available from [http://openprinting.org] that work with [[CUPS]].
 
If you previously tried to install the printer in CUPS, remove it.
 
  
=Foomatic drivers=
+
==Foomatic drivers==
  
 
This method also works with the Brother HL-2035 printer.
 
This method also works with the Brother HL-2035 printer.
Line 13: Line 11:
 
To install the required software and drivers, type:
 
To install the required software and drivers, type:
 
  # pacman -S cups foomatic-{db,db-engine} a2ps
 
  # pacman -S cups foomatic-{db,db-engine} a2ps
 
Without {{Package Official|a2ps}} there was only blinking LED on my printer and nothing more.
 
 
Then blacklist the {{Codeline|usblp}} kernel module. See [[Kernel_modules#Blacklisting]] for instructions.
 
  
 
Now go to http://localhost:631
 
Now go to http://localhost:631
 
* Go to Administration
 
* Go to Administration
 
* Click 'Add Printer'
 
* Click 'Add Printer'
* Select your printer and click 'continue'
+
* Choose 'Brother HL-2030 series' at 'Local Printers' (if the printer is connected and powered)
 +
* Select one of the drivers for your model and click 'continue'
 
* Configure your printer
 
* Configure your printer
  
The printer should work fine now.
+
If the printer does not work now, try a different driver for your model (the recommended 'Brother HL-2030 Foomatic/hl1250 (en)' worked fine for me).
 +
 
 +
==Driver from openprinting.org==
 +
For using a Brother HL-2030 printer with CUPS, and you are unsuccessful using the foomatic drivers, you might consider using the recommended Hl-2030 drivers from openprinting.org. These can be found [http://www.openprinting.org/printer/Brother/Brother-HL-2030 here]. Download the hl1250 file and place it in e.g.
 +
# /usr/share/cups/model/
 +
 
 +
In order to use this driver you need to install the foomatic-filters package
 +
# pacman -S foomatic-filters
 +
 
 +
Configure the CUPS server by the method of your choice and you should be good to go.
  
=Brother drivers=
+
==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 {{Package AUR|brother-hl2030}} from the [[AUR]] or manually following these instructions.
+
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 {{AUR|brother-hl2030}} package from the [[Arch User Repository|AUR]] or manually following these instructions. Please note that you may have to blacklist the {{ic|usblp}} module for these drivers as well (see above).
  
==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 an RPM archive. You also have to download the cupswrapper file from [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 is also an RPM archive.
+
First create a temporary directory. Then, you must download the official LPR drivers from the Brother web site 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 an RPM archive. You also have to download the cupswrapper file from [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 is also an RPM archive.
  
==Extracting the RPM files==
+
===Extracting the RPM files===
Now, you need a small script called {{Package Official|rpmextract}} which allows you to get the files included in the RPM you have just downloaded.
+
Now, you need a small script called {{Pkg|rpmextract}} which allows you to get the files included in the RPM you have just downloaded.
As root, install {{Package Official|rpmextract}}:
+
As root, install {{Pkg|rpmextract}} from the [[Official repositories|official repositories]]:
 
  # pacman -S rpmextract
 
  # pacman -S rpmextract
  
Line 41: Line 45:
 
  $ rpmextract.sh cupswrapperHL2030-2.0.1-1.i386.rpm
 
  $ rpmextract.sh cupswrapperHL2030-2.0.1-1.i386.rpm
  
{{Note|{{Package Official|rpmextract}} must be run as {{Codeline|rpmextract.sh}}. Using {{Codeline|rpmextract}} without the {{Codeline|.sh}} suffix will not work.}}
+
{{Note|{{Pkg|rpmextract}} must be run as {{Ic|rpmextract.sh}}. Using {{Ic|rpmextract}} without the {{Ic|.sh}} suffix will not work.}}
  
It should give you two directories: {{Filename|usr}} and {{Filename|var}}.
+
It should give you two directories: {{ic|usr}} and {{ic|var}}.
  
==Editing files to make them work with Arch Linux==
+
===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 {{Filename|cupswrapperHL2030-2.0.1}}. If you created the temporary directory "{{Filename|tmp}}" in your home directory, it must be in {{Filename|/home/user/tmp/usr/local/Brother/cupswrapper}}. In this file, you must replace all of the {{Codeline|/etc/init.d/}} occurrences with {{Codeline|/etc/rc.d/}}.
+
Arch Linux uses its own file system organisation, so you have to edit some files. Use your favorite text editor to open the file named {{ic|cupswrapperHL2030-2.0.1}}. If you created the temporary directory "{{ic|tmp}}" in your home directory, it must be in {{ic|/home/user/tmp/usr/local/Brother/cupswrapper}}. In this file, you must replace all of the {{Ic|/etc/init.d/}} occurrences with {{Ic|/etc/rc.d/}}.
  
Then you have to edit the file {{Filename|usr/local/Brother/inf/setupPrintcap}}, and replace {{Codeline|/etc/printcap.local}} with {{Codeline|/etc/printcap}}.
+
Then you have to edit the file {{ic|usr/local/Brother/inf/setupPrintcap}}, and replace {{Ic|/etc/printcap.local}} with {{Ic|/etc/printcap}}.
  
 
When that is done, copy all of the files in their corresponding directories:
 
When that is done, copy all of the files in their corresponding directories:
Line 54: Line 58:
 
  # cp -r /home/user/tmp/var/* /var
 
  # cp -r /home/user/tmp/var/* /var
  
==Installing the driver and printer==
+
===Installing the driver and printer===
Go into {{Filename|/usr/local/Brother/cupswrapper/}} and run the {{Filename|cupswrapper}} file:
+
Go into {{ic|/usr/local/Brother/cupswrapper/}} and run the {{ic|cupswrapper}} file:
 
  # cd /usr/local/Brother/cupswrapper/
 
  # cd /usr/local/Brother/cupswrapper/
 
  # ./cupswrapperHL2030-2.0.1
 
  # ./cupswrapperHL2030-2.0.1
  
It will stop the {{Codeline|cups}} 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.
+
It will stop the {{Ic|cups}} 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==
+
===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.
 
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==
+
===Common Issues===
 
If you have done all of the steps above, and the printer will either not appear in your [http://localhost:631/ 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:
 
If you have done all of the steps above, and the printer will either not appear in your [http://localhost:631/ 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:
# install the {{Package AUR|hal-cups-utils}} from the [[AUR]]
+
# install the {{AUR|hal-cups-utils}} from the [[AUR]]
# visit your [http://localhost:631/ CUPS interface], and under "Administration" hit "find new printer". Surprisingly, it should be found. In the next step, choose the ppd file (found in {{Filename|/usr/share/cups/model/HL2030.ppd}}) and everything should work just fine ...
+
# visit your [http://localhost:631/ CUPS interface], and under "Administration" hit "find new printer". Surprisingly, it should be found. In the next step, choose the PPD file (found in {{ic|/usr/share/cups/model/HL2030.ppd}}) and everything should work just fine ...
# make sure {{Codeline|hal}} is running before the {{Codeline|cups}} daemon is started
+
# make sure {{Ic|hal}} is running before the {{Ic|cups}} daemon is started
  
 
{{Note|HAL has been deprecated for some time now.}}
 
{{Note|HAL has been deprecated for some time now.}}

Revision as of 11:46, 24 February 2014

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#)

Introduction

This is a small tutorial to make the Brother HL-2030 printer work on Arch Linux.

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

Now go to http://localhost:631

  • Go to Administration
  • Click 'Add Printer'
  • Choose 'Brother HL-2030 series' at 'Local Printers' (if the printer is connected and powered)
  • Select one of the drivers for your model and click 'continue'
  • Configure your printer

If the printer does not work now, try a different driver for your model (the recommended 'Brother HL-2030 Foomatic/hl1250 (en)' worked fine for me).

Driver from openprinting.org

For using a Brother HL-2030 printer with CUPS, and you are unsuccessful using the foomatic drivers, you might consider using the recommended Hl-2030 drivers from openprinting.org. These can be found here. Download the hl1250 file and place it in e.g.

# /usr/share/cups/model/

In order to use this driver you need to install the foomatic-filters package

# pacman -S foomatic-filters

Configure the CUPS server by the method of your choice and you should be good to go.

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 brother-hl2030AUR package from the AUR or manually following these instructions. Please note that you may have to blacklist the usblp module for these drivers as well (see above).

Download drivers

First create a temporary directory. Then, you must download the official LPR drivers from the Brother web site 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 rpmextract which allows you to get the files included in the RPM you have just downloaded. As root, install rpmextract from the official repositories:

# 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
Note: rpmextract must be run as rpmextract.sh. Using rpmextract without the .sh suffix will not work.

It should give you two directories: usr and var.

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 to open the file named cupswrapperHL2030-2.0.1. If you created the temporary directory "tmp" in your home directory, it must be in /home/user/tmp/usr/local/Brother/cupswrapper. In this file, you must replace all of the /etc/init.d/ occurrences with /etc/rc.d/.

Then you have to edit the file usr/local/Brother/inf/setupPrintcap, and replace /etc/printcap.local with /etc/printcap.

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 /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 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 hal-cups-utilsAUR 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 /usr/share/cups/model/HL2030.ppd) and everything should work just fine ...
  3. make sure hal is running before the cups daemon is started
Note: HAL has been deprecated for some time now.