[SOLVED] trying to add driver for brother HL-L2300D
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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):
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.
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.
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.
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).
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.
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
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)
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.