Difference between revisions of "Brother HL-2270DW"

From ArchWiki
Jump to: navigation, search
m (Added step to install the printer files)
(64 bit system: rm section - brother-hl2270dw depends on lib32-glibc for x86_64)
(21 intermediate revisions by 11 users not shown)
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 the {{AUR|brother-hl2270dw}} package from the [[AUR]].
<pre># pacman -S rpmextract</pre>
+
 
+
Download printer driver from the Brother website
+
<pre>$ 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
+
</pre>
+
 
+
Extract those rpm
+
<pre>
+
$ rpmextract cupswrapperHL2270DW-2.0.4-2.i386.rpm
+
$ rpmextract hl2270dwlpr-2.1.0-1.i386.rpm
+
</pre>
+
 
+
Copy files in /usr/local
+
<pre>
+
$ sudo cp -R ./usr/local/Brother /usr/local
+
</pre>
+
 
+
Extract PPD and cups filter from a script
+
 
+
  
 
==Setup printer and CUPS==
 
==Setup printer and CUPS==
Line 36: Line 15:
 
# Start the cups daemon: <pre># systemctl start cups</pre>
 
# Start the cups daemon: <pre># systemctl start cups</pre>
 
# Open a web browser to http://localhost:631/
 
# Open a web browser to http://localhost:631/
# Click the Add Printer button on the Administration tab.
+
# Click the Administration tab then click the Add Printer button.
  
 
===Using IPP===
 
===Using IPP===
Line 42: Line 21:
 
# In the 'Connection' field, type <pre>ipp://THE_PRINTER_IP/ipp/port1</pre>
 
# 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.
 
# 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.
+
# Select '''"Brother HL2270DW for CUPS (en)"''' from the list of drivers (it is not in numerical order and is toward the bottom of the list).
# Configure the default options on the next page to your liking.
+
# Configure the default options on the next page to your liking
 +
## Set '''Duplex''' to DuplexNoTumble for double-side printing
 +
## Set '''TonerSave''' to on to enable toner saving
  
 
==Troubleshooting==
 
==Troubleshooting==
''Some simple reminders''
+
 
 +
===Margins are off===
 +
If your margins do not fit the page selected, check to see if the the Brother HL-2170W (Postscript Printer Description) PPD will fix the problem.
 +
# [http://www.openprinting.org/printer/Brother/Brother-HL-2170W Click the 'directly download PPD' link for the Brother HL-2170W]
 +
# Install {{pkg|hplip}}
 +
# Go to CUPS->Administration->Manage Printers. Select your printer under 'Queue Name'.
 +
# In the 'Administration' drop-down, select 'Modify Printer'; your IP address will be selected, click 'Continue' button; your current printer information will be shown with other options.
 +
# Click on the "Select Another Make/Manufacturer"; click "Choose File" button.
 +
# Navigate to the file you downloaded "Brother-HL-2170W-hpijs-pcl5e.ppd"
 +
# Click 'Modify Printer'.
 +
# Click on the 'Maintenance' drop-down and select 'Print Test Page'.  Check margins for conformance to the page size selected.
 +
 
 +
===Some simple reminders===
 
# 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.
 
# 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.
 +
# To set default printer for printing in a console:
 +
$ lpoptions -d <PRINTER_NAME>.

Revision as of 08:01, 8 March 2014

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

Installing printer driver

Install the brother-hl2270dwAUR package from the AUR.

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 Administration tab then click the Add Printer button.

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 HL2270DW for CUPS (en)" from the list of drivers (it is not in numerical order and is toward the bottom of the list).
  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

Margins are off

If your margins do not fit the page selected, check to see if the the Brother HL-2170W (Postscript Printer Description) PPD will fix the problem.

  1. Click the 'directly download PPD' link for the Brother HL-2170W
  2. Install hplip
  3. Go to CUPS->Administration->Manage Printers. Select your printer under 'Queue Name'.
  4. In the 'Administration' drop-down, select 'Modify Printer'; your IP address will be selected, click 'Continue' button; your current printer information will be shown with other options.
  5. Click on the "Select Another Make/Manufacturer"; click "Choose File" button.
  6. Navigate to the file you downloaded "Brother-HL-2170W-hpijs-pcl5e.ppd"
  7. Click 'Modify Printer'.
  8. Click on the 'Maintenance' drop-down and select 'Print Test Page'. Check margins for conformance to the page size selected.

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.
  2. To set default printer for printing in a console:
$ lpoptions -d <PRINTER_NAME>.