Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[Solved] How To Install Brother HL-2040

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
20 posts • Page 1 of 1
Author
Message
bdm
Guru
Guru
User avatar
Posts: 305
Joined: Fri Jan 20, 2006 8:39 pm
Location: Canada, Barrie, Ontario

[Solved] How To Install Brother HL-2040

  • Quote

Post by bdm » Sat Feb 11, 2006 9:10 pm

So I have a Brother HL-2040 printer, but don't really know where to start on installing it. I've search Google and the Gentoo-Wiki, but can't seem to find the proper documentation.

Any help is greatly appreciated.

Thanks!
Last edited by bdm on Mon Oct 23, 2006 3:42 pm, edited 1 time in total.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56077
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Feb 11, 2006 9:33 pm

Glass Casket,

From what I can see, you have a good chance of getting your printer working with CUPS and the driver here

First install CUPS, following the first link. Don't do the

Code: Select all

cat test>/dev...
part way through. It won' work for you. After CUPS in installed, you can find some drivers for other distros at the second link. I would choose the RedHat one. There are probably install instructions on that site somewhere because they are not in the file.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
bdm
Guru
Guru
User avatar
Posts: 305
Joined: Fri Jan 20, 2006 8:39 pm
Location: Canada, Barrie, Ontario

  • Quote

Post by bdm » Sat Feb 11, 2006 9:56 pm

I installed CUPS, and it prints, but it only prints blank pages, lol :P
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56077
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Feb 11, 2006 10:12 pm

Glass Casket,

Thats a start - you now need the CUPS wrapper from the Brother website
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
bdm
Guru
Guru
User avatar
Posts: 305
Joined: Fri Jan 20, 2006 8:39 pm
Location: Canada, Barrie, Ontario

  • Quote

Post by bdm » Sat Feb 11, 2006 10:31 pm

I don't know if it's just me, but the RPM package just dosen't seem to want to install :S
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56077
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Feb 11, 2006 10:45 pm

Glass Casket,

You cannot install an RPM directly on Gentoo, You have to take it apart and install the bits by hand.
There are only two files in the package - I didn't look like a proper RMP. If the filename ends in RPM, try rpm2targz to make it more manageable. emerge rpm2targz if neded.

This will give you a fille called cupswrapperHL2040-1.0.0-1.i386.tar.gz which you unpack with

Code: Select all

tar -xzvf cupswrapperHL2040-1.0.0-1.i386.tar.gz
This gives you two files in the tree

Code: Select all

./
./usr/
./usr/local/
./usr/local/Brother/
./usr/local/Brother/cupswrapper/
./usr/local/Brother/cupswrapper/brcupsconfig2
./usr/local/Brother/cupswrapper/cupswrapperHL2040-1.0.0
You can install them like that and tell Gentoo how to find them or put them where Gentoo expects to fine them.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
denials
n00b
n00b
User avatar
Posts: 27
Joined: Sun Jan 11, 2004 2:01 pm
Location: Sudbury, Ontario

Got the HL2040 working; here's how

  • Quote

Post by denials » Sun Apr 09, 2006 2:17 am

This was much trickier than it should have been, but it's now working here. I'm assuming you already have a working CUPS installation and that usblp support is either built into your kernel or loaded as a module.

1. emerge rpm2targz
2. Download both brhl2040lpr-1.1.2-2.i386.rpm and cupswrapperHL2040-1.0.0-1.i386.rpm from the Brother Web site. They're in the Downloads -> Drivers -> Monochrome laser -> Linux section of the site.
3. Convert both RPM files to tarballs using rpm2targz, then extract the tarballs:

Code: Select all

$ rpm2targz brhl2040lpr-1.1.2-2.i386.rpm
$ rpm2targz cupswrapperHL2040-1.0.0-1.i386.rpm
$ tar xzf cupswrapperHL2040-1.0.0-1.i386.tar.gz
$ tar xzf brhl2040lpr-1.1.2-2.i386.tar.gz
This creates a usr and a var directory in your current working directory.
4. As root, copy all of the files that were extracted into the usr directory into the corresponding directories in /usr/.

Code: Select all

# cp usr/bin/brprintconflsr /usr/bin/.
# cp usr/lib/libbrcomplpr.so /usr/lib/.
# mv usr/local/Brother /usr/local/.
5. Modify the /usr/local/Brother/cupswrapper/cupswrapperHL2040-1.0.0 script to point to /etc/init.d/cupsd instead of /etc/init.d/cups; this change is required in three locations in this file.
6. Run the /usr/local/Brother/cupswrapper/cupswrapperHL2040-1.0.0 script to set up the Brother HL2040 laser.
7. Create a symbolic link from /usr/local/Brother/inf/brHL2040rc to /usr/local/Brother/inf/brPrintList.

Code: Select all

cd /usr/local/Brother/inf
ln -sf brHL2040rc brPrintList
8. The printer defaults to A4 sized paper; if you're in North America you probably want to open /usr/local/Brother/inf/brHL2040rc in an editor and set PaperType=Letter.
9. Fire up the CUPS administration console (http://localhost:631 just might work); your Brother HL-2040 should be listed, and you should be able to print a test page. Yay!

Dan
Top
benster
n00b
n00b
User avatar
Posts: 67
Joined: Wed Nov 30, 2005 5:00 am
Location: Funkytown

It Works!

  • Quote

Post by benster » Mon Apr 10, 2006 4:25 am

Wonderful, thank you denials! I had myself just gotten to the CUPS step after having installed, but never got the darn thing to print. A couple notes:

for step (5), I found no entries in the /usr/local/Brother/cupswrapper/cupswrapperHL2040-1.0.0 file that needed changing to /etc/init.d/cupsd; the entries I saw were already that way... :?:

The only thing I didn't remember doing when I tried setting up the printer a few months back was setting up the symbolic link, so if I had to make a wager, then it would be the creation of the symlink that made it work.

Muchos Gracias for figuring it out. :D
Top
Lafe
n00b
n00b
Posts: 6
Joined: Sun Jul 25, 2004 7:01 am
Contact:
Contact Lafe
Website

Excellent!

  • Quote

Post by Lafe » Thu Aug 17, 2006 1:19 am

I just wanted to add a note of thanks to you Denials! It worked great for me as well. I'd gotten as far as printing blank pages, and hadn't the will to go on past that point. :)

Well done!
Lafe
Top
bdm
Guru
Guru
User avatar
Posts: 305
Joined: Fri Jan 20, 2006 8:39 pm
Location: Canada, Barrie, Ontario

  • Quote

Post by bdm » Fri Oct 20, 2006 2:10 pm

denials, thanks for that throurough tutorial, but I did what you said before CUPS was installed (this is a new installation). What can I do now to have minimal damage?
Top
bdm
Guru
Guru
User avatar
Posts: 305
Joined: Fri Jan 20, 2006 8:39 pm
Location: Canada, Barrie, Ontario

  • Quote

Post by bdm » Mon Oct 23, 2006 12:59 am

Just wanted to post back and report a success!

Thanks again.
Paludis, the newest and best pkgcore replacement
Top
kernelOfTruth
Watchman
Watchman
User avatar
Posts: 6111
Joined: Tue Dec 20, 2005 10:34 pm
Location: Vienna, Austria; Germany; hello world :)
Contact:
Contact kernelOfTruth
Website

  • Quote

Post by kernelOfTruth » Thu Nov 16, 2006 7:59 pm

@denials:

just wanted to say: "thank you"

this worked fine with the MFC5840CN, in this way I'm not dependent on a rpm installation, yay! :D
https://github.com/kernelOfTruth/ZFS-fo ... scCD-4.9.0
https://github.com/kernelOfTruth/pulsea ... zer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Top
bdm
Guru
Guru
User avatar
Posts: 305
Joined: Fri Jan 20, 2006 8:39 pm
Location: Canada, Barrie, Ontario

  • Quote

Post by bdm » Fri Nov 17, 2006 3:04 am

Actually, I'm still having problems. As soon as I installed it with your guide, ti worked fine until I rebooted. Now I can't even access the the CUPS local site to check my printers status. And yes, CUPS is as put as boot.

Any ideas?
Paludis, the newest and best pkgcore replacement
Top
kernelOfTruth
Watchman
Watchman
User avatar
Posts: 6111
Joined: Tue Dec 20, 2005 10:34 pm
Location: Vienna, Austria; Germany; hello world :)
Contact:
Contact kernelOfTruth
Website

  • Quote

Post by kernelOfTruth » Sun Nov 19, 2006 12:15 am

Code: Select all

rc-update -s
show what for cups ?

do a

Code: Select all

etc-update
and

Code: Select all

/etc/init.d/cupsd restart
then take a look again at 127.0.0.1:631

otherwise look if dependencies for cups changed:

Code: Select all

revdep-rebuild -p
(before that removing old files:

Code: Select all

rm /root/.revdep*

might be necessary)
https://github.com/kernelOfTruth/ZFS-fo ... scCD-4.9.0
https://github.com/kernelOfTruth/pulsea ... zer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Top
reyneke
Guru
Guru
User avatar
Posts: 542
Joined: Fri Jan 09, 2004 7:01 pm
Location: Augsburg / Germany
Contact:
Contact reyneke
Website

[b]This also works for HL2030

  • Quote

Post by reyneke » Wed Jan 10, 2007 4:06 pm

First of all: one huge thank you goes to Denials for this howto. You just made my day.
This Howto also works flawlessly for a Brother HL-2030. There's only one little problem: the drivers do not work with cups-1.2.x. Even the workaround proposed in the Brother FAQs didn't work (for me). Solution: install cups-1.1.28.

Cheers,
rey
I like to wait to see how things turn out
If You Apply Some Pressure
WHAT HAPPENS when you lose EVERYTHING?
You start again.
You start all over again.

Maximo Park - Apply Some Pressure
Top
kernelOfTruth
Watchman
Watchman
User avatar
Posts: 6111
Joined: Tue Dec 20, 2005 10:34 pm
Location: Vienna, Austria; Germany; hello world :)
Contact:
Contact kernelOfTruth
Website

  • Quote

Post by kernelOfTruth » Wed Jan 10, 2007 4:36 pm

you tried those ?:

http://forums.gentoo.org/viewtopic-p-38 ... ml#3832567

these are in fact Denials steps but modified / completed by myself to work with cups-1.2*

kudos & thanks to him :D
https://github.com/kernelOfTruth/ZFS-fo ... scCD-4.9.0
https://github.com/kernelOfTruth/pulsea ... zer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Top
reyneke
Guru
Guru
User avatar
Posts: 542
Joined: Fri Jan 09, 2004 7:01 pm
Location: Augsburg / Germany
Contact:
Contact reyneke
Website

  • Quote

Post by reyneke » Wed Jan 10, 2007 5:25 pm

kernelOfTruth wrote:you tried those ?:
w00t! Now it works perfectly! Thank you for this hint.
Top
bluesea
n00b
n00b
User avatar
Posts: 27
Joined: Mon May 10, 2004 9:54 pm

excellent. one mod needed for me.

  • Quote

Post by bluesea » Tue May 26, 2009 2:18 am

Great guide. The only difference for me was that the brother script created

Code: Select all

/usr/lib/cups/filter/brlpdwrapperHL2040
which CUPS could not find.

See that foomatic-rip was another cupsFilter, I put a copy (ln -s) of brlpdwrapperHL2040 everywhere that there was a copy of foomatic-rip, all of which are links to the /usr/bin version:

Code: Select all

cd /usr/lib/ppr/interfaces/
ln -s /usr/lib/cups/filter/brlpdwrapperHL2040 .
cd /usr/lib/ppr/lib/
ln -s /usr/lib/cups/filter/brlpdwrapperHL2040 .
cd /usr/libexec/cups/filter/
ln -s /usr/lib/cups/filter/brlpdwrapperHL2040 .
Success!
erutangiS
Top
godsmack420
Apprentice
Apprentice
User avatar
Posts: 155
Joined: Fri Feb 11, 2005 5:15 am
Location: Wintersville, OH

  • Quote

Post by godsmack420 » Fri May 29, 2009 5:35 am

I had the same problem not finding the filter and copied brlpdwrapperHL2040 to the directories listed above but now I get "Printer not connected; will retry in 30 seconds..." error in CUPS. The printer is connected, any ideas of what to try? I've restarted CUPS, rebooted, and made sure USB printing support was compiled in kernel.
Top
Alakhai
Apprentice
Apprentice
User avatar
Posts: 151
Joined: Thu Oct 16, 2003 4:27 pm

  • Quote

Post by Alakhai » Tue Jan 04, 2011 1:26 pm

We should upload this guide to gentoo wiki... It is great! it worked for me with MFC7440N
Gentoo Linux 64Bit User
Top
Post Reply

20 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic