LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi
User Name
Password
Bodhi This forum is for the discussion of Bodhi Linux.

Notices


Reply
  Search this Thread
Old 02-04-2019, 01:18 AM   #1
zaivala
Member
 
Registered: Mar 2008
Location: Blaine TN USA
Distribution: Linux Mint 20.1 Bodhi 6, OpenMandriva Lx 4.2, others
Posts: 264
Blog Entries: 52

Rep: Reputation: 51
Printer Issue


New issue.

I installed CUPS. I then installed my printer driver (Brother MFC-J470DW). Everything appears to install correctly, but no test print comes out at the proper point.
 
Old 02-04-2019, 08:37 AM   #2
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 864

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Have you checked all your settings via CUPS?

I mean on address 127.0.0.1:631 in your browser. There you have to add your printer.

Stefan

Last edited by the_waiter; 02-04-2019 at 11:59 AM.
 
1 members found this post helpful.
Old 02-04-2019, 10:41 PM   #3
zaivala
Member
 
Registered: Mar 2008
Location: Blaine TN USA
Distribution: Linux Mint 20.1 Bodhi 6, OpenMandriva Lx 4.2, others
Posts: 264

Original Poster
Blog Entries: 52

Rep: Reputation: 51
Quote:
Originally Posted by the_waiter View Post
Have you checked all your settings via CUPS?

I mean on address 127.0.0.1:631 in your browser. There you have to add your printer.

Stefan
I'm sorry, that does not make sense to me. When I installed, I selected the network address of my printer. That should be enough. My printer is already added to my network, and it works on my other installed distros. And the address you gave is just the documentation for CUPS.
 
Old 02-05-2019, 01:22 AM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Actually, that URL is for the CUPS web interface (and documentation is just a part of it). It is also a configuration utility. In any case can you confirm that the correct driver is configured?

Report back with the output of the following please
Code:
egrep -i "name|filter|model" /etc/cups/ppd/*
Printer status
Code:
lpstat -t
If that all checks out, then we can put CUPS into debug mode with
Code:
sudo cupsctl --debug-logging
send a print job, and examine the /var/log/cups/error_log for errors. It can be a lengthy file, so I often recommend deleting the existing file first.
Code:
sudo rm -f /var/log/cups/error_log
then restart CUPS and begin the diagnostics steps already outlined. If you need help with this, upload it to https://pastebin.com/ and post the link that it generates here so others can review the log.

Last edited by ferrari; 02-05-2019 at 01:26 PM.
 
1 members found this post helpful.
Old 02-06-2019, 12:52 AM   #5
zaivala
Member
 
Registered: Mar 2008
Location: Blaine TN USA
Distribution: Linux Mint 20.1 Bodhi 6, OpenMandriva Lx 4.2, others
Posts: 264

Original Poster
Blog Entries: 52

Rep: Reputation: 51
zaivala@zaivala-ThinkPad-T430:~$ egrep -i "name|filter|model" /etc/cups/ppd/*
grep: /etc/cups/ppd/MFCJ470DW.ppd: Permission denied
zaivala@zaivala-ThinkPad-T430:~$ sudo egrep -i "name|filter|model" /etc/cups/ppd/*
[sudo] password for zaivala:
*PCFileName: "MFC470.PPD"
*cupsFilter: "application/vnd.cups-postscript 0 brother_lpdwrapper_mfcj470dw"
*cupsModelNumber: 15
*ModelName: "Brother MFC-J470DW"
*ShortNickName: "MFC-J470DW"
*NickName: "Brother MFC-J470DW CUPS"
zaivala@zaivala-ThinkPad-T430:~$

zaivala@zaivala-ThinkPad-T430:~$ lpstat -t
scheduler is running
no system default destination
device for MFCJ470DW: socket://192.168.0.17
MFCJ470DW accepting requests since Mon 04 Feb 2019 02:14:40 AM EST
printer MFCJ470DW is idle. enabled since Mon 04 Feb 2019 02:14:40 AM EST
zaivala@zaivala-ThinkPad-T430:~$

zaivala@zaivala-ThinkPad-T430:~$ sudo cupsctl --debug-logging
zaivala@zaivala-ThinkPad-T430:~$
 
1 members found this post helpful.
Old 02-06-2019, 02:49 AM   #6
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Ok, that confirms the correct driver filter and the printer URI looks as well. Now that you have put CUPS into debug mode, you should be able to print a document or image and examine the error_log for issues. As I mentioned already, it can be lengthy, so only upload the output for the most recent print job (using the job ID and/or time stamps). Once you've uploaded it to pastebin, you can share the link to it here.
 
1 members found this post helpful.
Old 04-23-2019, 09:14 PM   #7
zaivala
Member
 
Registered: Mar 2008
Location: Blaine TN USA
Distribution: Linux Mint 20.1 Bodhi 6, OpenMandriva Lx 4.2, others
Posts: 264

Original Poster
Blog Entries: 52

Rep: Reputation: 51
Sorry it has been so long. Life has socked me in the face many times, some of them expensive, and I haven't had available brain cells or time to deal with this.

And I'm still ignorant on this issue. So I have put CUPS into debug mode. So I should attempt a print and find the log file.... where? And how do I upload the file to pastebin?

I would like to state that I am having exactly the same issue in my installation of Linux Lite 4.4, but have used this same installation script without a problem in Linux Mint 19.1, Ubuntu Budgie 18.04, and many previous distros. The solution is usualy to boot to another distro and print... the lazy man's way out.
 
1 members found this post helpful.
Old 04-23-2019, 10:43 PM   #8
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
Have you tried installing the bodhi printer support package? I'm pretty sure I still had to install that after I used the brother install script for my brother network printer... but not sure. Anyways prolly cant hurt.

Code:
bodhi@VPCF115FM:~$ apt list bodhi-printing
Listing... Done
bodhi-printing/unknown,unknown,now 0.6 all [installed]
bodhi@VPCF115FM:~$ apt show bodhi-printing
Package: bodhi-printing
Version: 0.6
Priority: optional
Section: main
Maintainer: Gareth Williams
Installed-Size: unknown
Depends: cups, system-config-printer-gnome, cups-bsd
Download-Size: 630 B
APT-Manual-Installed: yes
APT-Sources: http://packages.bodhilinux.com/bodhi bionic/b5main amd64 Packages
Description: Bodhi printing
 A meta package containing packages required for printing

Last edited by enigma9o7; 04-25-2019 at 12:04 AM.
 
1 members found this post helpful.
Old 04-24-2019, 02:23 AM   #9
zaivala
Member
 
Registered: Mar 2008
Location: Blaine TN USA
Distribution: Linux Mint 20.1 Bodhi 6, OpenMandriva Lx 4.2, others
Posts: 264

Original Poster
Blog Entries: 52

Rep: Reputation: 51
I rebooted to Bodhi to attempt your suggestion. Oddly, I did not finish booting, being stuck on the splash screen (wooden bridge over the river). I finally pressed my power button, and Bodhi closed normally, and then when I started up again it loaded normally, so that was probably a hiccup. Now on to the show.

zaivala@zaivala-ThinkPad-T430:~$ apt list bodhi-printing
Listing... Done
bodhi-printing/unknown,unknown 0.6 all
zaivala@zaivala-ThinkPad-T430:~$ apt show bodhi-printing
Package: bodhi-printing
Version: 0.6
Priority: optional
Section: main
Maintainer: Gareth Williams
Installed-Size: unknown
Depends: cups, system-config-printer-gnome, cups-bsd
Download-Size: 630 B
APT-Sources: http://packages.bodhilinux.com/bodhi bionic/b5main amd64 Packages
Description: Bodhi printing
A meta package containing packages required for printing

zaivala@zaivala-ThinkPad-T430:~$


So, apparently, it was already installed? Where do I go from here?
 
Old 04-24-2019, 11:20 AM   #10
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
That shows it isn't installed unless I misunderstand.... to install 'sudo apt install bodhi-printing' and then when you list it should show [installed] like it does on my output. Yours doesn't show installed. I'll bold it in my original post fyi. (You can also add it from the bodhi "appcenter" webpage https://www.bodhilinux.com/a/printer-support/ since apparently you're not familiar with apt).

Last edited by enigma9o7; 04-25-2019 at 12:08 AM.
 
Old 04-24-2019, 11:17 PM   #11
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
The output you provided from running lpstat and the ppd file shows that CUPS is running and the printer is configured. You now have CUPS in debug mode.

Quote:
And I'm still ignorant on this issue. So I have put CUPS into debug mode. So I should attempt a print and find the log file.... where? And how do I upload the file to pastebin?
Yes, try sending a print job. You could use the CUPS web interface (via a browser) to print a test page. Navigate to
http://localhost:cups/printers
Select the printer, then 'Maintenance' > 'Print Test Page'

Open /var/log/cups/error_log with a text editor. You may need administrator privileges to do so, but it should be possible to copy/paste the relevant section to a pastebin browser window.

FWIW, there is apparently a wgetpaste utility that can be used to upload a text file if desired. I haven't tried it though. YMMV.
https://www.ostechnix.com/how-to-eas...m-commandline/
 
Old 04-25-2019, 09:40 AM   #12
zaivala
Member
 
Registered: Mar 2008
Location: Blaine TN USA
Distribution: Linux Mint 20.1 Bodhi 6, OpenMandriva Lx 4.2, others
Posts: 264

Original Poster
Blog Entries: 52

Rep: Reputation: 51
OK, I misread my readout. It is, however, installed now.

zaivala@zaivala-ThinkPad-T430:~$ sudo apt install bodhi-printing
[sudo] password for zaivala:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
avahi-utils cups-bsd cups-pk-helper gir1.2-notify-0.7
gir1.2-packagekitglib-1.0 gir1.2-polkit-1.0 gir1.2-secret-1 ippusbxd
python3-cups python3-cupshelpers system-config-printer
system-config-printer-common system-config-printer-gnome
system-config-printer-udev
Suggested packages:
inetutils-inetd | inet-superserver gnome-software python3-smbc
The following NEW packages will be installed:
avahi-utils bodhi-printing cups-bsd cups-pk-helper gir1.2-notify-0.7
gir1.2-packagekitglib-1.0 gir1.2-polkit-1.0 gir1.2-secret-1 ippusbxd
python3-cups python3-cupshelpers system-config-printer
system-config-printer-common system-config-printer-gnome
system-config-printer-udev
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 489 kB of archives.
After this operation, 3,269 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 avahi-utils amd64 0.7-3.1ubuntu1.2 [24.8 kB]
Get:2 http://packages.bodhilinux.com/bodhi bionic/b5main amd64 bodhi-printing all 0.6 [630 B]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 gir1.2-notify-0.7 amd64 0.7.7-3 [3,576 B]
Get:4 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 gir1.2-packagekitglib-1.0 amd64 1.1.9-1ubuntu2.18.04.5 [21.6 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 gir1.2-polkiUnpacking ippusbxd (1.32-2) ...
Setting up gir1.2-notify-0.7:amd64 (0.7.7-3) ...
Setting up python3-cups (1.9.73-2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Setting up gir1.2-polkit-1.0 (0.105-20ubuntu0.18.04.5) ...
Setting up cups-bsd (2.2.7-1ubuntu2.4) ...
Setting up cups-pk-helper (0.2.6-1ubuntu1.2) ...
Setting up gir1.2-secret-1:amd64 (0.18.6-1) ...
Setting up ippusbxd (1.32-2) ...
Setting up avahi-utils (0.7-3.1ubuntu1.2) ...
Setting up python3-cupshelpers (1.5.11-1ubuntu2) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up gir1.2-packagekitglib-1.0 (1.1.9-1ubuntu2.18.04.5) ...
Processing triggers for dbus (1.12.2-1ubuntu1) ...
Setting up system-config-printer-common (1.5.11-1ubuntu2) ...
Setting up system-config-printer-udev (1.5.11-1ubuntu2) ...
Setting up system-config-printer (1.5.11-1ubuntu2) ...
Setting up system-config-printer-gnome (1.5.11-1ubuntu2) ...
Setting up bodhi-printing (0.6) ...
Processing triggers for dbus (1.12.2-1ubuntu1) ...
zaivala@zaivala-ThinkPad-T430:~$



AAaaaaaaand... IT PRINTS!
 
1 members found this post helpful.
Old 04-25-2019, 11:14 PM   #13
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
Excellent. My guess is they stripped everything printer related out of bodhi since it's a minimal distro, but those other distros that worked already probably keep that stuff in. Maybe Linux Lite is similar, maybe they have a printer support package too....

I have weird brother network printer issue under bodhi I've never really taken the time to figure out. I can only print one thing then if I print something else the screen says 'data remaining' forever and won't print anything else til push the cancel job button, then it'll print the 3rd thing. So I have to print everything two times (not two copies) so I can cancel every other job to keep the printer from hanging. Kinda annoying.
 
  


Reply

Tags
bodhi, printer



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
Virtual Printer / CUPS-PDF Printer Issue in SuSE 10 jlstratton42 SUSE / openSUSE 0 12-21-2005 11:04 AM
keeping printer on at bootup keeps printer from printing (some printer modules loaded TheOneAndOnlySM Slackware 1 10-17-2003 07:39 PM
how can i add a printer that is not listed in the "Red Hat Printer Config?" kublador Linux - Newbie 2 03-05-2003 08:37 PM
how do i make redhat recognize my printer new printer driver Kilahchris Linux - General 2 03-04-2003 05:08 PM
Printer Basics 101 Unistalling previous printer Dirver SPMcRuube Linux - Newbie 1 12-02-2002 03:13 PM

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

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