Difference between revisions of "Brother HL-2170W"

From ArchWiki
Jump to: navigation, search
m (Do not use -Sy when installing packages)
(updated for system and rewrote in 3rd person)
(31 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Category:Printers_(English)]]
+
[[Category:Printers]]
[[Category:HOWTOs (English)]]
+
This is a short tutorial on installing the Brother HL-2170W (and the HL-2140) printer with [[CUPS]] on Arch Linux.  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.
  
=Introduction=
+
{{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.}}
This is a small tutorial to make the printer Brother HL-2170w (and the HL-2140) work on Arch. 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.
+
==Setup printer and CUPS==
 +
This printer has a web-based interface.  To avoid some extra Google queries, the HL-2170w web interface default username is 'admin' and the default password is 'access'.
  
=Using the foomatic/pxlmono Driver=
+
It is recommended to configure the HL-2170W to have a '''static IP''' so that CUPS will always work with it (steps not detailed in this article).
''This is the prefered method.''
+
  
# Install cups and foomatic: <pre># pacman -S cups foomatic-db foomatic-filters</pre>
+
The needed pdd/drivers are available from this device from [http://www.linuxprinting.org/show_printer.cgi?recnum=Brother-HL-2170W the OpenPrinting Database]. There is no need to directly browse to this page or download ppd files directly; it has been given for reference only.
# Edit your [[rc.conf]] to start cups on boot: <pre>DAEMONS=(syslog-ng network netfs cups crond)</pre>
+
# Open a web browser to [http://localhost:631/ http://localhost:631/]
+
# Click the Add Printer Button (fill out the form) (Click Continue).
+
# Pick the Brother HL-2170 from the 'Device:' dropdown menu (Click Continue).
+
# 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):
+
## Download the pxlmono PPD file from [http://www.linuxprinting.org/show_printer.cgi?recnum=Brother-HL-2170W the OpenPrinting Database] (at the bottom of the page) and save it somewhere.  
+
## Click 'Browse' and select the PPD file you just downloaded in the 'Add Printer' page.
+
# Now click 'Add Printer' to add the printer. When it asks for a username and password, supply the root account's username and password.
+
# Configure any other options for your printer.
+
# Click on the Printers tab and print a test page.
+
  
=Using the HP PCL6 Driver=
+
# Install CUPS and Foomatic: <pre># pacman -S cups foomatic-db foomatic-db-engine foomatic-db-nonfree foomatic-filters ghostscript</pre>
''Please bear in mind this driver is not that great, but it works. Use the Foomatic/pxlmono method above.''
+
# Start the cups socket <pre>systemctl start cups.socket</pre>
 +
# Optionally, enable the socket to load a system boot time: <pre>systemctl enable cups.socket</pre>
 +
# Open a web browser to http://localhost:631/
 +
# Click the Add Printer button on the Administration tab.
 +
 
 +
Continue to '''one''' of the following subsections:
 +
 
 +
===Using IPP (recommended method)===
 +
# Select IPP from the list.
 +
# In the 'Connection' field, type <pre>ipp://THE_PRINTER_IP/ipp/port1</pre>
 +
# 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.
 +
# Select '''"Brother HL-2170W Foomatic/hl1250"''' from the list of drivers.
 +
# The defaults options should be configured to the user's liking.
 +
 
 +
===Using the HP PCL6 driver (alternative method)===
 +
''This driver is not ideal, but it works.''
  
# First install cups: <pre># pacman -S cups</pre>
 
# Edit your rc.conf to start cups on boot: <pre>DAEMONS=(syslog-ng network netfs cups crond)</pre>
 
# Start cups: <pre># /etc/rc.d/cups start</pre>
 
# Open a web browser to [http://localhost:631/ http://localhost:631/]
 
 
# Click the Add Printer Button (fill out the form) (click Continue)
 
# Click the Add Printer Button (fill out the form) (click Continue)
 
# Select Internet Printing Protocol (IPP) from the drop down menu (click Continue)
 
# Select Internet Printing Protocol (IPP) from the drop down menu (click Continue)
# In the Device URI field add the following line: <pre>http://printer:631/ipp/port1</pre> Where printer is the IP address or DNS name of your printer (click Continue)
+
# In the Device URI field add the following line: <pre>http://printer:631/ipp/port1</pre> Where printer is the IP address or DNS name of the printer (click Continue)
# Select "HP" under Make (click Continue)
+
# Select '''"HP"''' from the printer make field.
# Select HP LaserJet Series PCL 6 CUPS (en) (click Add Printer)
+
# Select '''"HP LaserJet Series PCL 6 CUPS (en)"''' from the list of drivers.
  
=Using Brothers cupswrapper=
+
==Troubleshooting==
''I have had nothing but problems with this under Arch. It works, but only in A4. There is no way to configure paper size that I can find. The cupswrapper uses a binary blob to compile your printers profile, and statically links to directories common to Debian. Sorry that I cannot be more specific, it has been a while since I used it as a driver.''
+
''Some simple reminders''
 +
# Some users have reported problems characterized by error message like, "spool not ready" or "ipp backend failed."  One solution is to resume the printer by selecting the Maintenance drop down and selecting Resume Printer.

Revision as of 18:42, 3 November 2013

This is a short tutorial on installing the Brother HL-2170W (and the HL-2140) printer with CUPS on Arch Linux. 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.

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

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

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

The needed pdd/drivers are available from this device from the OpenPrinting Database. There is no need to directly browse to this page or download ppd files directly; it has been given for reference only.

  1. Install CUPS and Foomatic:
    # pacman -S cups foomatic-db foomatic-db-engine foomatic-db-nonfree foomatic-filters ghostscript
  2. Start the cups socket
    systemctl start cups.socket
  3. Optionally, enable the socket to load a system boot time:
    systemctl enable cups.socket
  4. Open a web browser to http://localhost:631/
  5. Click the Add Printer button on the Administration tab.

Continue to one of the following subsections:

Using IPP (recommended method)

  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-2170W Foomatic/hl1250" from the list of drivers.
  5. The defaults options should be configured to the user's liking.

Using the HP PCL6 driver (alternative method)

This driver is not ideal, but it works.

  1. Click the Add Printer Button (fill out the form) (click Continue)
  2. Select Internet Printing Protocol (IPP) from the drop down menu (click Continue)
  3. In the Device URI field add the following line:
    http://printer:631/ipp/port1
    Where printer is the IP address or DNS name of the printer (click Continue)
  4. Select "HP" from the printer make field.
  5. Select "HP LaserJet Series PCL 6 CUPS (en)" from the list of drivers.

Troubleshooting

Some simple reminders

  1. Some users have reported problems characterized by error message like, "spool not ready" or "ipp backend failed." One solution is to resume the printer by selecting the Maintenance drop down and selecting Resume Printer.