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.
As setting up a printer seems to be a recurrent topic, I thought
I'd post this info here. Hope it's useful for some of you.
I have a brother laser printer (HL-L2300D). When I set it up on
slackware 14.0 and 14.1, the only driver available was a generic one.
I wrote a SlackBuild and installed it.
I'm about to set up my printer on my newly installed slackware 14.2.
I went to the brother web site and I noticed that they have a driver
for my model. I downloaded it, along with the cups wrapper.
I wrote a new SlackBuild for it and built it.
I haven't installed / tested it yet.
click on 'Product Search', then on the type of product, etc.
chances are you'll find a driver that works for your model and that you
can adapt my SlackBuild to that driver.
Well, it didn't work exactly as expected (after I installed my package) the first time.
I figured cups expects the ppd wrapper file in another location
I created a symbolic to it and restarted cups and it seemed to work.
So I rewrote the SlackBuild and added a doinst.sh inside it that just does that.
I uploaded the new version of SlackBuild:
Hopefully this time, things will run more smoothly.
Recap of the steps to set up the printer:
1. Build and install the driver with its cups wrapper
2. launch cups if it's not already running:
chmod +x /etc/rc.d/rc.cups restart
3. Open a web browser and go to "http://localhost:631"
Click on 'Adding Printers and Classes' (under CUPS for Administrators)
This model should appear on the list ...
I did 'borrow' and apply an incredibly clever chunk of code from the Standard SBo SlackBuild Template which I applied to the permissions( ) function in your SlackBuild.
The only functional difference is that they invoke the -L flag on the find command ( -L -> follow links ) .
Otherwise, it accomplishes all the chmod commands ( plus 750->755 and 640->644 ) in a single invocation of find ( sweet code there )
A unified diff against your latest SlackBuild is below.
Did you try the stock Foomatic/hpijs-pcl5e CUPS driver?
I have not the same printer (Brother HL-2070N) but I found it renders better with it than the Brother driver
I see your model is GDI emulation, don't know if it would work with PCL though
Did you try the stock Foomatic/hpijs-pcl5e CUPS driver?
I have not the same printer (Brother HL-2070N) but I found it renders better with it than the Brother driver
No, I didn't.
What did you do exactly?
I went there: https://www.openprinting.org/printers/
but I didn't see my model
I see that foomatic-filters are installed in slackware, but not the engine or the database...
Sometimes, in the olden days when Linux printing was not supported much if at all my the Mfgs, you might make a GDI printer work with one of the 'foo2*' drivers ( example: foo2zjs, depending on the make and model ).
Things are a little better today with quite a few of the GDI Printers being supported on Linux by the Mfgs.
Anyhow, this is why I was interested in vonbiber's SlackBuild.
-- kjh
Last edited by kjhambrick; 09-06-2016 at 07:18 AM.
Reason: note the emulation
Are you running Slackware 14.2 32-bit or do you run Slackware64 + Multilib ?
The reason I ask is that there are three 32-bit ELF Programs in the resulting SlackBuild that won't run on a pure 64-bit System.
Thanks !
-- kjh
I am running slackware64 + multilib.
I mentioned earlier in another post that the drivers were 32-bit,
so you need to install at least glibc-solibs*_multilib-x86_64*, cups-compat32
from alien bob if you have a 64-bit system.
I mentioned that in http://vonbiber.byethost17.com/slack...00d/x86_64.txt
@ vonbiber, Thank you for the links, I hope to someday get my Brother 7030 configured in Slackware.
I do have a question though, perhaps someone could clarify. Looking at the Brother site I see the drivers are available as RPM or DEB packages. Reading the >Slack Docs. I recall seeing that the default file system was tnz ( I could be wrong on that) But I am assuming this is why the necessity
of Slack Builds ie: to convert the binaries to a file that is readable by Slackware?
Last edited by offgridguy; 09-06-2016 at 03:46 PM.
Reason: typo
@ vonbiber, Thank you for the links, I hope to someday get my Brother 7030 configured in Slackware.
I do have a question though, perhaps someone could clarify. Looking at the Brother site I see the drivers are available as RPM or DEB packages. Reading the >Slack Docs. I recall seeing that the default file system was tnz ( I could be wrong on that) But I am assuming this is why the necessity
of Slack Builds ie: to convert the binaries to a file that is readable by Slackware?
rpm, deb, txz is a way of packing files together: txz is the resulting of applying first the
command 'tar' then 'xz'. The rpm and deb packages can be installed directly on debian-type systems (deb)
or fedora-type ones (rpm). For slackware, you need to unpack them, move files around,
edit some files, ...
Did you find the drivers for your printer (either rpm or deb)? If so, post me the link
and I'll see if I (or someone else) can help you with it.
rpm, deb, txz is a way of packing files together: txz is the resulting of applying first the
command 'tar' then 'xz'. The rpm and deb packages can be installed directly on debian-type systems (deb)
or fedora-type ones (rpm). For slackware, you need to unpack them, move files around,
edit some files, ...
Did you find the drivers for your printer (either rpm or deb)? If so, post me the link
and I'll see if I (or someone else) can help you with it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.