LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-03-2015, 08:56 AM   #1
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Rep: Reputation: 129Reputation: 129
trying to add driver for brother HL-L2300D


Today I bought a laser printer (Brother HL-L2300D).
It was listed in my cups database. So I was able to add it.
When I tried to print a test page, it came out blank and I got
a message about a missing driver.
From the brother web site I downloaded these 2 files (after selecting
my model, and linux as my OS):
Code:
brgenml1cupswrapper-3.1.0-1.i386.rpm
brgenml1lpr-3.1.0-1.i386.rpm
I unpacked the rpms to have a look.
On the *cups* unpacked package I have exactly this folder:
Code:
opt/brother/Printers/BrGenML1/cupswrapper
containing these files:
Code:
brother-BrGenML1-cups-en.ppd  brother_lpdwrapper_BrGenML1*  paperconfigml1*
On the *lpr* unpacked, I got these
Code:
etc/opt/brother/Printers/BrGenML1/inf/
(which is empty)
Code:
opt/brother/Printers/BrGenML1/inf
which contains these files
Code:
brBrGenML1func	brBrGenML1rc  braddprinter*  setupPrintcap*
Code:
opt/brother/Printers/BrGenML1/lpd/
which contains these files:
Code:
brprintconflsr3*  filter_BrGenML1*  rawtobr3*
and these empty folder
Code:
var/spool/lpd/BrGenML1/
Anybody has an idea about which files should be copied and where in order to have a working driver for this printer?
 
Old 03-03-2015, 09:11 AM   #2
maciuszek
Member
 
Registered: Nov 2010
Location: Toronto, Ontario
Distribution: Slackware + FreeBSD
Posts: 165

Rep: Reputation: 40
If you're stumped it's always good to have a look at pkgbuilds i find, and in that i would recommend writing a slackbuild; even directly ported from that pkgbuild. To keep yourself more organized and have easier management with any future upgrades.

It's funny I haven't used arch ever in my life, but I'm sure I've been staring at their repositories more than the average arch user.

https://aur.archlinux.org/packages/b...enml1/PKGBUILD
 
Old 03-03-2015, 10:06 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,

If you use 'CUPS' then use the 'brother-BrGenML1-cups-en.ppd' driver when adding the printer. Browse to that 'ppd' driver when asked for the driver file location and select 'brother-BrGenML1-cups-en.ppd'. You should then be able to use 'CUPS' for that printer.

Hope this helps.
Have fun & enjoy!
 
Old 03-03-2015, 11:53 AM   #4
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by onebuck View Post
If you use 'CUPS' then use the 'brother-BrGenML1-cups-en.ppd' driver when adding the printer. Browse to that 'ppd' driver when asked for the driver file location and select 'brother-BrGenML1-cups-en.ppd'. You should then be able to use 'CUPS' for that printer.
I tried what you suggested. But when I tried to print a test page (within CUPS)
I got this error message:
Code:
Missing Printer Driver

Printer 'Brother_HL-L2300D_series' requires the '/usr/lib/cups/filter/brother_lpdwrapper_BrGenML.1'
program but it is not currently installed
I tried this as it seemed quicker, but I guess I'll have a look at the PKGBUILD as suggested by maciuszek.
 
Old 03-03-2015, 12:20 PM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
You should just be able to move the file, brother_lpdwrapper_BrGenML1, that was contained in the brgenml1cupswrapper-3.1.0-1.i386.rpm download into the directory required by CUPS (/usr/lib/cups/filter/). You may need to rename the file to brother_lpdwrapper_BrGenML.1 (notice the dot twoards the end).
 
Old 03-03-2015, 03:32 PM   #6
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by bassmadrigal View Post
You should just be able to move the file, brother_lpdwrapper_BrGenML1, that was contained in the brgenml1cupswrapper-3.1.0-1.i386.rpm download into the directory required by CUPS (/usr/lib/cups/filter/). You may need to rename the file to brother_lpdwrapper_BrGenML.1 (notice the dot twoards the end).
I just wrote a SlackBuild (thanks maciuszek, for your suggestion), built a package and installed the txz.
The file '/usr/lib/cups/filter/brother_lpdwrapper_BrGenML1' was there.
I'll test it tomorrow and see if the dot is necessary. Will let you know.

Thanks everybody
 
Old 03-03-2015, 04:03 PM   #7
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
An alternative technique for installing Brother drivers from .rpms http://docs.slackware.com/howtos:har...r_installation
 
Old 03-04-2015, 02:05 AM   #8
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
okay
after installing the drivers, I went to cups, and this time the
Brother BrGenML1 for CUPS
appeared at the top of the list after I added my printer.
But when I tried to print (self test, and a regular file by regular user) nothing happened,
not even error messages.
After trying to print the test page, here what the `Show All Jobs' displays:
Code:
Brother_HL-L2300D_series-182  	Unknown  Withheld  1k  	Unknown  	completed at  Wed 04 Mar 2015 08:57:44 AM EST
There's no entry in the error log page for that job

Am I missing something?
 
Old 03-04-2015, 05:47 AM   #9
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Any chance you are using a 64bit setup? If so, check the Prerequisites section of the link I posted at post#7
 
Old 03-04-2015, 07:03 AM   #10
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by allend View Post
Any chance you are using a 64bit setup? If so, check the Prerequisites section of the link I posted at post#7
No, my system is 32bit.

Funny thing is, when I first ran cups (before I installed the drivers) and I tried
to print a test page, the printer went into action (I got a blank page), then I saw
the message about a missing driver.
Now, nothing happens on the printer side (blinking light or whatever)
 
Old 03-04-2015, 07:09 AM   #11
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Have you tried printing a plain text file? (I have had the CUPS test page fail to print, but other documents are fine.)
What does 'lpstat -t' show?
 
Old 03-04-2015, 07:27 AM   #12
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
I just noticed something.
I'm looking at
Code:
usr/lib/cups/filter/brother_lpdwrapper_BrGenML1
It's a perl script. At the top of the script I saw this:
Code:
$PRINTER =~ s/^\/opt\/.*\/Printers\///g;
Looks like it expects the files to reside in /opt, as it was in the rpm.
I'll try to create the same tree structure in /opt and create symbolic links
and see what happens.
 
Old 03-04-2015, 08:55 AM   #13
maciuszek
Member
 
Registered: Nov 2010
Location: Toronto, Ontario
Distribution: Slackware + FreeBSD
Posts: 165

Rep: Reputation: 40
https://aur.archlinux.org/packages/brother-brgenml1/

Download the tarball and apply the patch in your slackbuild.


I confident you ignored:

Code:
prepare() {

patch "$srcdir/opt/brother/Printers/${_brotherdrivername}/cupswrapper/brother_lpdwrapper_${_brotherdrivername}" < "$srcdir/brother_lpdwrapper_${_brotherdrivername}.patch"

}
 
Old 03-04-2015, 09:09 AM   #14
maciuszek
Member
 
Registered: Nov 2010
Location: Toronto, Ontario
Distribution: Slackware + FreeBSD
Posts: 165

Rep: Reputation: 40
https://aur.archlinux.org/packages/brother-brgenml1/

Download the tarball and apply the patch in your slackbuild.


Im confident you ignored:

Code:
prepare() {

patch "$srcdir/opt/brother/Printers/${_brotherdrivername}/cupswrapper/brother_lpdwrapper_${_brotherdrivername}" < "$srcdir/brother_lpdwrapper_${_brotherdrivername}.patch"

}

Last edited by maciuszek; 03-04-2015 at 09:18 AM.
 
Old 03-04-2015, 10:54 AM   #15
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by maciuszek View Post
https://aur.archlinux.org/packages/brother-brgenml1/
Code:
prepare() {

patch "$srcdir/opt/brother/Printers/${_brotherdrivername}/cupswrapper/brother_lpdwrapper_${_brotherdrivername}" < "$srcdir/brother_lpdwrapper_${_brotherdrivername}.patch"
}
Yes, I ignored that.
I was thinking of using sed to modify the default paths in the scripts after noticing.
But I'll just use the patch that I just downloaded.
Thanks for the link. I'll rewrite my SlackBuild and reinstall everything.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] brother fax2840 driver install not_bob Slackware 3 07-17-2013 06:20 AM
[SOLVED] Brother printer HL-2270DW driver - Brother solutions offer four - which one? juneymoon Linux - Software 9 06-15-2013 04:52 PM
64-bit Driver for Brother Printer MQMan Linux - Hardware 14 10-22-2009 04:46 PM
driver for brother all in 1 dcp 385-c il-bastardo Ubuntu 1 09-30-2009 05:08 PM
Brother MFC-5100c printer driver kkaliek Linux - Hardware 1 07-03-2003 08:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration