LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-17-2024, 02:04 PM   #1
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Rep: Reputation: 45
Brother rpm driver fails to install. How do I trick it?


I have a Brother DCP-L3560CDW printer. Drivers are published in rpm and deb format. I picked rpm for no reason.


Code:
brother-udev-rule-type1-1.0.2-0.noarch.rpm
brscan5-1.3.1-0.x86_64.rpm
linux-brprinter-installer-2.2.3-1*
brscan-skey-0.3.2-0.x86_64.rpm
dcpl3560cdwpdrv-3.5.1-1.i386.rpm
The instructions say to gunzip and run the linux installer, but omitted making the file executable.

Code:
# ./linux-brprinter-installer-2.2.3-1 
Input model name ->DCP-L3560CDW

You are going to install following packages.
   dcpl3560cdwpdrv-3.5.1-1.i386.rpm
   brscan5-1.3.1-0.x86_64.rpm
   brscan-skey-0.3.2-0.x86_64.rpm
OK? [y/N] ->y

rpm -ihv --nodeps --replacefiles --replacepkgs dcpl3560cdwpdrv-3.5.1-1.i386.rpm
warning: Generating 18 missing index(es), please wait...
Verifying...                          ########################################
Preparing...                          ########################################
Updating / installing...
dcpl3560cdwpdrv-3.5.1-1               ########################################
mkdir: cannot create directory ‘/var/spool/lpd/dcpl3560cdw’: No such file or directory
chown: cannot access '/var/spool/lpd/dcpl3560cdw': No such file or directory
chgrp: cannot access '/var/spool/lpd/dcpl3560cdw': No such file or directory
chmod: cannot access '/var/spool/lpd/dcpl3560cdw': No such file or directory
lpadmin -p DCPL3560CDW -E -v usb://dev/usb/lp0 -P /usr/share/cups/model/Brother/brother_dcpl3560cdw_printer_en.ppd
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
#
Will you specify the Device URI? [Y/n] ->

Slackware don't seem to have a lpd-directory where Red Hat seem to have. Can I possibly move files around manually? Or create lpd in /var/spool? Maybe another driver would help? Or do I have a paper weight?
 
Old 02-17-2024, 02:42 PM   #2
Pixxt
Member
 
Registered: May 2008
Distribution: Slackware, Debian,
Posts: 284

Rep: Reputation: 185Reputation: 185
Thanks to Hazel for the blog post.

This helped me get my Brother printer/fax to work under Slackware

https://www.linuxquestions.org/quest...t-linux-37620/

You might have to tinker with the steps, but the post helped me get the printer working.
 
Old 02-17-2024, 02:57 PM   #3
dhalliwe
Member
 
Registered: Mar 2022
Location: Ontario, Canada
Distribution: Slackware
Posts: 162

Rep: Reputation: 154Reputation: 154
I can't find any info on the model # your provide. What sort of connection does it use?

I have a Brother MFC-L8900CDW colour laser printer, which connects via the LAN. I spent quite a bit of time figuring out where the DEB or RPM files wanted to end up, and how to get them to go where Slackware wanted them to be. I did manage to get the driver working, but a few features were glitchy/non-functional.

In the end, I installed the printer as a generic IPP printer. Still one or two features not accessible that way, but I haven't had the time to try to sort out why one or the other driver won't play ball.

I did keep notes on the things I tried/managed, but not in a coherent document.

Slackware 15.0 stable, with XFCE4 as my desktop (if it makes any difference).
 
Old 02-17-2024, 03:31 PM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,217

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
I installed a Brother HL-L2320D using this How to:

http://docs.slackware.com/howtos:har...r_installation

The printer works fine on 15.0 and current. The only difference is the 32 bit files you need, depending if its 15.0 or current.
 
Old 02-17-2024, 05:40 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
I guess no harm is done with
# mkdir -p /var/spool/lpd

Then the package installs OK :
# rpm -Uvh --nodeps dcpl3560cdwpdrv-3.5.1-1.i386.rpm

... The /var files, and files in /opt can be copied to more relevant locations if required. E.g. files.ppd are usually found in /etc/cups/ppd/
( The ppd file is /opt/brother/Printers/dcpl3560cdw/cupswrapper/brother_dcpl3560cdw_printer_en.ppd )

-

Last edited by knudfl; 02-17-2024 at 06:35 PM.
 
1 members found this post helpful.
Old 02-18-2024, 06:40 AM   #6
_peter
Member
 
Registered: Sep 2014
Location: paris
Distribution: slackware
Posts: 314

Rep: Reputation: Disabled
Slackware does have a directory /var/spool/lpd once the printer installation has completed.
Code:
ls /var/spool/lpd/
MFCL2710DW/    < - -  brother printer that works at my office.
You have to run bash while invoking the script as root.

Code:
#bash linux-brprinter-installer-2.2.3-1 DCP-L3560CDW
You are going to install following packages.
   dcpl3560cdwpdrv-3.5.1-1.i386.rpm
   brscan5-1.3.1-0.x86_64.rpm
   brscan-skey-0.3.2-0.x86_64.rpm
OK? [y/N] ->y

rpm -ihv --nodeps --replacefiles --replacepkgs dcpl3560cdwpdrv-3.5.1-1.i386.rpm
Verifying...                          ########################################
Preparing...                          ########################################
Updating / installing...
dcpl3560cdwpdrv-3.5.1-1               ########################################
lpadmin -p DCPL3560CDW -E -v usb://dev/usb/lp0 -P /usr/share/cups/model/Brother/brother_dcpl3560cdw_printer_en.ppd
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
#
Will you specify the Device URI? [Y/n] ->


You ran the manufacturer script linux-brprinter-installer-2.2.3-1 as root for your printer ?

Code:
 Step1. Download the tool.(linux-brprinter-installer-*.*.*-*.gz)

The tool will be downloaded into the default "Download" directory.
(The directory location varies depending on your Linux distribution.)
e.g. /home/(LoginName)/Download

Step2. Open a terminal window.

Step3. Go to the directory you downloaded the file to in the last step. By using the cd command.

e.g. cd Downloads

Step4. Enter this command to extract the downloaded file:

Command: gunzip linux-brprinter-installer-*.*.*-*.gz

e.g. gunzip linux-brprinter-installer-2.1.1-1.gz

Step5. Get superuser authorization with the "su" command or "sudo su" command.

Step6. Run the tool:

Command: bash linux-brprinter-installer-*.*.*-* Brother machine name
e.g. bash linux-brprinter-installer-2.1.1-1 MFC-J880DW

Step7. The driver installation will start. Follow the installation screen directions.
 

 When you see the message "Will you specify the DeviceURI ?",

 For USB Users: Choose N(No)
 For Network Users: Choose Y(Yes) and DeviceURI number.

The install process may take some time. Please wait until it is complete.

Last edited by _peter; 02-19-2024 at 01:39 PM. Reason: edited
 
Old 02-18-2024, 11:01 AM   #7
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by knudfl View Post
I guess no harm is done with
# mkdir -p /var/spool/lpd
I didn't use -p
# mkdir /var/spool/lpd
Will that make a big difference?


Quote:
Then the package installs OK :
# rpm -Uvh --nodeps dcpl3560cdwpdrv-3.5.1-1.i386.rpm
I just reran the installer

Code:
# ./linux-brprinter-installer-2.2.3-1 DCP-L3560CDW
You are going to install following packages.
   dcpl3560cdwpdrv-3.5.1-1.i386.rpm
   brscan5-1.3.1-0.x86_64.rpm
   brscan-skey-0.3.2-0.x86_64.rpm
OK? [y/N] ->y

rpm -ihv --nodeps --replacefiles --replacepkgs dcpl3560cdwpdrv-3.5.1-1.i386.rpm
Verifying...                          ########################################
Preparing...                          ########################################
Updating / installing...
dcpl3560cdwpdrv-3.5.1-1               ########################################
ln: failed to create symbolic link '/opt/brother/Printers/dcpl3560cdw/lpd/brdcpl3560cdwfilter': File exists
ln: failed to create symbolic link '/opt/brother/Printers/dcpl3560cdw/lpd/brprintconf_dcpl3560cdw': File exists
lpadmin -p DCPL3560CDW -E -v usb://dev/usb/lp0 -P /usr/share/cups/model/Brother/brother_dcpl3560cdw_printer_en.ppd
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
#
Will you specify the Device URI? [Y/n] ->
Is it ok if file exists already?

Code:
0: beh
1: ipp
2: https
3: socket
4: hp
5: http
6: cups-brf:/
7: lpd
8: ipps
9: smb
10: hpfax
11 (I): Specify IP address.
12 (A): Auto. (usb://dev/usblp0)

select the number of destination Device URI. ->11

 enter IP address ->192.168.1.133                                                   
lpadmin -p DCPL3560CDW -v socket://192.168.1.133 -E
Test Print? [y/N] ->y

wait 5s.
lpr -P DCPL3560CDW /usr/share/cups/data/testprint
You are going to install following packages.
   brscan5-1.3.1-0.x86_64.rpm
rpm -ihv --nodeps --replacefiles --replacepkgs brscan5-1.3.1-0.x86_64.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:brscan5-1.3.1-0                  ################################# [100%]
This software is based in part on the work of the Independent JPEG Group.
You are going to install following packages.
   brscan-skey-0.3.2-0.x86_64.rpm
rpm -ihv --nodeps --replacefiles --replacepkgs brscan-skey-0.3.2-0.x86_64.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:brscan-skey-0.3.2-0              ################################# [100%]
brsaneconfig5 -a name=DCP-L3560CDW model=DCP-L3560CDW ip=192.168.1.133
The printer started buzzing for a bit, but no test page came out.

Quote:
... The /var files, and files in /opt can be copied to more relevant locations if required. E.g. files.ppd are usually found in /etc/cups/ppd/
( The ppd file is /opt/brother/Printers/dcpl3560cdw/cupswrapper/brother_dcpl3560cdw_printer_en.ppd )

-
Maybe I will tidy things up, but probably not. If I get it working, Ill be happy.

In localhost:631, CUPS reports it as installed, idle and accepting jobs. Same thing though. buzzing for a bit and then nothing.

As shown, the installer installs all the files it finds. Driver for printer, scanner and scanner key.

Xsane finds the printer too and acquiring the preview worked fine, but only if the paper was fed through the top. Actually scanning failed because now the feed tray was empty ...
 
Old 02-18-2024, 11:05 PM   #8
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,372

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Quote:
dcpl3560cdwpdrv-3.5.1-1.i386.rpm
Note the .i386 in the name. This suggests compilation for 32 bit architecture. Follow the instructions in the link in post#4 for installing the multilib glibc-solibs package on a 64 bit system.

Even better, follow all the instructions in that link. You will end up with proper Slackware packages that can be cleanly installed and uninstalled.

Last edited by allend; 02-18-2024 at 11:08 PM.
 
1 members found this post helpful.
Old 02-19-2024, 01:55 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #8, @allend

The package dcpl3560cdwpdrv-3.5.1-1.i386.rpm contains the 32bit and the 64 bit {brdcpl3560cdwfilter, brprintconf_dcpl3560cdw} :
Code:
/opt/brother/Printers/dcpl3560cdw/lpd/
├── i686
│   ├── brdcpl3560cdwfilter
│   └── brprintconf_dcpl3560cdw
└── x86_64
    ├── brdcpl3560cdwfilter
    └── brprintconf_dcpl3560cdw
 
Old 02-19-2024, 05:09 AM   #10
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,372

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Well, I got that wrong.
 
Old 02-25-2024, 01:14 AM   #11
Pixxt
Member
 
Registered: May 2008
Distribution: Slackware, Debian,
Posts: 284

Rep: Reputation: 185Reputation: 185
If OP is using current or is on 15.0 and wants to install avahi from slackbuilds, since with avahi installed, CUPS supports driverless printing. It will find your printer on the network if it's connected and print and scan both work without the hassle of finding and installing print drivers.
 
Old 02-25-2024, 11:49 PM   #12
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,372

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
On Slackware 15.0, it is not necessary to install avahi to set up the CUPS everywhere driver for a network printer. The required service discovery can be done using nmap.

I have looked at the Brother procedure for installing the Brother DCP-L3560CDW.
It requires the use of the linux-brprinter-installer-2.2.3-1 tool, that can be downloaded and extracted as per the instructions on the Brother page. This tool also handles scanner installation.

Initially when I ran the tool, I saw errors. Apparently the tool expects a /var/spool/lpd directory to exist. It also expects CUPS to running, otherwise the lpadmin tool fails. On completion, uninstaller scripts are created. The uninstall is not clean, leaving files behind. When I reran the installer tool after manually creating a /var/spool/lpd directory, the printer installation appeared to work OK. I did not attempt scanner installation, just answering no when prompted. Without the actual hardware, I cannot test any further.
 
1 members found this post helpful.
Old 02-27-2024, 10:47 AM   #13
mw.decavia
Member
 
Registered: Feb 2024
Distribution: Slackware64-15 & Afterstep , oh my
Posts: 78

Rep: Reputation: 8
I am sorry that this is not a direct answer to your question, but

I have been using a Brother hl-l8360cdw, which is now 4 years old. Not the newest tech.
It includes ftp-printing = it is running it's own ftp server, and any client pc wanting to print needs only to transfer (via ftp) a file. The file formats it accepts include .ps , .pdf , and others.

Probably other Brother printers might include ftp printing too.
Perhaps Cups can be configured for ftp-printing? That protocol has been around for a long time.
 
Old 03-03-2024, 12:21 PM   #14
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Original Poster
Rep: Reputation: 45
Many thanks for all the suggestions, and sorry for my rare responses. Life is crazy.

I still haven't got the printer working. I'm logged in to it. I can get it to print reports of itself.

After trying to send a test page in Cups, and then cancelling it:
In localhost:631 (cups), it is DCPL3560CDW (Processing, Accepting Jobs, Not Shared)

"Show completed jobs"
canceled at
sön 3 mar 2024 19:13:47
"Unable to locate printer "BRWC894023D1294"."

Why is it unable to be located?
Is there a point in trying to reinstall the driver?
Do I need to symlink anything?
 
Old 03-03-2024, 01:28 PM   #15
dhalliwe
Member
 
Registered: Mar 2022
Location: Ontario, Canada
Distribution: Slackware
Posts: 162

Rep: Reputation: 154Reputation: 154
You have not yet told us how you are connecting to the printer (network, USB?). That may be important.

As I mentioned earlier, I had issues getting a Brother MFC-L8900CDW working. Here are a few things from my notes:
  • CUPS expects printer filter information in directory /usr/lib/cups/filter.
  • The Brother installation placed these files in /opt/brother/Printers/mfcl8900cdw/cupswrapper.
  • I created links in /usr/lib/cups/filter for the three files:
  • --- brother_lpdwrapper_mfcl8900cdw
  • --- brother_mfcl8900cdw_printer_en.ppd
  • --- cupswrappermfcl8900cdw
  • This still didn't work, so I turned on debugging log using “cupsctl –debug-logging” and restarted cups using “/etc/rc.d/rc.cuip restart”.
  • When I tried printing again, I found an error log entry saying /opt/brother/Printers/mfcl8900cdw/lpd/brmfcl8900cdwfilter: No such file or directory.
  • The file (plus one other) did exist one directory down:
  • --- /opt/brother/Printers/mfcl8900cdw/lpd/x86_64
  • I created two more links:
  • --- brmfcl8900cdwfilter -> x86_64/brmfcl8900cdwfilter
  • --- brprintconf_mfcl8900cdw -> x86_64/brprintconf_mfcl8900cdw

...and then I could print.

The files you need will have names matching your printer model (not mine). Try searching for relevant files and making those links. Turn on CUPS debugging and check the log for additional details on where it fails. That will help identify where it is looking, and for what files. Find where Brother placed those files and create links where CUPS is expecting them.
 
1 members found this post helpful.
  


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
Install brother printer - Brother printer support smithk Linux - Software 3 10-07-2020 03:30 PM
[SOLVED] Brother printer HL-2270DW driver - Brother solutions offer four - which one? juneymoon Linux - Software 9 06-15-2013 04:52 PM
[SOLVED] installation of a brother hl2170w from brother francois.e Slackware 24 10-17-2011 09:44 PM
vim :gui trick and undo-trick dazdaz Linux - Software 3 09-10-2007 02:45 PM

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

All times are GMT -5. The time now is 11:46 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
Open Source Consulting | Domain Registration