LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-24-2016, 03:28 PM   #46
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 6,121

Rep: Reputation: 3814Reputation: 3814Reputation: 3814Reputation: 3814Reputation: 3814Reputation: 3814Reputation: 3814Reputation: 3814Reputation: 3814Reputation: 3814Reputation: 3814

Did you installpkg cups-filters-compat32? I see if in your file list, but not in your /var/log/packages/
 
Old 09-24-2016, 07:23 PM   #47
offgridguy
Senior Member
 
Registered: Nov 2015
Location: Alberta Canada
Distribution: Windows10, Debian
Posts: 1,109

Rep: Reputation: 147Reputation: 147
Thank you, no I hadn't done that.
I have now installed it, and now have this

Quote:
bash-4.2# cd /home/slak/brother
bash-4.2# chmod +x brotherdcp7030.SlackBuild
bash-4.2# ./brotherdcp7030.SlackBuild
extracting files from /home/slak/brother/cupswrapperDCP7030-2.0.2-1.i386.rpm ...
71 blocks
... done
extracting files from /home/slak/brother/brdcp7030lpr-2.0.2-1.i386.rpm ...
243 blocks
... done


Slackware package maker, version 3.14159.

Searching for symbolic links:

No symbolic links were found, so we won't make an installation script.
You can make your own later in ./install/doinst.sh and rebuild the
package if you like.

This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!

Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? n

Creating Slackware package: /home/slak/brother/brotherdcp7030-2.0.2_1-i386-1_vbi.txz

./
install/
install/doinst.sh
install/slack-desc
usr/
usr/share/
usr/share/Brother/
usr/share/Brother/cupswrapper/
usr/share/Brother/cupswrapper/brcupsconfig3
usr/share/Brother/inf/
usr/share/Brother/inf/brDCP7030func
usr/share/Brother/inf/paperinf
usr/share/Brother/inf/setupPrintcap
usr/share/Brother/inf/brDCP7030rc
usr/share/Brother/inf/braddprinter
usr/share/Brother/lpd/
usr/share/Brother/lpd/psconvert2
usr/share/Brother/lpd/rawtobr2
usr/share/Brother/lpd/filterDCP7030
usr/share/cups/
usr/share/cups/model/
usr/share/cups/model/DCP7030.ppd
usr/doc/
usr/doc/brotherdcp7030/
usr/doc/brotherdcp7030/SlackBuild/
usr/doc/brotherdcp7030/SlackBuild/readme.txt
usr/doc/brotherdcp7030/SlackBuild/brotherdcp7030.SlackBuild
usr/bin/
usr/bin/brprintconflsr2
usr/bin/brprintconfiglpr2
usr/lib/
usr/lib/libbrcomplpr2.so
usr/lib/cups/
usr/lib/cups/filter/
usr/lib/cups/filter/brlpdwrapperDCP7030

Slackware package /home/slak/brother/brotherdcp7030-2.0.2_1-i386-1_vbi.txz created.


dcp_7030 (driver for the Brother DCP-7030 printer)

This package contains the lpr printer driver and
the CUPS wrapper for the Brother DCP-7030 laser printer.
Note that the binaries here are 32-bit. If you want to run this
on a 64-bit slackware system, you need to install at least these
packages (from Alien Bob): cups-compat32*, cups-filters-compat32*,
and glibc-solibs*.

http://support.brother.com/g/b/


package brotherdcp7030-2.0.2_1-i386-1_vbi.txz successfully created in /home/slak/brother
bash-4.2# ls /var/log/packages/cups*compat32* /var/log/packages/glibc-solibs-*multilib* 2>/dev/null
/var/log/packages/cups-compat32-2.1.4-x86_64-1compat32
/var/log/packages/cups-filters-compat32-1.9.0-x86_64-2compat32
/var/log/packages/glibc-solibs-2.23_multilib-x86_64-1alien
bash-4.2# installpkg brotherdcp7030-2.0.2_1-i386-1_vbi.txz
Verifying package brotherdcp7030-2.0.2_1-i386-1_vbi.txz.
Installing package brotherdcp7030-2.0.2_1-i386-1_vbi.txz:
PACKAGE DESCRIPTION:
# dcp_7030 (driver for the Brother DCP-7030 printer)
#
# This package contains the lpr printer driver and
# the CUPS wrapper for the Brother DCP-7030 laser printer.
# Note that the binaries here are 32-bit. If you want to run this
# on a 64-bit slackware system, you need to install at least these
# packages (from Alien Bob): cups-compat32*, cups-filters-compat32*,
# and glibc-solibs*.
#
# http://support.brother.com/g/b/
#
Executing install script for brotherdcp7030-2.0.2_1-i386-1_vbi.txz.
Package brotherdcp7030-2.0.2_1-i386-1_vbi.txz installed.

bash-4.2# chmod +x /etc/rc.d/rc.cups
bash-4.2# /etc/rc.d/rc.cups restart
cups: restarted scheduler. [ OK ]
bash-4.2# ^C
bash-4.2#
Still won't print though.
 
Old 09-25-2016, 07:51 AM   #48
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 470

Original Poster
Rep: Reputation: 105Reputation: 105
Now that your package is installed and /etc/rc.d/rc.cups has been made executable,
the next step is to configure CUPS:

Open a web browser and go to
http://localhost:631

Click on 'Adding Printers and Classes' (under CUPS for Administrators)
(You'll be prompted to login as root)

Your printer model should appear on the list ...
 
1 members found this post helpful.
Old 09-25-2016, 01:36 PM   #49
offgridguy
Senior Member
 
Registered: Nov 2015
Location: Alberta Canada
Distribution: Windows10, Debian
Posts: 1,109

Rep: Reputation: 147Reputation: 147
Thank you, I have done this, my printer is powered on and connected via usb.
It is recognized and I have added it. When I open Libreoffice and type a test page
it unfortunately does not print.

I do find this though,if that helps.

Quote:
▼ Queue Name ▼ Description Location Make and Model Status
Brother_DCP-7030 Brother DCP-7030 office Brother DCP7030 for CUPS Idle - "File "/usr/lib64/cups/filter/brlpdwrapperDCP7030" not available: No such file or directory"


Since my lib64/cups/filter/brlpdwrapperDCP7030 is not in the /usr/ directory, but in
/home/slak/brother directory, I assume this is the problem.
Should I redo this by moving the downloads to the /usr/ directory, and installing the cups
filter in this directory?

I really appreciate the effort on your part to help me with this.

Last edited by offgridguy; 09-25-2016 at 01:39 PM.
 
Old 09-25-2016, 05:28 PM   #50
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 470

Original Poster
Rep: Reputation: 105Reputation: 105
Quote:
Originally Posted by offgridguy View Post
Since my lib64/cups/filter/brlpdwrapperDCP7030 is not in the /usr/ directory, but in
/home/slak/brother directory, I assume this is the problem.
Should I redo this by moving the downloads to the /usr/ directory, and installing the cups
filter in this directory?
No, brlpdwrapperDCP7030 is actually in /usr/lib/cups/filter but it's expected in /usr/lib64/cups/filter

My bad, it should have been installed in /usr/lib64/cups/filter/brlpdwrapperDCP7030
instead of usr/lib/cups/filter/brlpdwrapperDCP7030
I'll fix this later in the SlackBuild
In the meantime, could you do this (as root)
Code:
cd /usr/lib64/cups/filter
ln -s /usr/lib/cups/filter/brlpdwrapperDCP7030
then try again and let me know if you can print
 
2 members found this post helpful.
Old 09-25-2016, 06:01 PM   #51
offgridguy
Senior Member
 
Registered: Nov 2015
Location: Alberta Canada
Distribution: Windows10, Debian
Posts: 1,109

Rep: Reputation: 147Reputation: 147
Thumbs up Success

@ vonbiber, success

To say that I am grateful would be an understatement. A simple thank you is hardly enough.
I couldn't have done this without your help. I installed my first Slackware OS about 10 months
ago, it has taken me until now to accomplish this objective.
Just within this past week, I have finally learned how to install LibreOffice and now more
importantly it can drive my printer. These functions change Slackware from an email checker to
a useful office tool, for me.
I am a happy man.

Last edited by offgridguy; 09-25-2016 at 06:02 PM.
 
1 members found this post helpful.
Old 09-26-2016, 03:51 AM   #52
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 470

Original Poster
Rep: Reputation: 105Reputation: 105
Glad to hear that, offgridguy

I uploaded the new version of the SlackBuild here:
http://vonbiber.byethost17.com/slack...030.SlackBuild

For those of you who want to download all the necessary files to build (SlackBuild + RPM files),
I bundled everything in:
http://vonbiber.byethost17.com/slack...dcp7030.tar.xz
 
2 members found this post helpful.
Old 10-05-2016, 06:15 PM   #53
joenew
Member
 
Registered: Mar 2010
Distribution: slackware 14.2 64bit
Posts: 117

Rep: Reputation: 20
Hi all,
thank you vonbiber for your slackbuild, kjhambrick for your contribute and all others slackers have wrote in this topic.

I'm to make my Brother HL-2035 working on Slackware64 14.2.
On my previous slackware, 14.0 32bit, I had installed brother drivers years ago and I had used rpm packages for a very similar model HL-2030 as suggested by brother support page:
http://support.brother.com/g/s/id/li...n.html#HL-2035

Now, I have a new system, with an other arch and so on, but... the big news seems to be on the brother site:
while for you DCP-7030, brother releases rpm packages only (or deb, but I think they are just 32bit precompiled), for my brother printer model they release a source pkg, let's compare following two links:
http://support.brother.com/g/b/downl...030_all&os=127
http://support.brother.com/g/b/downl...2035_as&os=127

As you can see for hl-2035 is released just one file:
Code:
CUPS wrapper Printer driver Source Codes
And one other, I think a tool to manage installation of the drivers: Driver Install Tool (The tool will install LPR, CUPSwrapper driver...).

I've downloaded the package and this is its content:
Code:
$ tree brother-laser-cups-driver-2.0.1-1
brother-laser-cups-driver-2.0.1-1
├── Copying
├── brcupsconfig3
│** ├── brcups_commands.h
│** └── brcupsconfig.c
└── scripts
    ├── cupswrapperDCP7010-2.0.1
    ├── cupswrapperDCP7020-2.0.1
    ├── cupswrapperDCP7025-2.0.1
    ├── cupswrapperDCP8060-2.0.1
    ├── cupswrapperDCP8065DN-2.0.1
    ├── cupswrapperFAX2810-2.0.1
    ├── cupswrapperFAX2820-2.0.1
    ├── cupswrapperFAX2920-2.0.1
    ├── cupswrapperHL2030-2.0.1
    ├── cupswrapperHL2040-2.0.1
    ├── cupswrapperHL2070N-2.0.1
    ├── cupswrapperHL5240-2.0.1
    ├── cupswrapperHL5250DN-2.0.1
    ├── cupswrapperHL5270DN-2.0.1
    ├── cupswrapperHL5280DW-2.0.1
    ├── cupswrapperMFC7220-2.0.1
    ├── cupswrapperMFC7225N-2.0.1
    ├── cupswrapperMFC7420-2.0.1
    ├── cupswrapperMFC7820N-2.0.1
    ├── cupswrapperMFC8460N-2.0.1
    ├── cupswrapperMFC8660DN-2.0.1
    ├── cupswrapperMFC8860DN-2.0.1
    └── cupswrapperMFC8870DW-2.0.1

2 directories, 26 files
What do you think about?
Is it all I need to make my print working?
I don't see any driver related to lpr here... I suspect there is some other driver package needed..

I'd like to create a slackbuild like vonbiber, cause I use to install software through pkgtools on my slack system. Could you help me to understand HL-2035 support web page?

Last edited by joenew; 10-05-2016 at 06:17 PM.
 
Old 10-05-2016, 07:36 PM   #54
FredGSanford
Senior Member
 
Registered: Nov 2005
Location: USA
Distribution: Mageia Cauldron - VoidLinux - Devuan
Posts: 1,098
Blog Entries: 5

Rep: Reputation: 182Reputation: 182
This is some good information. I have a Brother MFC-5440cn printer and run Salix OS (slackware based). I have gotten the printer setup through Cups webpage but nothing prints out. It did work when I used the 32 bit version OS. I've also ran into the "nothing prints" with other 64 bit distros, such as Arch, Crux besides Salix.

I'll go over this thread tomorrow and see if something is missing, such as a symlink.

Thanks.
 
Old 10-06-2016, 02:07 AM   #55
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 470

Original Poster
Rep: Reputation: 105Reputation: 105
I made a few minor adjustments to the Brother drivers packages (HLL2300D and DCP7030):
http://vonbiber.byethost17.com/slack...otherhll2300d/
http://vonbiber.byethost17.com/slack...uilds/dcp7030/

@FredGSanford
Code:
I have a Brother MFC-5440cn printer and run Salix OS (slackware based). I have gotten the printer setup through Cups webpage but nothing prints out. It did work when I used the 32 bit version OS. I've also ran into the "nothing prints" with other 64 bit distros
The binaries are probably 32-bit. To be able to use them on a 64-bit system you'll need some 32-bit compatible
libraries (see details here:
http://vonbiber.byethost17.com/slackware/SlackBuilds/)
 
Old 10-06-2016, 04:30 AM   #56
joenew
Member
 
Registered: Mar 2010
Distribution: slackware 14.2 64bit
Posts: 117

Rep: Reputation: 20
Any hints about HL-2035?
http://support.brother.com/g/b/downl...2035_as&os=127
 
Old 10-06-2016, 06:30 AM   #57
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 14.2 + Multilib
Posts: 1,483

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
joenew --

No help here, but ...

I took a quick look at the source file that you expanded via the `tree` command in your first post: brother-laser-cups-driver-2.0.1-1.gz

Interestingly, Brother has apparently released something completely different for the printers in the scripts/ directory than the other two printers for which vonbiber has created SlackBuilds.

1. While they provided the source code for brcupsconfig, and it compiles cleanly on a 64-bit ARCH ( no warnings / no errors ), there is no Makefile, and I can't guarantee that the source will work as a 64-bit ELF Program ( this depends on whether they do anything fancy like bit-twiddling and alignment of structures and etc, and I've not looked thru the source files ( brcups_commands.h and brcupsconfig.c ) to see what they're doing ).

[NOTE]
I have not thoroughly studied the `scripts` in the scripts/ directory.
Therefore, I cannot recommend running them without further study.
They may be fine or they may bork a perfectly good Slackware System.
I don't know without further study / testing.
[/NOTE]


2. Having said that, I SCANNED scripts/cupswrapperHL2030-2.0.1

The script SEEMS to generate a .ppd file and an lpdwrapper script via a pair of `here-documents` and then it installs the two files for the HL-2030 printer and finally it issues lp-commands to install the printer.

I don't know that the script will work on a Slackware System 'as is' ... I did notice that the script makes assumptions about your Printer Name for the lp-commands which may-or-may-not be OK.

Then, there is no script for your HL-2035 and the Printer Model and CUPS Printer Name is hard-coded in each script ...

You may be able to copy one of the scripts, verify what it does and edit the code for your HL-2035 and try it out ?

I don't know exactly what-all the scripts do and where they install files, etc to run them on my system and I am too busy with work right now to thoroughly dissect the scripts.

I did check the specs for your HL-2035

It is a GDI Printer so CUPS will need a Driver of some sort ...

Finally, I don't have any Brother Printers myself, but vonbiber's SlackBuilds will be very handy for a few Customers at work who do have them ( once we start converting them from CentOS 6 to Slackware )

-- kjh
Code:
#
# I did compile the C-Program in brcupsconfig3.
#
# 1. this is the content of brcupsconfig3/ before:
#
# ls -la

total 40
drwxr-xr-x 2 root root  4096 Apr 15  2007 .
drwxr-xr-x 4 root root  4096 Apr 15  2007 ..
-r-xr--r-- 1 root root 13478 Apr 16  2007 brcups_commands.h
-r-xr--r-- 1 root root 15640 Apr 16  2007 brcupsconfig.c
#
# 2. compile brcupsconfig.c 
#
# gcc -o brcupsconfig brcupsconfig.c && strip brcupsconfig
#
# 3. this is the content of brcupsconfig3/ after compile ; strip 
#
# ls -la

total 64
drwxr-xr-x 2 root root  4096 Oct  6 05:43 .
drwxr-xr-x 4 root root  4096 Apr 15  2007 ..
-r-xr--r-- 1 root root 13478 Apr 16  2007 brcups_commands.h
-rwxr-xr-x 1 root root 22384 Oct  6 05:43 brcupsconfig
-r-xr--r-- 1 root root 15640 Apr 16  2007 brcupsconfig.c
#
# 4. this what we got for brcupsconfig
#
# file brcupsconfig

brcupsconfig: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, stripped
 
Old 10-06-2016, 07:15 AM   #58
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 470

Original Poster
Rep: Reputation: 105Reputation: 105
Quote:
Originally Posted by joenew View Post
Well, some pieces of the puzzle here.

I looked at the source files of the cupswrapper and came up with this:
First:
Code:
tar xf brother-laser-cups-driver-2.0.1-1.tar.gz
cd brother-laser-cups-driver-2.0.1-1/brcupsconfig3
Then I wrote a script (compile.sh) with the following contents
Code:
#!/bin/sh

ARCH=$(uname -m)
PARCH=$ARCH
LIBDIRSUFFIX=""
case "$ARCH" in
  i586|i686) SLKCFLAGS="-O2 -march=$ARCH -mtune=i686"; PARCH=i586;;
  x86_64) SLKCFLAGS="-O2 -fPIC"; LIBDIRSUFFIX=64;;
  *) echo "'$ARCH': this architecture is not recognized"; exit 1;;
esac

sed -i 's?/usr/local?/usr/share/?' brcupsconfig.c || exit 1

cat > Makefile<<EOM
CFLAGS = $SLKCFLAGS
bin = brcupsconfig3

bin: brcups_commands.h brcupsconfig.c
        gcc brcupsconfig.c \$(CFLAGS) -s -o \$(bin)
EOM

make
Then ran the script
Code:
chmod +x compile.sh
./compile.sh
This produces a binary named 'brcupsconfig3'

If you go to this address:
https://www.openprinting.org/driver/hl1250
then
Select printer: Brother-Hl-2035
then
Generate PPD file
you'll be able to download:
Brother-HL-2035-hl1250.ppd

Last edited by vonbiber; 10-06-2016 at 07:16 AM. Reason: typo
 
1 members found this post helpful.
Old 10-06-2016, 07:26 AM   #59
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 14.2 + Multilib
Posts: 1,483

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Good info vonbiber.

Especially the openprinting.org link for the .PPD Generator !

One Q: Your wrapper script compiles brcupsconfig3 into the current directory.

Where should brcupsconfig3 be installed for CUPS ( 32 bit vs 64 bit ) ?

Or did I miss something ( again ) ?

Thanks again.

-- kjh

p.s. I was hoping you would jump in here ... Thanks AGAIN !

Last edited by kjhambrick; 10-06-2016 at 07:27 AM. Reason: add p.s.
 
Old 10-06-2016, 07:30 AM   #60
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 889

Rep: Reputation: 772Reputation: 772Reputation: 772Reputation: 772Reputation: 772Reputation: 772Reputation: 772
Hello,


Quote:
Originally Posted by joenew View Post
This model should works with the included driver (ie Brother HL2035 - Cups+gutenprint). If that does not work, you can also try, as stated here, with a PPD that you can generate from this page :
  • In select printer, choose Brother HL-2035
  • if required, check GUI texts limited to 39 characters
  • click on Generate PPD file
  • copy the PPD in /usr/share/cups/model

Start cups web interface at http://localhost:631, then, go in Administration > Add printer. Select your printer, then continue, and in Model, select Brother-HL2035 Foomatic/hl1250 (en)

Note that after having troubles with Brother driver, I did the same with my HL-1230 (pcl5e) for which I use the driver for HL-1240, and all is working well now.

[edit]
Voniber was faster
[/edit]
--
SeB

Last edited by phenixia2003; 10-06-2016 at 07:32 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 printer drivers randyvh Linux - Newbie 5 10-09-2015 06:01 PM
Brother DCP-J4110DW printer-Drivers Nuffield Linux - Newbie 2 02-06-2015 06:59 PM
Drivers for Brother MFC J430 w printer jbander Linux - Hardware 1 07-26-2013 07:44 PM
Unable to install Brother printer drivers siouxzieq Linux - Hardware 8 01-04-2012 04:35 PM
Brother Printer Drivers Site Down Michael Johnson Linux - General 1 07-21-2005 01:46 AM

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

All times are GMT -5. The time now is 01:59 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration