Difference between revisions of "Brother HL-2270DW"

From ArchWiki
Jump to: navigation, search
(Using IPP)
m (Installing printer drive: don't use <pre>; better comply with style guide)
Line 2: Line 2:
 
This is a short tutorial on installing the Brother HL-2270DW printer with [[CUPS]] on Arch Linux.
 
This is a short tutorial on installing the Brother HL-2270DW printer with [[CUPS]] on Arch Linux.
  
==Installing printer drive==
+
==Installing printer driver==
Install rpmextract
+
Install {{pkg|rpmextract}} from the [[Official Repositories|official repositories]].
<pre># pacman -S rpmextract</pre>
+
# pacman -S rpmextract
  
Download printer driver from the Brother website
+
Download printer driver from the Brother web site
<pre>$ mkdir ~/brother && cd ~/brother
+
$ mkdir ~/brother && cd ~/brother
$ wget http://www.brother.com/pub/bsc/linux/dlf/cupswrapperHL2270DW-2.0.4-2.i386.rpm
+
$ wget http://www.brother.com/pub/bsc/linux/dlf/cupswrapperHL2270DW-2.0.4-2.i386.rpm
$ wget http://www.brother.com/pub/bsc/linux/dlf/hl2270dwlpr-2.1.0-1.i386.rpm
+
$ wget http://www.brother.com/pub/bsc/linux/dlf/hl2270dwlpr-2.1.0-1.i386.rpm
</pre>
+
  
 
Extract those rpm
 
Extract those rpm
<pre>
+
$ rpmextract cupswrapperHL2270DW-2.0.4-2.i386.rpm
$ rpmextract cupswrapperHL2270DW-2.0.4-2.i386.rpm
+
$ rpmextract hl2270dwlpr-2.1.0-1.i386.rpm
$ rpmextract hl2270dwlpr-2.1.0-1.i386.rpm
+
</pre>
+
  
Copy files in /usr/local
+
Copy files into {{ic|/usr/local}}
<pre>
+
$ sudo cp -R ./usr/local/Brother /usr/local
$ sudo cp -R ./usr/local/Brother /usr/local
+
</pre>
+
  
 
Use this PPD and cups filter, extracted from Brother installation script
 
Use this PPD and cups filter, extracted from Brother installation script
<pre>
+
$ wget https://raw.github.com/bvanheu/brother/master/HL2270DW/HL2270.PPD
$ wget https://raw.github.com/bvanheu/brother/master/HL2270DW/HL2270.PPD
+
$ wget https://raw.github.com/bvanheu/brother/master/HL2270DW/brlpdwrapperHL2270DW
$ wget https://raw.github.com/bvanheu/brother/master/HL2270DW/brlpdwrapperHL2270DW
+
$ chmod +x brlpdwrapperHL2270DW
$ chmod +x brlpdwrapperHL2270DW
+
$ sudo cp brlpdwrapperHL2270DW /usr/lib/cups/filter/
$ sudo cp brlpdwrapperHL2270DW /usr/lib/cups/filter/
+
$ sudo cp HL2270.PPD /usr/share/cups/model/
$ sudo cp HL2270.PPD /usr/share/cups/model/
+
</pre>
+
  
 
==Setup printer and CUPS==
 
==Setup printer and CUPS==

Revision as of 00:49, 31 October 2012

This is a short tutorial on installing the Brother HL-2270DW printer with CUPS on Arch Linux.

Installing printer driver

Install rpmextract from the official repositories.

# pacman -S rpmextract

Download printer driver from the Brother web site

$ mkdir ~/brother && cd ~/brother
$ wget http://www.brother.com/pub/bsc/linux/dlf/cupswrapperHL2270DW-2.0.4-2.i386.rpm
$ wget http://www.brother.com/pub/bsc/linux/dlf/hl2270dwlpr-2.1.0-1.i386.rpm

Extract those rpm

$ rpmextract cupswrapperHL2270DW-2.0.4-2.i386.rpm
$ rpmextract hl2270dwlpr-2.1.0-1.i386.rpm

Copy files into /usr/local

$ sudo cp -R ./usr/local/Brother /usr/local

Use this PPD and cups filter, extracted from Brother installation script

$ wget https://raw.github.com/bvanheu/brother/master/HL2270DW/HL2270.PPD
$ wget https://raw.github.com/bvanheu/brother/master/HL2270DW/brlpdwrapperHL2270DW
$ chmod +x brlpdwrapperHL2270DW
$ sudo cp brlpdwrapperHL2270DW /usr/lib/cups/filter/
$ sudo cp HL2270.PPD /usr/share/cups/model/

Setup printer and CUPS

Note: This article details how to setup you printer over a LAN or WLAN connection.

This printer has a web-based interface. To avoid some extra Google queries, the HL-2270DW web interface default username is 'admin' and the default password is 'access'.

It is recommended that you configure the HL-2270DW to have a static IP so that CUPS will always work with it (steps not detailed in this article).

  1. Install CUPS and Foomatic:
    # pacman -S cups a2ps
  2. Start the cups daemon:
    # systemctl start cups
  3. Open a web browser to http://localhost:631/
  4. Click the Add Printer button on the Administration tab.

Using IPP

  1. Select IPP from the list.
  2. In the 'Connection' field, type
    ipp://THE_PRINTER_IP/ipp/port1
  3. In the next form, give the printer a unique name (no spaces and the name be must unique from any identical printers), and select "Brother" from the printer make field.
  4. Select "Brother HL-2270DW for CUPS (en)" from the list of drivers.
  5. Configure the default options on the next page to your liking
    1. Set Duplex to DuplexNoTumble for double-side printing
    2. Set TonerSave to on to enable toner saving

Troubleshooting

Some simple reminders

  1. Sometimes if you get simple errors like "spool not ready" or "ipp backend failed", there is a good chance you have to resume the printer by selecting the Maintenance drop down and selecting Resume Printer.