Difference between revisions of "Brother DCP-7030"

From ArchWiki
Jump to: navigation, search
(Original)
(5 intermediate revisions by 3 users not shown)
Line 21: Line 21:
 
  % yaourt -S brother-dcp7030
 
  % yaourt -S brother-dcp7030
  
Replace all the <code>/etc/init.d/</code> occurences by <code>/etc/rc.d/</code> in the {{ic|/usr/local/Brother/cupswrapper/cupswrapperDCP7030-2.0.2}}.
+
In in the {{ic|/usr/local/Brother/cupswrapper/cupswrapperDCP7030-2.0.2}} replace all sections like this:
 +
if [ -e /etc/init.d/cups ]; then
 +
    /etc/init.d/cups restart
 +
fi
 +
if [ -e /etc/init.d/cupsys ]; then
 +
    /etc/init.d/cupsys restart
 +
fi
 +
by <code>systemctl restart cupsd</code>.
  
After that replace  <code>/etc/rc.d/cups</code>  by <code>/etc/rc.d/cupsd</code>
+
Or download new https://dl.dropboxusercontent.com/u/25895838/cupswrapperDCP7030-2.0.2.sh.
and <code>/etc/rc.d/cupsys</code>  by <code>/etc/rc.d/cupsd</code> in the above file.
+
  
 
Run
 
Run
  # /usr/local/Brother/cupswrapper/cupswrapperDCP7030-2.0.2
+
  # /usr/local/Brother/cupswrapper/cupswrapperDCP7030-2.0.2.sh
  
 
Now go to the CUPS page: http://localhost:631/  
 
Now go to the CUPS page: http://localhost:631/  
Line 38: Line 44:
  
 
I got this [http://www.openprinting.org/ppd-o-matic.php?driver=hl1250&printer=Brother-DCP-7020 PPD]. I replaced all <code>DCP-7020</code> by <code>DCP-7030</code>. After this I add a new printer manually using this PPD.
 
I got this [http://www.openprinting.org/ppd-o-matic.php?driver=hl1250&printer=Brother-DCP-7020 PPD]. I replaced all <code>DCP-7020</code> by <code>DCP-7030</code>. After this I add a new printer manually using this PPD.
 +
 +
==Udev==
 +
It may be nesessary to add a rule to your [[udev]]:
 +
{{hc|# nano /etc/udev/rules.d/10-usbprinter.rules|
 +
ATTR{idVendor}&#61;&#61;"04f9", ATTR{idProduct}&#61;&#61;"01ea", MODE:&#61;"0664", GROUP:&#61;"lp", ENV{libsane_matched}:&#61;"yes"}}
 +
 +
==Installation==
 +
Go to http://localhost:631 page in your browser and install printer. All settings there is very simple, the main thing you must check - paper size set to "A4".
  
 
=Scanner=
 
=Scanner=
Line 62: Line 76:
  
 
For more info see SANE [https://wiki.archlinux.org/index.php/Sane page].
 
For more info see SANE [https://wiki.archlinux.org/index.php/Sane page].
 +
 +
If your scanning software can't use the scanner even with correct scanimage, check your printer usb location with
 +
$ lsusb
 +
 +
and give writing permission for that device to all users. For example, for:
 +
Bus 008 Device 004: ID 04f9:01ea Brother Industries, Ltd DCP-7030
 +
use:
 +
# sudo chmod a+w /dev/bus/usb/002/004
 +
 +
=Troubleshooting=
 +
If you can print a test page from http://localhost:631, but can't print anything from [[LibreOffice]], try to [[pacman#Installing packages|install]] {{pkg|a2ps}}.

Revision as of 19:47, 19 August 2013


Introduction

This is a brief tutorial how to setup the Brother DCP-7030 (multi function laser copier printer) on i686 Arch.

Printer

CUPS

Install CUPS (see CUPS page).

Usblp

It may be necessary to blacklist Usblp module to get AUR driver working. To do that, you may add "!usblp" at the end of your rc.conf MODULES list.

Drivers

Original

There is the brother-dcp7030 in AUR. It contains driver from Brother.

Install drivers:

% yaourt -S brother-dcp7030

In in the /usr/local/Brother/cupswrapper/cupswrapperDCP7030-2.0.2 replace all sections like this:

if [ -e /etc/init.d/cups ]; then
   /etc/init.d/cups restart
fi
if [ -e /etc/init.d/cupsys ]; then
   /etc/init.d/cupsys restart
fi

by systemctl restart cupsd.

Or download new https://dl.dropboxusercontent.com/u/25895838/cupswrapperDCP7030-2.0.2.sh.

Run

# /usr/local/Brother/cupswrapper/cupswrapperDCP7030-2.0.2.sh

Now go to the CUPS page: http://localhost:631/

Under the Printers tab you should see a DCP7030 printer automatically installed and configured.

Using PPD from hl1250

Unfortunately original driver did not work with DCP-7030 on my PC.

I got this PPD. I replaced all DCP-7020 by DCP-7030. After this I add a new printer manually using this PPD.

Udev

It may be nesessary to add a rule to your udev:

# nano /etc/udev/rules.d/10-usbprinter.rules
ATTR{idVendor}=="04f9", ATTR{idProduct}=="01ea", MODE:="0664", GROUP:="lp", ENV{libsane_matched}:="yes"

Installation

Go to http://localhost:631 page in your browser and install printer. All settings there is very simple, the main thing you must check - paper size set to "A4".

Scanner

SANE

Install SANE:

# pacman -S sane

Add your user to scanner group:

# gpasswd -a username scanner
Note: You need to logout/login for this to take effect.

Drivers

There is the brscan3 in AUR.

Install drivers:

% yaourt -S brscan3

After installing add line brother3 in the /etc/sane.d/dll.conf.

Now you can try to see if SANE recognizes your scanner

$ scanimage -L

For more info see SANE page.

If your scanning software can't use the scanner even with correct scanimage, check your printer usb location with

$ lsusb

and give writing permission for that device to all users. For example, for:

Bus 008 Device 004: ID 04f9:01ea Brother Industries, Ltd DCP-7030

use:

# sudo chmod a+w /dev/bus/usb/002/004

Troubleshooting

If you can print a test page from http://localhost:631, but can't print anything from LibreOffice, try to install a2ps.