Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Unmounted? That makes no sense to me - perhaps you meant extracted. Anyway, step 4 is where the extraction command is performed. In an effort to assist (I don't own this hardware), I downloaded and extracted the .gz installer file then ran
Code:
sudo sh /home/dean/Downloads/linux-brprinter-installer-2.2.1-1 MFC-J880DW
You are going to install following packages.
mfcj880dwlpr-1.0.0-0.i386.rpm
mfcj880dwcupswrapper-1.0.0-0.i386.rpm
brscan4-0.4.7-1.x86_64.rpm
brscan-skey-0.2.4-1.x86_64.rpm
OK? [y/N] ->
Okkkkkk
.
You know, it is possible I didn't put there path like '.'
I didnt know this command till now. Actually it is kind of tricky to find something about it - anytime you research for 'bash Linux' or 'bash command Linux' it will tell you about different commands in bash or sh/bash in Linux. But what is meaning and purpose of bash command as such?
Okkkkkk
.
You know, it is possible I didn't put there path like '.'
I didnt know this command till now. Actually it is kind of tricky to find something about it - anytime you research for 'bash Linux' or 'bash command Linux' it will tell you about different commands in bash or sh/bash in Linux. But what is meaning and purpose of bash command as such?
Thank you ferrari
It (.) isn't a command so much as a shortcut for "the directory I'm in"
You can see it when you do an ls -al...you'll get something like
DESCRIPTION
Bash is an sh-compatible command language interpreter that executes commands read from the standard input or from a file. Bash
also incorporates useful features from the Korn and C shells (ksh and csh).
Bash is intended to be a conformant implementation of the Shell and Utilities portion of the IEEE POSIX specification (IEEE
Standard 1003.1). Bash can be configured to be POSIX-conformant by default.
The Brother installer is a bash script. Examine it with an editor and you'll see it starts with
Code:
#! /bin/bash
but there are many other shells available, and some *nix OS's may use different shells by default, so specifying bash explicitly ensures the correct interpreter is used.
This command will show the current reported printer status...
Code:
lpstat -t
This will examine the PPD file(s) in the /etc/cups/ppd directory
Code:
egrep -i "name|model|filter" /etc/cups/ppd/*
*From that I can see if the printer driver is configured as expected.
Report back with the output.
You can also put CUPS into debug mode (more verbose error logging) using
Code:
sudo cupsctl --debug-logging
Then send a print job, and examine /var/log/cups/error_log for errors, (in particular filter errors which may be occurring). It's a lengthy file, so be careful to look at the time stamps pertaining to a particular print job and if you want to share the output, upload it to https://pastebin.com/ and share the link to it here.
$ sudo cat /var/log/cups/error_log
E [25/Apr/2019:15:37:00 +020$ sudo cat /var/log/cups/error_log
E [25/Apr/2019:15:37:00 +0200] [Client 9] Request from "localhost" using invalid Host: field "[v1.::1]:631".
I [29/Apr/2019:12:36:14 +0200] Listening to [v1.::1]:631 (IPv6)
I [29/Apr/2019:12:36:14 +0200] Listening to 127.0.0.1:631 (IPv4)
I [29/Apr/2019:12:36:14 +0200] Listening to /var/run/cups/cups.sock (Domain)
I [29/Apr/2019:12:36:14 +0200] Remote access is disabled.
D [29/Apr/2019:12:36:14 +0200] Added auto ServerAlias comp
I [29/Apr/2019:12:36:14 +0200] Loaded configuration file "/etc/cups/cupsd.conf"
D [29/Apr/2019:12:36:14 +0200] Using keychain "/etc/cups/ssl" for server name "comp".
I [29/Apr/2019:12:36:14 +0200] Configured for up to 100 clients.
I [29/Apr/2019:12:36:14 +0200] Allowing up to 100 client connections per host.
I [29/Apr/2019:12:36:14 +0200] Using policy "default" as the default.
D [29/Apr/2019:12:36:14 +0200] load_ppd: Loading /var/cache/cups/DCP1510.data...
D [29/Apr/2019:12:36:14 +0200] cupsdRegisterPrinter(p=0x555be7518460(DCP1510))
D [29/Apr/2019:12:36:14 +0200] cupsdMarkDirty(--p--)
D [29/Apr/2019:12:36:14 +0200] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs"
I [29/Apr/2019:12:36:14 +0200] Partial reload complete.
D [29/Apr/2019:12:36:14 +0200] Calling FindDeviceById(cups-DCP1510)
D [29/Apr/2019:12:36:14 +0200] FindDeviceById failed: org.freedesktop.ColorManager.NotFound:device id \'cups-DCP1510\' does not exist
D [29/Apr/2019:12:36:14 +0200] Using profile ID "DCP1510-Gray..".
D [29/Apr/2019:12:36:14 +0200] Calling CreateProfile(DCP1510-Gray..,temp)
D [29/Apr/2019:12:36:14 +0200] Created profile "/org/freedesktop/ColorManager/profiles/DCP1510_Gray__".
I [29/Apr/2019:12:36:14 +0200] Registering ICC color profiles for "DCP1510".
D [29/Apr/2019:12:36:14 +0200] Calling CreateDevice(cups-DCP1510,temp)
D [29/Apr/2019:12:36:14 +0200] Created device "/org/freedesktop/ColorManager/devices/cups_DCP1510".
D [29/Apr/2019:12:36:14 +0200] Calling /org/freedesktop/ColorManager/devices/cups_DCP1510:AddProfile(/org/freedesktop/ColorManager/profiles/DCP1510_Gray__) [soft]
I [29/Apr/2019:12:36:15 +0200] Listening to [v1.::1]:631 on fd 7...
I [29/Apr/2019:12:36:15 +0200] Listening to 127.0.0.1:631 on fd 8...
I [29/Apr/2019:12:36:15 +0200] Listening to /var/run/cups/cups.sock on fd 9...
I [29/Apr/2019:12:36:15 +0200] Resuming new connection processing...
D [29/Apr/2019:12:36:15 +0200] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [29/Apr/2019:12:36:15 +0200] Notifier dbus started - PID = 8429
D [29/Apr/2019:12:36:15 +0200] cupsdMarkDirty(----S)
D [29/Apr/2019:12:36:15 +0200] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [29/Apr/2019:12:36:15 +0200] [Notifier] state=3
I [29/Apr/2019:12:36:15 +0200] Expiring subscriptions...
D [29/Apr/2019:12:36:15 +0200] Report: clients=0
D [29/Apr/2019:12:36:15 +0200] Report: jobs=4
D [29/Apr/2019:12:36:15 +0200] Report: jobs-active=4
D [29/Apr/2019:12:36:15 +0200] Report: printers=1
D [29/Apr/2019:12:36:15 +0200] Report: stringpool-string-count=784
D [29/Apr/2019:12:36:15 +0200] Report: stringpool-alloc-bytes=8768
D [29/Apr/2019:12:36:15 +0200] Report: stringpool-total-bytes=13592
D [29/Apr/2019:12:36:15 +0200] PID 8214 (/usr/lib/cups/notifier/dbus) exited with no errors.
D [29/Apr/2019:12:36:15 +0200] [Notifier] Connected to D-BUS
D [29/Apr/2019:12:36:15 +0200] [Notifier] ServerRestarted
D [29/Apr/2019:12:36:15 +0200] [Job 1] libusb_get_device_list=10
D [29/Apr/2019:12:36:15 +0200] [Job 1] Waiting for printer to become available.
I [29/Apr/2019:12:36:16 +0200] Expiring subscriptions...
D [29/Apr/2019:12:36:20 +0200] [Job 1] libusb_get_device_list=10
I [29/Apr/2019:12:36:20 +0200] Expiring subscriptions...
D [29/Apr/2019:12:36:20 +0200] [Job 1] Waiting for printer to become available.
I [29/Apr/2019:12:36:21 +0200] Expiring subscriptions...
D [29/Apr/2019:12:36:25 +0200] [Job 1] libusb_get_device_list=10
I [29/Apr/2019:12:36:25 +0200] Expiring subscriptions...
D [29/Apr/2019:12:36:25 +0200] [Job 1] Waiting for printer to become available.
I [29/Apr/2019:12:36:26 +0200] Expiring subscriptions...
D [29/Apr/2019:12:36:30 +0200] [Job 1] libusb_get_device_list=10
I [29/Apr/2019:12:36:30 +0200] Expiring subscriptions...
D [29/Apr/2019:12:36:30 +0200] [Job 1] Waiting for printer to become available.
I [29/Apr/2019:12:36:31 +0200] Expiring subscriptions...
D [29/Apr/2019:12:36:35 +0200] [Job 1] libusb_get_device_list=10
I [29/Apr/2019:12:36:35 +0200] Expiring subscriptions...
D [29/Apr/2019:12:36:35 +0200] [Job 1] Waiting for printer to become available.
I [29/Apr/2019:12:36:36 +0200] Expiring subscriptions...
D [29/Apr/2019:12:36:40 +0200] [Job 1] libusb_get_device_list=10
I [29/Apr/2019:12:36:40 +0200] Expiring subscriptions...
D [29/Apr/2019:12:36:40 +0200] [Job 1] Waiting for printer to become available.
I [29/Apr/2019:12:36:41 +0200] Expiring subscriptions...
D [29/Apr/2019:12:36:45 +0200] [Job 1] libusb_get_device_list=10
I [29/Apr/2019:12:36:45 +0200] Generating printcap /var/run/cups/printcap...
I [29/Apr/2019:12:36:45 +0200] Saving subscriptions.conf...
D [29/Apr/2019:12:36:46 +0200] cupsdSetBusyState: newbusy="Printing jobs", busy="Printing jobs and dirty files"
I [29/Apr/2019:12:36:46 +0200] Expiring subscriptions...
D [29/Apr/2019:12:36:46 +0200] [Job 1] Waiting for printer to become available.
I [29/Apr/2019:12:36:46 +0200] Expiring subscriptions...
I [29/Apr/2019:12:36:47 +0200] Expiring subscriptions...
D [29/Apr/2019:12:36:50 +0200] [Job 1] libusb_get_device_list=10
I [29/Apr/2019:12:36:50 +0200] Expiring subscriptions...
D [29/Apr/2019:12:36:50 +0200] [Job 1] Waiting for printer to become available.
I [29/Apr/2019:12:36:51 +0200] Expiring subscriptions...
D [29/Apr/2019:12:36:54 +0200] [Client 44] Server address is "/var/run/cups/cups.sock".
D [29/Apr/2019:12:36:54 +0200] [Client 44] Accepted from localhost (Domain)
D [29/Apr/2019:12:36:54 +0200] [Client 44] Waiting for request.
I [29/Apr/2019:12:36:54 +0200] Expiring subscriptions...
D [29/Apr/2019:12:36:54 +0200] cupsdAddCert: Adding certificate for PID 0
D [29/Apr/2019:12:36:54 +0200] [Client 44] POST / HTTP/1.1
D [29/Apr/2019:12:36:54 +0200] cupsdSetBusyState: newbusy="Active clients and printing jobs", busy="Printing jobs"
D [29/Apr/2019:12:36:54 +0200] [Client 44] Read: status=200
D [29/Apr/2019:12:36:54 +0200] [Client 44] No authentication data provided.
D [29/Apr/2019:12:36:54 +0200] [Client 44] 2.0 Get-Notifications 12
D [29/Apr/2019:12:36:54 +0200] Get-Notifications /
D [29/Apr/2019:12:36:54 +0200] cupsdIsAuthorized: requesting-user-name="mx"
D [29/Apr/2019:12:36:54 +0200] [Client 44] Returning IPP successful-ok for Get-Notifications (/) from localhost
D [29/Apr/2019:12:36:54 +0200] [Client 44] Content-Length: 127
D [29/Apr/2019:12:36:54 +0200] [Client 44] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [29/Apr/2019:12:36:54 +0200] [Client 44] con->http=0x555be757a070
D [29/Apr/2019:12:36:54 +0200] [Client 44] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=127, response=0x555be75765b0(IPP_STATE_DATA), pipe_pid=0, file=-1
D [29/Apr/2019:12:36:54 +0200] [Client 44] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [29/Apr/2019:12:36:54 +0200] [Client 44] bytes=0, http_state=0, data_remaining=127
D [29/Apr/2019:12:36:54 +0200] [Client 44] Flushing write buffer.
D [29/Apr/2019:12:36:54 +0200] [Client 44] New state is HTTP_STATE_WAITING
D [29/Apr/2019:12:36:54 +0200] [Client 44] Waiting for request.
D [29/Apr/2019:12:36:54 +0200] cupsdSetBusyState: newbusy="Printing jobs", busy="Active clients and printing jobs"
D [29/Apr/2019:12:36:54 +0200] [Client 44] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
D [29/Apr/2019:12:36:54 +0200] [Client 44] Closing connection.
D [29/Apr/2019:12:36:54 +0200] cupsdSetBusyState: newbusy="Printing jobs", busy="Printing jobs"
I [29/Apr/2019:12:36:55 +0200] Expiring subscriptions...
D [29/Apr/2019:12:36:55 +0200] [Job 1] libusb_get_device_list=10
D [29/Apr/2019:12:36:55 +0200] [Job 1] Waiting for printer to become available.
I [29/Apr/2019:12:36:56 +0200] Expiring subscriptions...
D [29/Apr/2019:12:37:00 +0200] [Job 1] libusb_get_device_list=10
I [29/Apr/2019:12:37:00 +0200] Expiring subscriptions...
D [29/Apr/2019:12:37:00 +0200] [Job 1] Waiting for printer to become available.
I [29/Apr/2019:12:37:01 +0200] Expiring subscriptions...
D [29/Apr/2019:12:37:05 +0200] [Job 1] libusb_get_device_list=10
I [29/Apr/2019:12:37:05 +0200] Expiring subscriptions...
D [29/Apr/2019:12:37:05 +0200] [Job 1] Waiting for printer to become available.
I [29/Apr/2019:12:37:06 +0200] Expiring subscriptions...
D [29/Apr/2019:12:37:09 +0200] [Client 45] Server address is "/var/run/cups/cups.sock".
D [29/Apr/2019:12:37:09 +0200] [Client 45] Accepted from localhost (Domain)
D [29/Apr/2019:12:37:09 +0200] [Client 45] Waiting for request.
I [29/Apr/2019:12:37:09 +0200] Expiring subscriptions...
D [29/Apr/2019:12:37:09 +0200] [Client 45] POST / HTTP/1.1
D [29/Apr/2019:12:37:09 +0200] cupsdSetBusyState: newbusy="Active clients and printing jobs", busy="Printing jobs"
D [29/Apr/2019:12:37:09 +0200] [Client 45] Read: status=200
D [29/Apr/2019:12:37:09 +0200] [Client 45] No authentication data provided.
D [29/Apr/2019:12:37:09 +0200] [Client 45] 2.0 CUPS-Get-Printers 1
D [29/Apr/2019:12:37:09 +0200] CUPS-Get-Printers
D [29/Apr/2019:12:37:09 +0200] [Client 45] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost
D [29/Apr/2019:12:37:09 +0200] [Client 45] Content-Length: 8317
D [29/Apr/2019:12:37:09 +0200] [Client 45] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [29/Apr/2019:12:37:09 +0200] [Client 45] con->http=0x555be757a070
D [29/Apr/2019:12:37:09 +0200] [Client 45] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=8317, response=0x555be7579f40(IPP_STATE_DATA), pipe_pid=0, file=-1
D [29/Apr/2019:12:37:09 +0200] [Client 45] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [29/Apr/2019:12:37:09 +0200] [Client 45] bytes=0, http_state=0, data_remaining=8317
D [29/Apr/2019:12:37:09 +0200] [Client 45] Flushing write buffer.
D [29/Apr/2019:12:37:09 +0200] [Client 45] New state is HTTP_STATE_WAITING
D [29/Apr/2019:12:37:09 +0200] [Client 45] Waiting for request.
D [29/Apr/2019:12:37:09 +0200] cupsdSetBusyState: newbusy="Printing jobs", busy="Active clients and printing jobs"
D [29/Apr/2019:12:37:09 +0200] [Client 45] POST / HTTP/1.1
D [29/Apr/2019:12:37:09 +0200] cupsdSetBusyState: newbusy="Active clients and printing jobs", busy="Printing jobs"
D [29/Apr/2019:12:37:09 +0200] [Client 45] Read: status=200
D [29/Apr/2019:12:37:09 +0200] [Client 45] No authentication data provided.
D [29/Apr/2019:12:37:09 +0200] [Client 45] 2.0 CUPS-Get-Classes 1
D [29/Apr/2019:12:37:09 +0200] CUPS-Get-Classes
D [29/Apr/2019:12:37:09 +0200] [Client 45] Returning IPP successful-ok for CUPS-Get-Classes (no URI) from localhost
D [29/Apr/2019:12:37:09 +0200] [Client 45] Content-Length: 75
D [29/Apr/2019:12:37:09 +0200] [Client 45] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [29/Apr/2019:12:37:09 +0200] [Client 45] con->http=0x555be757a070
D [29/Apr/2019:12:37:09 +0200] [Client 45] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=75, response=0x555be751b900(IPP_STATE_DATA), pipe_pid=0, file=-1
D [29/Apr/2019:12:37:09 +0200] [Client 45] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [29/Apr/2019:12:37:09 +0200] [Client 45] bytes=0, http_state=0, data_remaining=75
D [29/Apr/2019:12:37:09 +0200] [Client 45] Flushing write buffer.
D [29/Apr/2019:12:37:09 +0200] [Client 45] New state is HTTP_STATE_WAITING
D [29/Apr/2019:12:37:09 +0200] [Client 45] Waiting for request.
D [29/Apr/2019:12:37:09 +0200] cupsdSetBusyState: newbusy="Printing jobs", busy="Active clients and printing jobs"
D [29/Apr/2019:12:37:09 +0200] [Client 45] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
D [29/Apr/2019:12:37:09 +0200] [Client 45] Closing connection.
D [29/Apr/2019:12:37:09 +0200] cupsdSetBusyState: newbusy="Printing jobs", busy="Printing jobs"
I [29/Apr/2019:12:37:10 +0200] Expiring subscriptions...
D [29/Apr/2019:12:37:10 +0200] [Job 1] libusb_get_device_list=10
D [29/Apr/2019:12:37:10 +0200] [Job 1] Waiting for printer to become available.
Thank you Ferrari,
all four commands output are here
thank you for the shell links too
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.