LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-18-2018, 01:53 PM   #31
gerlinux
Member
 
Registered: Jan 2014
Location: Spain
Distribution: Debian GNU/Linux 10 \n \l gnome desktop
Posts: 128

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by ferrari View Post
BTW, check that this requirement is met...
http://support.brother.com/g/s/id/li...edirect=on#004
Don't know what to do with that..

I did what you mentioned in the post before and this is what I got:
Quote:
root@mx:/home/mx# sudo egrep -i "name|model|filter" /etc/cups/ppd/MFC-L2700DW-series.ppd
*PCFileName: "textonly.ppd"
*ModelName: "Generic Text-Only Printer"
*ShortNickName: "Generic Text-Only Printer"
*NickName: "Generic Text-Only Printer"
*cupsFilter2: "text/plain text/plain 0 texttotext"
*cupsModelNumber: 0
*cupsFilter: "text/plain 0 texttotext"
*PrinterEncoding WINDOWS-1258/Windows 1258, Code Page 1258 (Vietnamese): ""
root@mx:/home/mx# ls -l /usr/lib/cups/filter/brother*
lrwxrwxrwx 1 root root 74 jul 16 11:34 /usr/lib/cups/filter/brother_lpdwrapper_MFCL2700DW -> /opt/brother/Printers/MFCL2700DW/cupswrapper/brother_lpdwrapper_MFCL2700DW
root@mx:/home/mx#
thanks Ferrari.
 
Old 07-18-2018, 04:02 PM   #32
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,802

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Ok, well that output confirms that it is the incorrect .ppd for the printer. It is NOT what is supplied by the Brother package. Somehow the wrong driver was selected during configuration.

You could try using the CUPS web interface via a browser
Code:
localhost:631/printers
Select the printer and 'Administration' > 'Modify Printer'. Follow the prompts given. When you get to the model election, scroll down to find the appropriate model and select it.

Just in case the Debian handbook is helpful to you...
https://debian-handbook.info/browse/...-printing.html
 
Old 07-19-2018, 02:07 AM   #33
gerlinux
Member
 
Registered: Jan 2014
Location: Spain
Distribution: Debian GNU/Linux 10 \n \l gnome desktop
Posts: 128

Original Poster
Rep: Reputation: Disabled
I think that the right printer was already selected, anyway, i followed what you have told me and this is what i got:

https://ibb.co/bz3qGy

I hope that helps.
 
Old 07-19-2018, 02:35 AM   #34
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,802

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
No, 'Generic Text-Only Printer' is not the correct driver. Search the config utility for the correct Brother model.
 
Old 07-19-2018, 02:57 AM   #35
gerlinux
Member
 
Registered: Jan 2014
Location: Spain
Distribution: Debian GNU/Linux 10 \n \l gnome desktop
Posts: 128

Original Poster
Rep: Reputation: Disabled
Thanks, I have done that, and selected the right model.

So, now there is a box saying that the print is done, but it isn't.

:S
 
Old 07-19-2018, 03:04 AM   #36
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,802

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Prove it...
Code:
sudo egrep -i "name|model|filter" /etc/cups/ppd/MFC-L2700DW-series.ppd
 
Old 07-19-2018, 04:36 AM   #37
gerlinux
Member
 
Registered: Jan 2014
Location: Spain
Distribution: Debian GNU/Linux 10 \n \l gnome desktop
Posts: 128

Original Poster
Rep: Reputation: Disabled
done it:

Quote:
root@mx:/home/mx# sudo egrep -i "name|model|filter" /etc/cups/ppd/MFC-L2700DW-series.ppd
*PCFileName: "MFCL2700.PPD"
*cupsModelNumber: 72
*cupsFilter: "application/vnd.cups-postscript 0 brother_lpdwrapper_MFCL2700DW"
*cupsFilter: "application/vnd.cups-pdf 0 brother_lpdwrapper_MFCL2700DW"
*ModelName: "MFC-L2700DW"
*NickName: "Brother MFC-L2700DW for CUPS "
*ShortNickName: "Brother MFC-L2700DW"
/devname (%disk0%) def
devname exch 48 add 5 exch put
devname devstatus {
{(fonts/)AppendName exch pop mark exch
{}=string filenameforall counttomark
}=string filenameforall
 
Old 07-19-2018, 04:45 AM   #38
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,802

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Okay, that looks as expected. The next step involves examining the CUPS error log when a print job is sent. The general idea is as follows:

Put CUPS into debug mode
Code:
sudo cupsctl --debug-logging
Clear the existing error_log with
Code:
sudo rm -f /var/log/cups/error_log
Cancel any pending/stale print jobs with
Code:
cancel -a
You can monitor the error_log like this
Code:
tail -f /var/log/cups/error_log
Then try printing a PDF document or print a CUPS test page. Examine/capture the log for errors. (You can use an editor to to this if desired.)

It can be lengthy, so consider uploading to https://pastebin.com/ and post the link to it here for others to review and advise further.

Last edited by ferrari; 07-19-2018 at 04:54 AM.
 
Old 07-19-2018, 04:47 AM   #39
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,802

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
It's late here in NZ. I'll check back on this in the morning.
 
Old 07-19-2018, 04:57 AM   #40
gerlinux
Member
 
Registered: Jan 2014
Location: Spain
Distribution: Debian GNU/Linux 10 \n \l gnome desktop
Posts: 128

Original Poster
Rep: Reputation: Disabled
Hi,
I did what you said and not difference:

this is what I got from the console:

Quote:
root @ mx: / home / mx # sudo rm -f / var / log / cups / error_log
root @ mx: / home / mx # cancel -a
root @ mx: / home / mx # tail -f / var / log / cups / error_log
tail: can not open '/ var / log / cups / error_log' for reading: The file or directory does not exist
tail: no file is left
root @ mx: / home / mx # tail -f / var / log / cups / error_log
tail: can not open '/ var / log / cups / error_log' for reading: The file or directory does not exist
tail: no file is left
root @ mx: / home / mx #
Thanks a lot and sweet dreams!
 
Old 07-19-2018, 05:01 AM   #41
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,802

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Sorry...after removing the error_log, it won't be recreated until after a print job is sent. Just examine it with an editor after a print job is sent.
 
Old 07-19-2018, 08:08 AM   #42
gerlinux
Member
 
Registered: Jan 2014
Location: Spain
Distribution: Debian GNU/Linux 10 \n \l gnome desktop
Posts: 128

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
Sorry...after removing the error_log, it won't be recreated until after a print job is sent. Just examine it with an editor after a print job is sent.
Excuse my ignorance of being a total newbie, but what exactly do I have to do?
 
Old 07-19-2018, 03:03 PM   #43
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,802

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
1. Send a print job eg PDF document to print via your favourite application, or you can also do it via a terminal. For example...
Code:
lp -d MFC-L2700DW-series /path/to/your/file.pdf
2. Examine the CUPS error_log (It's root owned, but you should be able to open it read-only as user for viewing) eg using nano, or vi...
Code:
nano /var/log/cups/error_log
or via a graphical editor such as kate (KDE) or gedit (Gnome)
Code:
gedit /var/log/cups/error_log
You could also view the last 200 lines in a terminal using
Code:
tail -n 200 /var/log/cups/error_log
but it can be lengthy, and logging more than one print job, so some times hard to identify a particular print job unless one pays attention to the time stamps as well).

Anyway, we're looking for errors that might help us identify what is wrong. The important thing is to post (using pastebin) the entire log, so that I or others can assist further.
 
Old 07-19-2018, 05:23 PM   #44
gerlinux
Member
 
Registered: Jan 2014
Location: Spain
Distribution: Debian GNU/Linux 10 \n \l gnome desktop
Posts: 128

Original Poster
Rep: Reputation: Disabled
So, when I tiped that in the terminal:
[QUOTE
2. Examine the CUPS error_log (It's root owned, but you should be able to open it read-only as user for viewing) eg using nano, or vi...
Code:
nano /var/log/cups/error_log
[/QUOTE]

That is what I got:
Quote:
GNU nano 2.7.4 File: / var / log / cups / error_log




















[line 1/1 (100%), col 1/1 (100%), car 0/0 (0%)]
^ G See help ^ O Save ^ W Search ^ K Cut txt ^ J Justify ^ C Position
^ X Exit ^ R Read file ^ \ Replace ^ U Paste txt ^ T Spelling ^ _ Go to line

Don't know if that makes any sense..

Thanks for the perseverance..
 
Old 07-19-2018, 05:53 PM   #45
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,802

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
I's ok. The file won't exist until after you attempt to print something.
 
  


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
Installing a Brother Printer MFC-J5330DW edhayes@tmp-az.com Linux Mint 11 02-27-2018 03:58 PM
[SOLVED] Brother MFC-L2700DW, I can't change the printer configuration lcharles Linux - Hardware 3 05-22-2017 03:52 PM
Installing drivers for printer, Brother MFC-J280W bplis* Linux - Software 5 11-27-2011 07:12 PM
Installing MFC-640CW brother printer in fedora 6 guy_ripper Linux - Hardware 2 12-25-2008 05:10 PM
Has anyone had any luck installing MFC-3420C Brother printer hbonds1 Linux - Hardware 0 12-27-2005 02:09 PM

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

All times are GMT -5. The time now is 12:23 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