Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 02 Oct 2014, 10:31
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Printers
How to Install Brother Printers and Scanners
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 9 Posts_count   Goto page: 1, 2, 3, ..., 7, 8, 9 Next
Author Message
rcrsn51


Joined: 05 Sep 2006
Posts: 9162
Location: Stratford, Ontario

PostPosted: Sun 17 May 2009, 22:36    Post_subject:  How to Install Brother Printers and Scanners  

Some Brother printers can be installed using the drivers that are included with Puppy. However, the Brother website offers a large collection of Linux drivers for their models. Here are the steps to install one.

DEBBI

The Brother downloads are available in either DEB or RPM format, but you will use the DEB versions. To install the packages, you need the "Debian-Brother Installer". Download and install debbi-1.1.pet from the attachment below. It copies the file debbi to the folder /root/my-applications/bin.

This little program will extract the contents of a DEB package to your hard drive and run the post-install script. You will use it for both printer and scanner drivers.

Some older Brother models also require the "csh" shell instead of the "bash" shell used by Puppy. See the list here under Pre-required Procedure (6). If you have one of these printers, install the csh-6.16.00-i486.pet from below before continuing.

PRINTERS

Start the installation process with your printer turned ON.

Go to http://support.brother.com/g/s/id/linux/en/download_prn.html and locate your printer.

You will download two files - the LPR driver and the CUPS wrapper driver. Get the DEB versions. Select Save to Disk and store them in /root. As an example, let's assume that you downloaded the files mfc210clpr-1.0.2-1.i386.deb and cupswrapperMFC210C-1.0.2-3.i386.deb.

Go to your /root folder and press the ~ key. This opens a console window. To display a list of files, type:
Code:
ls

Now type:
Code:
debbi mfc210clpr-1.0.2-1.i386.deb

followed by
Code:
debbi cupswrapperMFC210C-1.0.2-3.i386.deb

This procedure is an ideal situation for using Tab Completion to avoid having to type the whole filename. Try typing:
Code:
debbi <space> mfc <tab> <enter>

In most cases, you can ignore any error messages from the debbi script.

The post-install script creates a PPD file for your printer and stores it in the folder /usr/share/cups/model. And depending on your model, it may also add a printer in CUPS attached to a USB port, ready to use.

However, before launching the CUPS Wizard, there is another step. The Brother driver keeps its own printer configuration settings separate from CUPS. In these settings, the default paper size may be set to A4. So if you are using Letter size, you must manually change it.

Go to /usr/local/Brother/.../inf and locate the file brxxxrc, where xxx is the name of your printer. Open the file and change the PaperType from A4 to Letter.

Run the CUPS wizard and go to Manage Printers. Try printing a test page for the new printer. If it works, you're done! If not, you may need to delete the printer, restart CUPS, let it rediscover the printer and then add it again. You will find the new PPD file in the Brother category.

For your convenience, the drivers for several Brother models are attached below as ready-to-use PETs. These packages do not automatically install a printer, so you will need to run the CUPS Find New Printers option. There is a second page of drivers posted farther down this thread.

NETWORK PRINTERS

If you are using a Puppy with CUPS 1.3 and let CUPS auto-detect your printer, the device URI will look like
Code:
socket://192.168.2.15

However, in newer Puppies with CUPS 1.4, the URI may look like
Code:
lpd://BRN_B7DD77/BINARY_P1

When you try to print, CUPS will fail with the error message "Unable to locate". This is because CUPS needs a way of looking up the IP address that matches the printer name.

To solve this problem, open the file /etc/hosts and add a line like
Code:
192.168.2.15 BRN_B7DD77

SCANNERS

Go to http://support.brother.com/g/s/id/linux/en/download_scn.html. The various models are covered by four drivers - brscan, brscan2, brscan3 and brscan4.

Locate your scanner in the lists and download the corresponding driver. Also check for any additional instructions that may apply to your device. Then install it using debbi:
Code:
debbi brscan2-0.2.4-0.i386.deb

Reboot and run Xsane from the Graphic menu. Ignore the warning message about running as root.

Peasyscan is a light-weight alternative to the Xsane image scanner program. It uses the same backend tools as Xsane, but with a simpler user interface. Get it here. (Some newer Puppies already have Peasyscan.) The installer adds a menu entry under Graphic.

Note that with Brother printers, you must select Preferences > Show Advanced Options in order to see the scanning controls.

NETWORK SCANNING

See hokal's instructions farther down this thread for setting up a networked scanner. For example, determine the unit's IP address and run a command like:
Code:
brsaneconfig4 -a name=Brother model=MFC-J430W ip=aaa.bbb.cc.dd
debbi-1.1.pet
Description  Updated 2012-06-15
Uses the new PET packaging format
pet

 Download 
Filename  debbi-1.1.pet 
Filesize  626 Bytes 
Downloaded  2519 Time(s) 
brother_hl4040cdn-1.0.pet
Description 
pet

 Download 
Filename  brother_hl4040cdn-1.0.pet 
Filesize  365.4 KB 
Downloaded  1232 Time(s) 
brother_hl2170w-2.0.pet
Description 
pet

 Download 
Filename  brother_hl2170w-2.0.pet 
Filesize  51.63 KB 
Downloaded  1396 Time(s) 
brother_mfc7440n-2.0.pet
Description 
pet

 Download 
Filename  brother_mfc7440n-2.0.pet 
Filesize  51.96 KB 
Downloaded  1375 Time(s) 
brother_hl2150n-2.0.pet
Description 
pet

 Download 
Filename  brother_hl2150n-2.0.pet 
Filesize  52.15 KB 
Downloaded  1349 Time(s) 
csh-6.16.00-i486.pet
Description 
pet

 Download 
Filename  csh-6.16.00-i486.pet 
Filesize  129.71 KB 
Downloaded  1527 Time(s) 

Edited_times_total
Back to top
View user's profile Send_private_message 
hokal

Joined: 10 Jun 2009
Posts: 103
Location: Kempen, Germany, dutch border

PostPosted: Wed 10 Jun 2009, 09:15    Post_subject:  Brother MFC210
Sub_title: sh cupswrapperxxxx -i failed
 

Hi there,

although I'm very new (30 days) with puppy, Im very happy that I tested and installed it. The performance of Ubuntu, Mandriva and FluxFlux caused me head aches over the last 6 month, when I changed from XP to Linux. Puppy in RAM is an excellent solution for my EeePC 901. Very Happy

I succeded within short to install in addition to puppy 4.2
WLAN, CUPS printers in my office, Java, Thunderbird, TV USB stick
and other programs, due this wonderful Discussion Forum!
Excellent work! I even use my puppy notebook now for my work.

Now I encountered as a newcomer a first problem with the so simple described installation of brother printers.

1. installed tcsh-6.16.00-i486.pet , I learned from the forum.
2. followed the instructions of rcrsn51 strictly Exclamation

hokal: sh cupswrapperMFC210C-1.0.0 -i
cupswrapperMFC210C-1.0.0: line26: syntax error near unexpected token '0'
cupswrapperMFC210C-1.0.0: line 26 ' exit(0)' Crying or Very sad


I looked into the script, but don't understand the code. Shocked

#! /bin/csh
#
# Brother Print filter
# Copyright (C) 2004 Brother. Industries, Ltd.

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA 02111-1307 USA
#

if("$1" == '-e')then
lpadmin -x MFC210C
rm -f /usr/share/cups/model/brmfc210c_cups.ppd
rm -f /usr/lib/cups/filter/brlpdwrapperMFC210C
/etc/init.d/cups restart
exit(0)

This last line is 26 and the script stopps.

Can someone help to get my brother installed ?? Idea
Pls in "normal" words, I'm not a linux freak, just an old man.
Only to mention it: I did not follow the instruction:
Start the installation process with your printer turned ON.

rgds from Cologne in Germany
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9162
Location: Stratford, Ontario

PostPosted: Wed 10 Jun 2009, 14:28    Post_subject:  

It looks like some of these wrapper scripts are written for the C-shell instead of the Bourne shell used by Puppy. I'm impressed by the fact that you decided to install the tcsh shell instead!

From your error message, it appears that the only problem is with the actual "exit(0)" command. I would try replacing these lines with
Code:
exit 0
or maybe just
Code:
exit
Back to top
View user's profile Send_private_message 
hokal

Joined: 10 Jun 2009
Posts: 103
Location: Kempen, Germany, dutch border

PostPosted: Wed 10 Jun 2009, 16:27    Post_subject:  

rcrsn51 wrote:
It looks like some of these wrapper scripts are written for the C-shell instead of the Bourne shell used by Puppy. I'm impressed by the fact that you decided to install the tcsh shell instead!

From your error message, it appears that the only problem is with the actual "exit(0)" command. I would try replacing these lines with
Code:
exit 0
or maybe just
Code:
exit


Hi rcrsn51 don't be impressed! Very Happy Sorry when I did stupid things. Embarassed
The problem must be indeed the shell problem. tried to start brlpdwrapperMFC210C; hangs also at a certain line.
Changing exit command did not help.
Should I remove tcsh shell and install another shell (Bourne?) instead ???
Can you give pls instructions where to get this ??
Thanks a lot!
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9162
Location: Stratford, Ontario

PostPosted: Wed 10 Jun 2009, 17:23    Post_subject:  

Having played with this some more, I don't think that you need to change the script. Instead do the following:

1. Go to /usr/local/Brother/.../cupswrapper and run the command
Code:
tcsh cupswrapperxxx -i

This should run the installer script without errors using the tcsh shell.

2. Go to the folder /usr/lib/cups/filter and open the file brlpdwrapperMFC210C in a text editor. Change the top line to
Code:
#! /usr/bin/tcsh

This will make the printer filter run in the correct shell.

3. Go to /usr/lib and locate the file "libbrcompij2.so.1.0.2". You need to create another file named "libbrcompij2.so.1". Right-click on this file and select "Link". Change the name to:
Code:
libbrcompij2.so.1

Just carefully delete the ".0.2" off the end.

If this works correctly, you should see the second file with an arrow on its icon. This is a symlink to the other file.

Now run CUPS and add your printer.
Back to top
View user's profile Send_private_message 
hokal

Joined: 10 Jun 2009
Posts: 103
Location: Kempen, Germany, dutch border

PostPosted: Mon 15 Jun 2009, 06:04    Post_subject:    

Quote:
Having played with this some more, I don't think that you need to change the script. Instead do the following:

1. Go to /usr/local/Brother/.../cupswrapper and run the command
Code:
tcsh cupswrapperxxx -i

This should run the installer script without errors using the tcsh shell.

2. Go to the folder /usr/lib/cups/filter and open the file brlpdwrapperMFC210C in a text editor. Change the top line to
Code:
#! /usr/bin/tcsh

This will make the printer filter run in the correct shell.

3. Go to /usr/lib and locate the file "libbrcompij2.so.1.0.2". You need to create another file named "libbrcompij2.so.1". Right-click on this file and select "Link". Change the name to:
Code:
libbrcompij2.so.1

Just carefully delete the ".0.2" off the end.

If this works correctly, you should see the second file with an arrow on its icon. This is a symlink to the other file.

Now run CUPS and add your printer.



Very Happy Yes Sir, it was the shell command!Thanks for your instructions!
Back to top
View user's profile Send_private_message 
stevesr0

Joined: 24 Jun 2007
Posts: 169

PostPosted: Mon 15 Jun 2009, 22:32    Post_subject: success w Brother MFC7345N  

I am currently running 4.2.1 as a Live-CD.

I installed a Brother MFC7345N yesterday as a network printer, using the instructions posted by rcrsn51.

In my case, I had to download a compatible driver since the Brother site didn't have one for my exact model. As we also have a Mac, I looked at the drivers on the Brother CD for the Mac. They had drivers for the MFC7340, the MFC7345N and the MFC7440N. The size and dates of the latter two were identical.

I therefore chose the driver for the MFC7440N listed on the Brother site and downloaded the rpms for cupswrapper and the lpd driver.

One difference from the instructions: by default, the download is to the /root directory rather than the /directory. When I tried to extract and install from this site, the response to "sh cupswrapperMFC7440N-2.0.2 -i" was couldn't find an LPD file.

I finally copied the Brother directory to /usr/local and then the command worked fine.

Note that for me, the sh command worked but the tcsh command didn't.

Note that the device URI that Brother recommends for their networked printers is lpd:/ipaddress/queue, where queue by default is binary_p1.

Hope that is helpful to someone.

Thanks rcrsn51.

Steve
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9162
Location: Stratford, Ontario

PostPosted: Mon 15 Jun 2009, 22:52    Post_subject:  

Glad to help. I did a test install of your MFC7440N driver using the new "debbi" script and it worked perfectly. This should make the installation of Brother printers pretty straight forward.

The csh shell is required by a small group of printers listed here.
Back to top
View user's profile Send_private_message 
hokal

Joined: 10 Jun 2009
Posts: 103
Location: Kempen, Germany, dutch border

PostPosted: Tue 23 Jun 2009, 06:33    Post_subject: Re: How to Install Brother Printers and Scanners [Updated]  

SCANNERS

Go to http://solutions.brother.com/linux/en_us and select Download Scanner Driver. The various models are covered by three drivers - brscan, brscan2 and brscan3.

Locate your scanner in the lists and download the corresponding driver. Also check for any additional instructions that may apply to your device. Then install it using debbi:
Code:
debbi brscan2-0.2.4-0.i386.deb

Reboot and run Xsane from the Graphic menu.[/quote]

I followed the updated Brother installation description of rcrsn51 which works perfekt!

Remark for Brother Scanners in a Network:
execute a command like: >brsaneconfig2 -a name=scanner model=DCP-315CN ip=192.168.x.x
Start Sane, choose USB Port and Sane will find your network scanner!
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9162
Location: Stratford, Ontario

PostPosted: Tue 23 Jun 2009, 06:43    Post_subject:  

Quote:
For Brother Scanners in a Network:

Execute a command like:

brsaneconfig2 -a name=scanner model=DCP-315CN ip=192.168.x.x

Start Sane, choose USB Port and Sane will find your network scanner!


Thanks for that useful piece of information!
Back to top
View user's profile Send_private_message 
12mma10

Joined: 05 Nov 2008
Posts: 13
Location: vienna

PostPosted: Sun 05 Jul 2009, 03:58    Post_subject: Brother MFC-5840CN does not work...  

rcrsn51 wrote:
Glad to help. I did a test install of your MFC7440N driver using the new "debbi" script and it worked perfectly. This should make the installation of Brother printers pretty straight forward.

The csh shell is required by a small group of printers listed here.


hello rcrsn51,

I've read that thread carefully, but I was not able to get my MFC-5840CN work.

here is my Printer Config:

Description: MFC5840CN
Location:
Driver: Brother MFC-5840CN CUPS v1.1 (color)
Connection: lpd://10.0.0.53/binary_p1
Defaults: job-sheets=none, none media=BrLetter

I got the same errors like Hokal, tested the same workaround.

When I print something, I can see a print job.
After some seconds the job disappears and the printer tells mi that he is receiving data.
But the printer prints nothing!

do you have a tip for mi?
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9162
Location: Stratford, Ontario

PostPosted: Sun 05 Jul 2009, 07:00    Post_subject:  

Connect the printer directly to a USB port, install it again and see if it will print. That will tell you if you have the correct driver. If it does, go back to the network connection.

For the device URI, try
Code:
socket://10.0.0.53:9100
Then go to the CUPS web interface and print a test page. Watch for error messages.

[Edit] I did a simulated install of your printer and the driver does work. To what kind of network is this printer connected?
Back to top
View user's profile Send_private_message 
Strampke

Joined: 06 Jan 2007
Posts: 36

PostPosted: Tue 10 Aug 2010, 14:44    Post_subject: Brother HL2150N installed  

Thanks for the explanation and files in this thread.

But still..........
I do like Linux, I do like Puppy, but why oh why does it take so much effort to install a printer.
Having to use 3rd party programming downloaded from a forum with an explicit explanation on how to handle things.

Why isn't Linux more straightforward.

Paraphrasing Neil Armstrong:
Installing a non top selling printer is a small step for the Linux guru but a giant leap for the average computer user.
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9162
Location: Stratford, Ontario

PostPosted: Tue 10 Aug 2010, 15:40    Post_subject:  

Quote:
Why isn't Linux more straightforward.

Let's do some math. Brother has Linux drivers for about 200 models. When they are turned into installable PETs for Puppy, each one is about 1 MB in size. So the total Brother driver package is about 200 MB. Compare this to the 100 MB size of a Puppy ISO and you can see the problem.

On the other hand, HP combines all their Linux printer drivers into a single package which is only 400 KB and is easier to use than their Windows installers.

Do you have any suggestions on how to make your particular situation better?
Back to top
View user's profile Send_private_message 
Strampke

Joined: 06 Jan 2007
Posts: 36

PostPosted: Fri 13 Aug 2010, 17:52    Post_subject:  

Yes I do.

For simple users like me maybe a pet would do.
Just download one file click on it, get the question whether you want to install it and off you go.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 9 Posts_count   Goto page: 1, 2, 3, ..., 7, 8, 9 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Hardware » Printers
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1166s ][ Queries: 13 (0.0057s) ][ GZIP on ]