Difference between revisions of "Brother HL-2170W"

From ArchWiki
Jump to: navigation, search
(Using the foomatic/ljet4 driver using IPP (recommended method))
(Using the foomatic/ljet4 driver using IPP (recommended method))
Line 7: Line 7:
 
{{Note|As of July 2011, The foomatic/ljet4 driver using IPP has been shown to be really successful on most Arch setups, please attempt that first.}}
 
{{Note|As of July 2011, The foomatic/ljet4 driver using IPP has been shown to be really successful on most Arch setups, please attempt that first.}}
  
==Using the foomatic/ljet4 driver using IPP (recommended method)==
+
==Setup printer and CUPS==
A common option is [http://en.wikipedia.org/wiki/Internet_Printing_Protocol IPP], Internet Printing Protocol. It is recommended that you configure the HL-2170w via its web interface to have a static IP so that the IPP configuration in CUPS will always work.
+
It is recommended that you configure the HL-2170w via its web interface to have a static IP so that CUPS will always work with it (steps not detailed in this article).
  
# Install CUPS and Foomatic: <pre># pacman -S cups foomatic-db foomatic-db-engine foomatic-db-nonfree foomatic-filters ghostscript</pre>
+
# Install CUPS and Foomatic: <pre># pacman -S cups foomatic-db foomatic-db-engine foomatic-db-nonfree foomatic-filters</pre>
 
# Start the cups daemon: <pre># rc.d start cupsd</pre>
 
# Start the cups daemon: <pre># rc.d start cupsd</pre>
# Optionally edit your [[rc.conf]] to start cups on boot: <pre>DAEMONS=(syslog-ng network netfs cupsd crond)</pre>
+
# Optionally edit your [[rc.conf]] to start cups on boot: <pre>DAEMONS=(... @cupsd ...)</pre>
 +
 
 +
==Using the foomatic/ljet4 driver using IPP (recommended method)==
 +
A common option is [http://en.wikipedia.org/wiki/Internet_Printing_Protocol IPP], Internet Printing Protocol.
 +
 
 +
# Install ghostscript: <pre># pacman -S ghostscript</pre>
 
# Download the [http://www.openprinting.org/ppd-o-matic.php?driver=ljet4&printer=Brother-HL-2170W&show=0 ljet4 PPD] file from [http://www.linuxprinting.org/show_printer.cgi?recnum=Brother-HL-2170W the OpenPrinting Database].  
 
# Download the [http://www.openprinting.org/ppd-o-matic.php?driver=ljet4&printer=Brother-HL-2170W&show=0 ljet4 PPD] file from [http://www.linuxprinting.org/show_printer.cgi?recnum=Brother-HL-2170W the OpenPrinting Database].  
 
# Open a web browser to http://localhost:631/
 
# Open a web browser to http://localhost:631/

Revision as of 15:48, 3 August 2011

This is a short tutorial on installing the Brother HL-2170W (and the HL-2140) printer with CUPS on Arch Linux. If you previously tried to install the printer in CUPS, remove it. This printer will work a few different ways: with Foomatic, with the HP PCL6 driver, or with cupswrapper. For further info on cupswrapper please see the Brother MFC-440CN guide.

Default username/password

To avoid some extra Google queries, the HL-2170w web interface default username is 'admin' and the default password is 'access'.

Note: As of July 2011, The foomatic/ljet4 driver using IPP has been shown to be really successful on most Arch setups, please attempt that first.

Setup printer and CUPS

It is recommended that you configure the HL-2170w via its web interface 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 foomatic-db foomatic-db-engine foomatic-db-nonfree foomatic-filters
  2. Start the cups daemon:
    # rc.d start cupsd
  3. Optionally edit your rc.conf to start cups on boot:
    DAEMONS=(... @cupsd ...)

Using the foomatic/ljet4 driver using IPP (recommended method)

A common option is IPP, Internet Printing Protocol.

  1. Install ghostscript:
    # pacman -S ghostscript
  2. Download the ljet4 PPD file from the OpenPrinting Database.
  3. Open a web browser to http://localhost:631/
  4. Click the Add Printer button on the Administration tab.
  5. Select IPP from the list.
  6. In the 'Connection' field, type
     ipp://THE_PRINTER_IP/ipp/port1 
  7. In the next form, give the printer a unique name (no spaces and must the name be UNIQUE from any identical printers configured).
  8. Select 'browse' on the next form to point CUPS to the PDD you downloaded.
  9. Configure the default options on the next page to your liking.

Using the foomatic/pxlmono driver (alternative method 1)

  1. Install CUPS and Foomatic:
    # pacman -S cups foomatic-db foomatic-db-engine foomatic-db-nonfree foomatic-filters
  2. Start the cups daemon:
    # rc.d start cupsd
  3. Optionally edit your rc.conf to start cups on boot:
    DAEMONS=(syslog-ng network netfs cupsd crond)
  4. Open a web browser to http://localhost:631/
  5. Click the Add Printer button on the Administration tab, fill out the form, and click Continue
  6. Pick the Brother HL-2170 from the 'Device:' dropdown menu and continue.
  7. Pick the 'Brother HL-2170W Foomatic/pxlmono (en).' If this option isn't in the list, then you can opt to manually provide the PPD file as follows (keeping the 'Add Printer' page open):
    1. Download the pxlmono PPD file from the OpenPrinting Database (at the bottom of the page) and save it somewhere.
    2. Click 'Browse' and select the PPD file you just downloaded in the 'Add Printer' page.
  8. Now click 'Add Printer' to add the printer. When it asks for a username and password, supply the root account's username and password.
  9. Configure any other options for your printer.
  10. Click on the Printers tab and print a test page.

Using the HP PCL6 driver (alternative method 2)

This driver is not ideal, but it works. Use the foomatic/pxlmono method above, if possible.

  1. First install CUPS:
    # pacman -S cups
  2. Edit your rc.conf to start cups on boot:
    DAEMONS=(syslog-ng network netfs cupsd crond)
  3. Start cups:
    # rc.d start cupsd
  4. Open a web browser to http://localhost:631/
  5. Click the Add Printer Button (fill out the form) (click Continue)
  6. Select Internet Printing Protocol (IPP) from the drop down menu (click Continue)
  7. In the Device URI field add the following line:
    http://printer:631/ipp/port1
    Where printer is the IP address or DNS name of your printer (click Continue)
  8. Select "HP" under Make (click Continue)
  9. Select HP LaserJet Series PCL 6 CUPS (en) (click Add Printer)

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.