SDB:Brother How to setup a Networked Printer Scanner

Jump to: navigation, search


This page explains how to set an all in one Brother printer up with a network connection


Tested on openSUSE

Recommended articles

Icon-manual.png

Related articles

Icon-help.png


This article is for CUPS up to version 2.x under Linux with the traditional filtering system and backends there.

The nowadays driverless printing workflow is rather different.

Situation

  • You want to install a new all in one (printer & scanner) Brother device
  • Your device is reachable through an network connection (wired or wireless)
  • The Common Unix Printing System (CUPS) is already installed (normally installed by default)

+ The sane-backends package is installed


Procedure

There are two methods to setup your printer

  • Using the setup tool provided by Brother to automatically download and install the relevant drivers and also setup the printer and scanner.
  • Manually downloading the various drivers, install them and manually setting the printer and scanner up.

This procedure has been tested on:

Please fell free to add your own experience here.
Printer Model Configuration Printer? Scanner? Remarks
MFCJ-5910DW OpenSuse 42.1 Gnome Works! Works! Tested both methods
DCP-L2520DW OpenSuse 42.2 KDE Works! Works! Tested first method
HL-L2340DW OpenSuse 15.1 KDE Works! Works! Tested both methods
MFC-J5740DW OpenSuse 15.4/15.5 KDE Works! Works! Tested first method
MFC-7460DN OpenSuse 15.4 KDE Works! Works! Tested first method

Method 1: Using the Brother Setup Tool

Step 0 : Leap 15 x86_64

  • glibc-32bit is required for this procedure to work, and that is not a default on Leap 15.1 x86_64 as it may have been on Leap 42.x x86_64; installing without adding glibc-32bit will work, but Cups will not send print jobs to the printer when attempted. A forum thread covering this found the limitation [1].

Step 1 : Download the Brother Setup Tool

  • Go to this page of the Brother Solution Center
  • Click on the Download button and search for your printer category, series and model.
  • Select the Linux OS Family and the Linux(rpm) version then click on the Search button
  • In the driver list that appears, click on the Driver Install Tool to download it (you will need to agree to the End User License Agreement (EULA)

Step 2 : Unzip the Tool

  • Open a terminal and change directory to where you downloaded the tool
  • Unzip the archive with the following command :
user $ gunzip linux-brprinter-installer-2.0.0-1.gz
Please adapt version number if relevant

Step 3 : Running the Install Tool

  • Become a superuser with:
user $ su

Password:
  • Run the tool with the following command :
root # bash linux-brprinter-installer-2.0.0-1 mfcj-5910dw

<span style="color:red;">Input model name -></span>
Please adapt the tool nane version number if relevant - the printer name is given in lowercase letters, please also adapt it to your specific case

Please enter the model name e.g. mfc-j5910dw (everything in lower cases)

root # ... (output sequel of previous command)

<span style="color:#777;">You are going to install following packages.<br/>mfcj5910dwlpr-3.0.0-1.i386.rpm<br/>mfcj5910dwcupswrapper-3.0.0-1.i386.rpm<br/>brscan4-0.4.3-3.x86_64.rpm<br/>brscan-skey-0.2.4-1.x86_64.rpm</span><br/><span style="color:red;">OK? [y/N] -></span>

Please answer y

root # ... (output sequel of previous command)

<span style="color:#777;">rpm -ihv --nodeps --replacefiles --replacepkgs mfcj5910dwlpr-3.0.0-1.i386.rpm</span><br/>Préparation...                       ################################# [100%]<br/>Mise à jour / installation...<br/>  1:mfcj5910dwlpr-3.0.0-1            ################################# [100%]<br><span style="color:#777;">rpm -ihv --nodeps --replacefiles --replacepkgs mfcj5910dwcupswrapper-3.0.0-1.i386.rpm</span><br/>Préparation...                       ########################################<br/>Mise à jour / installation...<br/>mfcj5910dwcupswrapper-3.0.0-1         ########################################<br/>lpadmin -p MFCJ5910DW -E -v usb:/dev/usb/lp0 -P /usr/share/cups/model/Brother/brother_mfcj5910dw_printer_en.ppd<br/>#<br/><span style="color:red;">The security level of AppArmor has been lowered. (aa-complain cups)</span><br/>aa-complain cupsd<br/>Profile for /usr/sbin/cupsd not found, skipping<br/><span style="color:red;">Will you specify the Device URI? [Y/n] -></span>

Please answer Y

root # ... (output sequel of previous command)

<span style="color:#777;">
0: http<br/>
1: serial:/dev/ttyS0?baud=115200<br/>
2: ipps<br/>
3: lpd<br/>
4: ipp<br/>
5: socket<br/>
6: https<br/>
7: smb<br/>
8: parallel:/dev/lp0<br/>
9: hp<br/>
10 (I): Specify IP address.<br/>
11 (A): Auto. (usb://dev/usblp0)</span><br/>

<span style="color:red;">select the number of destination Device URI. -></span>

Please choose 10

root # ... (output sequel of previous command)

<span style="color:red;">output= enter IP address -></span>

Enter the IP address of the printer e.g. 102.168.1.28

root # ... (output sequel of previous command)

<span style="color:#777;">lpadmin -p MFCJ5910DW -v socket://192.168.1.28 -E</span>
<span style="color:red;"><br/>Test Print? [y/N] -></span>

Optionally answer y

Then comes the installation and setting up of the scanner:

root # ... (output sequel of previous command)

<span style="color:#777;">You are going to install following packages.<br/>brscan4-0.4.3-3.x86_64.rpm<br/>rpm -ihv --nodeps --replacefiles --replacepkgs brscan4-0.4.3-3.x86_64.rpm</span><br/>
Préparation...                       ################################# [100%]<br/>
Mise à jour / installation...<br/>   1:brscan4-0.4.3-3                  ################################# [100%]<br/>
This software is based in part on the work of the Independent JPEG Group.<br/>
<span style="color:#777;"You are going to install following packages.<br/>   brscan-skey-0.2.4-1.x86_64.rpm<br/></span>

=========================================<br/>
Brother License Agreement<br/>
(Text of the License)<br/>
=========================================<br>
<span style="color:red;">Do you agree? [Y/n] -></span>

Please answer Y

root # ... (output sequel of previous command)

wget -T 10 -nd --no-cache http://www.brother.com/pub/bsc/linux/packages/brscan-skey-0.2.4-1.x86_64.rpm<br/>
--2016-02-21 08:48:55--  http://www.brother.com/pub/bsc/linux/packages/brscan-skey-0.2.4-1.x86_64.rpm<br/>
Résolution de www.brother.com (www.brother.com)... 90.84.59.152, 90.84.59.145<br/>
Connexion vers www.brother.com (www.brother.com)|90.84.59.152|:80...connecté.<br/>
requête HTTP transmise, en attente de la réponse...200 OK<br/>
Longueur: 53876 (53K) [application/x-rpm]<br/>
Sauvegarde en : «brscan-skey-0.2.4-1.x86_64.rpm»<br/>

100%[=============================================================================================================>] 53 876      --.-K/s   ds 0,05s   <br/>

2016-02-21 08:48:56 (1018 KB/s) - «brscan-skey-0.2.4-1.x86_64.rpm» sauvegardé [53876/53876]<br/>

<span style="color:#777;">rpm -ihv --nodeps --replacefiles --replacepkgs brscan-skey-0.2.4-1.x86_64.rpm</span><br/>
Préparation...                       ################################# [100%]<br/>
Mise à jour / installation...<br/>   1:brscan-skey-0.2.4-1              ################################# [100%]<br/>
<span style="color:#777;">brsaneconfig4 -a name=MFC-J5910DW model=MFC-J5910DW ip=192.168.1.28</span><br/>
<span style="color:red;">Hit Enter/Return key.</span>

Please press Enter and you are done!

Make sure the package libstdc++6-32bit is installed. Otherwise you will receive a 'filter failed' error or printer may not respond at all!

Method 2: Manually Installing the Drivers and Setting up the Printer

Step 1 : Download the Brother Drivers

  • Go to this page of the Brother Solution Center
  • Click on the Download button and search for your printer category, series and model.
  • Select the Linux OS Family and the Linux(rpm) version then click on the Search button

In the driver list that is presented, select the driver you want to download. Each time you will be asked to agree on End User License Agreement (EULA). To select a new driver, use the page back navigation arrow in your browser's address bar. You should download at least the following drivers:

  • LPR Printer Driver
  • CUPSWrapper driver
  • Scanner Driver (64 bits or 32 bits according to your architecture)

Step 2 : Install the Printer Drivers and Check

Some older (32-bit) Brother printer drivers require the glibc-32bit library. It can be installed with
root # sudo zypper in glibc-32bit

Install each driver with this command:

root # rpm -ihv --nodeps --replacefiles --replacepkgs (drivername)
The drivername can be obtained with a
root # ls -a
command, e.g. mfcj5910dwlpr-3.0.0-1.i386(1).rpm and mfcj5910dwcupswrapper-3.0.0-1.i386.rpm

Check whether both drivers are correctly installed with:

root # rpm -qa | grep -e (shortened lpr-drivername) -e (shortened cupswrapper-drivername)

(shortened lpr-drivername)<br/>(shortened cupswrapper-drivername)
Shortened driver-name means the driver's name without the .rpm extension. The command should return the names of the drivers.

Step 3: Set Up the Printer

  • Connect the printer to the network and power it on.
  • Use the printer's interface to get its IP address.

Use CUPS'web interface by going to its admin page: http://localhost:631/admin

  • Click the Add Printer button
  • Check the Host or Printer LPD/LPR case and click Go on
  • Enter connexion: lpd://xxx.xxx.xxx.xxx/binary_p1 (where xxx.xxx.xxx.xxx is the IP address of the printer) and click Go on
  • Enter a name, a description and a location. Optionally check Share this Printer and click Go on
  • Select Brother as brand on click Go on
  • Select the model and click Add Printer
  • Adjust the printer default options and click Define Default Options

Step 4: Install the Scanner Drivers and Check

Icon-warning.png
Warning: The device should be powered and connected to the network. Be also sure that sane-backends package is already installed
Some older Brother scanner drivers require libusb-0_1-4 (a compatibility layer allowing applications written for the older library to work with libusb-1.0.). It can be installed with
root # sudo zypper in libusb-0_1-4

Install the driver with:

root # rpm -ihv --nodeps --replacefiles --replacepkgs brscan4-0.4.3-3.x86_64.rpm

Check whether the driver is correctly installed with:

root # rpm -qa | grep -e (shortened scanner-drivername)

(shortened scanner-drivername)
Shortened scanner-drivername is the driver's name without the .rpm extension. The command should return the name of the driver.

Step 5: Set Up the Scanner and check

Set the scanner up with: Rootshell|command = brsaneconfig4 a name=myScanner model=MFC-J5910DW ip=192.168.1.28|output=

root # brsaneconfig4 -a name=myScanner model=MFC-J5910DW ip=192.168.1.28
The name is free. The model must be adapted according to your one. Respect also the upper cases. Adjust IP address. The number after brsaneconfig (here 4) depends on the printer's family. Its given on the download page of the driver.

Check whether the scanner is correctly installed with:

root # brsaneconfig2 -q | grep myScanner

0 myScanner MFC-J5910DW I:192.168.1.28

Please use the name you have chosen previously.

Step 6: Test the Scanner

Use the Simple Scan tool to verify that everything is correct and that you can scan a document. You can also install Xsane which is a more powerful scanning tool.


See also


External links