LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-2024, 09:45 PM   #16
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

From my notes:
When the rpm is extracted, I see (on 64bit)
Code:
tree /opt/brother/Printers/dcpl3560cdw/
/opt/brother/Printers/dcpl3560cdw/
├── LICENSE_ENG.txt
├── LICENSE_JPN.txt
├── cupswrapper
│** ├── brother_dcpl3560cdw_printer_en.ppd
│** ├── brother_lpdwrapper_dcpl3560cdw
│** └── cupswrapperdcpl3560cdw
├── inf
│** ├── ImagingArea
│** ├── PaperDimension
│** ├── brdcpl3560cdwfunc
│** ├── brdcpl3560cdwrc
│** ├── paperinfij2
│** └── setupPrintcapij
└── lpd
    ├── brdcpl3560cdwfilter -> /opt/brother/Printers/dcpl3560cdw/lpd/x86_64/brdcpl3560cdwfilter
    ├── brprintconf_dcpl3560cdw -> /opt/brother/Printers/dcpl3560cdw/lpd/x86_64/brprintconf_dcpl3560cdw
    ├── filter_dcpl3560cdw
    ├── i686
    │** ├── brdcpl3560cdwfilter
    │** └── brprintconf_dcpl3560cdw
    └── x86_64
        ├── brdcpl3560cdwfilter
        └── brprintconf_dcpl3560cdw
Other files I see modified or created:
Code:
-rw-r--r-- 1 root root 759 Feb 26 15:55 /etc/udev/rules.d/80-brother-libsane-type1-inst.rules
-rw-r--r-- 1 root root 577 Feb 26 15:50 /etc/printcap
-rw-r--r-- 1 root root 22250 Feb 26 15:50 /usr/share/cups/model/Brother/brother_dcpl3560cdw_printer_en.ppd
-rw-r--r-- 1 root root 22250 Feb 26 15:50 /usr/share/ppd/Brother/brother_dcpl3560cdw_printer_en.ppd
lrwxrwxrwx 1 root root 61 Feb 26 15:50 /usr/bin/brprintconf_dcpl3560cdw -> /opt/brother/Printers/dcpl3560cdw/lpd/brprintconf_dcpl3560cdw*
lrwxrwxrwx 1 root root 76 Feb 26 15:50 /usr/lib64/cups/filter/brother_lpdwrapper_dcpl3560cdw -> /opt/brother/Printers/dcpl3560cdw/cupswrapper/brother_lpdwrapper_dcpl3560cdw*
These are the uninstaller scripts created in the directory from where I ran the inux-brprinter-installer-2.2.3-1 script.
Code:
-rw-r--r-- 1 root root 114 Feb 26 15:55 /root/Brother/uninstaller_brscan5
-rwxr--r-- 1 root root 1135 Feb 26 15:54 /root/Brother/uninstaller_DCPL3560CDW*
 
Old 03-10-2024, 01:24 PM   #17
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by dhalliwe View Post
You have not yet told us how you are connecting to the printer (network, USB?). That may be important.
You are right, I didn't. Sorry about that. The network cable is plugged in and the printer found updates to install that way. But since then I chose wireless connection and it disregards the physical cable.



Quote:
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:
I found cups/filter under /usr/lib64/



Quote:
[*]--- brother_lpdwrapper_mfcl8900cdw
This one is already linked
Quote:
[*]--- brother_mfcl8900cdw_printer_en.ppd[*]--- cupswrappermfcl8900cdw
Done



Quote:
[*]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”.
This was copied from the forum
# cupsctl –debug-logging
cupsctl: Unknown option "-�"
Usage: cupsctl [options] [param=value ... paramN=valueN]

I copied this from the error message
# cupsctl --debug-logging




Quote:
[*]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
The files under x86_64 are already linked to the upper directory lpd.

I still created all your links to /usr/lib64/cups/filter, figuring it wouldn't damage anything.




Quote:
...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.
XFCE4 puts up a flag saying "Not connected?"

From the error log:
Code:
D [10/Mar/2024:19:09:54 +0100] [Client 118] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=20682, file=16
D [10/Mar/2024:19:09:54 +0100] [Client 118] Waiting for CGI data.
D [10/Mar/2024:19:09:54 +0100] [Client 118] con->http=0x5613827f73b0
D [10/Mar/2024:19:09:54 +0100] [Client 118] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=20682, file=16
D [10/Mar/2024:19:09:54 +0100] [Client 118] Waiting for CGI data.
D [10/Mar/2024:19:09:54 +0100] [Client 119] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
D [10/Mar/2024:19:09:54 +0100] [Client 119] Closing connection.
D [10/Mar/2024:19:09:54 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"
D [10/Mar/2024:19:09:54 +0100] [Client 118] CGI data ready to be sent.
D [10/Mar/2024:19:09:54 +0100] [Client 118] con->http=0x5613827f73b0
D [10/Mar/2024:19:09:54 +0100] [Client 118] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=20682, file=16
D [10/Mar/2024:19:09:54 +0100] [Client 118] Waiting for CGI data.
D [10/Mar/2024:19:09:54 +0100] [Client 118] Sending 0-length chunk.
D [10/Mar/2024:19:09:54 +0100] [Client 118] Flushing write buffer.
D [10/Mar/2024:19:09:54 +0100] [Client 118] New state is HTTP_STATE_WAITING
D [10/Mar/2024:19:09:54 +0100] [Client 118] Waiting for request.
D [10/Mar/2024:19:09:54 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [10/Mar/2024:19:09:54 +0100] PID 20682 (/usr/lib64/cups/cgi-bin/printers.cgi) exited with no errors.
D [10/Mar/2024:19:09:55 +0100] Expiring subscriptions...
D [10/Mar/2024:19:09:58 +0100] [Job 11] Unable to locate printer \"BRWC894023D1294\".
D [10/Mar/2024:19:09:58 +0100] Expiring subscriptions...
D [10/Mar/2024:19:09:58 +0100] Report: clients=3
D [10/Mar/2024:19:09:58 +0100] Report: jobs=11
D [10/Mar/2024:19:09:58 +0100] Report: jobs-active=1
D [10/Mar/2024:19:09:58 +0100] Report: printers=2
D [10/Mar/2024:19:09:58 +0100] Report: stringpool-string-count=1540
D [10/Mar/2024:19:09:58 +0100] Report: stringpool-alloc-bytes=12600
D [10/Mar/2024:19:09:58 +0100] Report: stringpool-total-bytes=25536
D [10/Mar/2024:19:09:59 +0100] Expiring subscriptions...
D [10/Mar/2024:19:10:04 +0100] [Client 118] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
:
 
Old 03-10-2024, 08:07 PM   #18
dhalliwe
Member
 
Registered: Mar 2022
Location: Ontario, Canada
Distribution: Slackware
Posts: 162

Rep: Reputation: 154Reputation: 154
OK. So the error log you post shows no signs (to me) that it can't find the appropriate driver files. I do see one thing that looks odd:

Quote:
Unable to locate printer "BRWC894023D1294".
The position of the quotes looks peculiar to me, and URLs usually use /, not \. (Edit. Hmmm. The two back-slash characters that appear in your text disappeared in my quote. I think that perhaps they are escape sequences to force the double-quotes to be used as double-quotes, not something else. The back-slashes appear before each ".)

When I look in XFCE4's "Printer Settings" dialog, the properties for my MFCL8900CDW list this as Device URL:

Quote:
lpd://BRNB42200705537/BINARY_P1
I also have the same printer installed as a generic IPP protocol printer. (An issue with some features not working with the Brother driver). For that printer, the Device URL is:

Quote:
ipp://192.168.192.86
Do you know the IP address of the printer? Can you ping it, to confirm that it is available on the network?

As this is a network connection, perhaps you can add the printer using a generic driver? This can be done via the CUPS web interface, IIRC. If the printer is not listed as a "discovered network printer", you can choose the Internet Printing Protocol option (there seems to be both an http and an https option), and go from there. I got mine to work with the driver labelled Generic, PCL Color Laser – CUPS+Gutenprint v5.3.4 [en], but there are several generic options, I think.

(If the CUPS dialog finds the printer as a "discovered" printer, you may be able to point it to the PPD file for your driver.)

Last edited by dhalliwe; 03-10-2024 at 08:11 PM. Reason: Added explanation of disappearing backslashes in quote.
 
Old 03-11-2024, 01:49 AM   #19
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,451
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by Wed View Post
I have a Brother DCP-L3560CDW printer. Drivers are published in rpm and deb format.
The local specs for that printer say that it supports IPP... which means you're in luck! It doesn't need any drivers to work with CUPS.

In the CUPS 'Add Printer' dialog, choose 'Internet Printing Protocol (ipp)' and click Continue.

In the Connection: box, enter: ipp://192.168.x.x/BINARY_P1 (substituting the printer's IP address, and leave the port as "/BINARY_P1" for now... this seems to be the default for Brother printers)

On the next screen, enter a name, model number, location and click continue.

On the next screen, highlight Brother and click continue.

For model, highlight IPP Everywhere and click on "Add Printer."

That should be it.

Note: you can find out the correct port number (the bit which says BINARY_P1) in the "running services" section of the printer's web-based management.

Last edited by rkelsen; 03-11-2024 at 02:09 AM.
 
Old 03-11-2024, 02:08 AM   #20
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,451
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by dhalliwe View Post
I got mine to work with the driver labelled Generic, PCL Color Laser – CUPS+Gutenprint v5.3.4 [en]
You should try using IPP, as shown in my previous post.

The generic drivers don't support things like high-res or duplex, but you'll get both of those features switching to IPP.

Last edited by rkelsen; 03-11-2024 at 02:09 AM.
 
Old 03-11-2024, 09:45 AM   #21
dhalliwe
Member
 
Registered: Mar 2022
Location: Ontario, Canada
Distribution: Slackware
Posts: 162

Rep: Reputation: 154Reputation: 154
Quote:
You should try using IPP, as shown in my previous post.
My notes are incomplete, and over a year old, but my recollection is that I did go through the IPP option in CUPS, and still had to choose from a printer driver (or it did it automagically for me).

In any event, there are ways for the OP to try paths to printing that bypass the installation of the Brother drivers.
 
Old 03-11-2024, 04:16 PM   #22
mw.decavia
Member
 
Registered: Feb 2024
Distribution: Slackware64-15 & Afterstep , oh my
Posts: 78

Rep: Reputation: 8
Would I be correct in thinking this ? -

The info for the op's printer/scanner says it supports scanning to ftp. So for the scanning side of things, the op needs only to setup ftpd on some linux machine and then point the device's scanning to it. Sane drivers not required.

It supports "br-script" which is Brother's postscript clone, which is pretty much a universal output language for *nix printing. And given the high likelyhood that it supports ftp printing, by transferring files to the printer's internal ftp server, even Cups is not required for printing. A shell script can be used to ftp-print the jobs, and the printer can handle the queuing?
 
Old 03-11-2024, 04:32 PM   #23
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,451
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
^ You're over-thinking it, but yes, all should work. The scanner function will also connect to a SAMBA file share if you like.

IME, the best scanning software for Linux is actually a commercial product called VueScan. It'll auto-detect every scanner on your LAN, and it works with the scanners in Brother MFCs. High-res, duplex scan works well.
 
Old 03-11-2024, 05:52 PM   #24
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,451
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by dhalliwe View Post
In any event, there are ways for the OP to try paths to printing that bypass the installation of the Brother drivers.
Yes, you are quite right!

Further testing on this end, on a few different computers:

You don't even have to specify a port. All you need is the printer's IP address.

In the CUPS Add Printer dialog, select Internet Printing Protocol (ipp)

Then, in the "Connection:" box, enter: ipp://192.168.x.x

Then select Brother, and "IPP Everywhere".
 
2 members found this post helpful.
Old 03-11-2024, 08:22 PM   #25
dhalliwe
Member
 
Registered: Mar 2022
Location: Ontario, Canada
Distribution: Slackware
Posts: 162

Rep: Reputation: 154Reputation: 154
Yes, my Brother MFC does support scanning (PDF format) sent to an ftp server (I do this for my personal account) or a network share set up in my Samba config (where household shares live).
 
Old 03-24-2024, 12:46 PM   #26
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by rkelsen View Post
The local specs for that printer say that it supports IPP... which means you're in luck! It doesn't need any drivers to work with CUPS.

In the CUPS 'Add Printer' dialog, choose 'Internet Printing Protocol (ipp)' and click Continue.
Done

Quote:
In the Connection: box, enter: ipp://192.168.x.x/BINARY_P1 (substituting the printer's IP address, and leave the port as "/BINARY_P1" for now... this seems to be the default for Brother printers)
Done

Quote:
On the next screen, enter a name, model number, location and click continue.
Done

Quote:
On the next screen, highlight Brother and click continue.
Done

Quote:
For model, highlight IPP Everywhere and click on "Add Printer."
At first I missed the Everywhere part, and failed. Then I went back and corrected the setting.

Quote:
That should be it.
It was! I haven't checked all the bells and whistles. But it prints and scans.

In my girlfriends computer (32-bit, Slackware 14.2) IPP Everywhere doesn't show up. Still, it does work. At least rudimentary. However, it shows the message "Printer error" as it prints ...

Quote:
Note: you can find out the correct port number (the bit which says BINARY_P1) in the "running services" section of the printer's web-based management.
I may just look at that. Happy to be able to print anything right now.
 
Old 03-24-2024, 02:35 PM   #27
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,451
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by Wed View Post
I haven't checked all the bells and whistles. But it prints and scans.
Can't ask for more than that.

I wrote a blog entry about this, since so many people seem to have trouble:

https://www.linuxquestions.org/quest...64-15-0-38601/
 
  


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 12:06 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