How to continue from here - Terminal help required....

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
choyas-gogo
Level 1
Level 1
Posts: 22
Joined: Sun Nov 07, 2021 2:18 am

How to continue from here - Terminal help required....

Post by choyas-gogo »

I was installing Brother drivers and got that done but the scanner drivers ..... the terminal asked for some info which i dont know what or how to obtain... please help. Posting terminal copy/paste info here :

Code: Select all

wget -T 10 -nd --no-cache https://download.brother.com/pub/com/linux/linux/packages/brscan-skey-0.3.1-2.amd64.deb
--2021-11-24 20:54:42--  https://download.brother.com/pub/com/linux/linux/packages/brscan-skey-0.3.1-2.amd64.deb
Resolving download.brother.com (download.brother.com)... 23.48.156.237
Connecting to download.brother.com (download.brother.com)|23.48.156.237|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 71758 (70K) [text/plain]
Saving to: 'brscan-skey-0.3.1-2.amd64.deb’

brscan-skey-0.3.1-2.amd64.deb  100%[=================================================>]  70.08K  --.-KB/s    in 0.07s   

2021-11-24 20:54:43 (1.04 MB/s) - 'brscan-skey-0.3.1-2.amd64.deb’ saved [71758/71758]

dpkg -i --force-all brscan-skey-0.3.1-2.amd64.deb
Selecting previously unselected package brscan-skey.
(Reading database ... 282268 files and directories currently installed.)
Preparing to unpack brscan-skey-0.3.1-2.amd64.deb ...
Unpacking brscan-skey (0.3.1-2) ...
Setting up brscan-skey (0.3.1-2) ...
apt-get install libusb-0.1-4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  libusb-0.1-4
0 to upgrade, 1 to newly install, 0 to remove and 218 not to upgrade.
Need to get 17.4 kB of archives.
After this operation, 58.4 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libusb-0.1-4 amd64 2:0.1.12-32 [17.4 kB]
Fetched 17.4 kB in 2s (9,811 B/s)                    
Selecting previously unselected package libusb-0.1-4:amd64.
(Reading database ... 282288 files and directories currently installed.)
Preparing to unpack .../libusb-0.1-4_2%3a0.1.12-32_amd64.deb ...
Unpacking libusb-0.1-4:amd64 (2:0.1.12-32) ...
Setting up libusb-0.1-4:amd64 (2:0.1.12-32) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Hit Enter/Return key.
abc@abc-desktop:~/Downloads$ linux-brprinter*  {i input this because idk what else i shld input here}
linux-brprinter-installer-2.2.3-1: command not found   {<------- so its obviously error in input info}
abc@abc-desktop:~/Downloads$   {what shall i input here now?}
LM Cinnamon 20.2

Thank you in advance .....
choyas-gogo
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
kc1di
Level 18
Level 18
Posts: 8175
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: How to continue from here - Terminal help required....

Post by kc1di »

Which model brother are you trying to install the drivers for?
On mine it was detected and installed automatically from the start.
Last edited by kc1di on Wed Nov 24, 2021 9:26 am, edited 1 time in total.
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
User avatar
AndyMH
Level 21
Level 21
Posts: 13716
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: How to continue from here - Terminal help required....

Post by AndyMH »

Code: Select all

abc@abc-desktop:~/Downloads$ linux-brprinter* {i input this because idk what else i shld input here}
linux-brprinter-installer-2.2.3-1: command not found {<------- so its obviously error in input info}
abc@abc-desktop:~/Downloads$ {what shall i input here now?}
Yes the error is in your input command.

Instead of

Code: Select all

linux-brprinter-installer-2.2.3-1
you need to tell mint where the file is, if you are in the Downloads folder then

Code: Select all

./linux-brprinter-installer-2.2.3-1
or specify the full pathname for the script

Code: Select all

/home/you/Downloads/linux-brprinter-installer-2.2.3-1
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: How to continue from here - Terminal help required....

Post by Flemur »

choyas-gogo wrote: Wed Nov 24, 2021 7:16 am I was installing Brother drivers and got that done but the scanner drivers .....

Hit Enter/Return key.

Code: Select all

abc@abc-desktop:~/Downloads$ linux-brprinter*  {i input this because idk what else i shld input here}
linux-brprinter-installer-2.2.3-1: command not found   {<------- so its obviously error in input info}
abc@abc-desktop:~/Downloads$   {what shall i input here now?}
AndyMH showed how to run that command, but why are you entering a printer-installer command to install a scanner?**

Brother has surprisingly good documentation on how to install their scanner drivers in linux, like here:
https://help.brother-usa.com/app/answer ... 29---linux
** I don't see the string 'printer' anywhere on that page...
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
choyas-gogo
Level 1
Level 1
Posts: 22
Joined: Sun Nov 07, 2021 2:18 am

Re: How to continue from here - Terminal help required....

Post by choyas-gogo »

I sent in this post only after re-installing fresh copy of LM Cinnamon 20.2 for the 4th time because i got this road-block on the scanner

re : {abc@abc-desktop:~/Downloads$ linux-brprinter-installer-2.2.3-1 didnt work and i removed the nos. following the word installer.

the resultant msg was abc@abc-desktop:~/Downloads$ } and that is why i posted.




choyas-gogo

Thank you.
User avatar
GELvdH
Level 5
Level 5
Posts: 979
Joined: Tue Jan 08, 2019 10:10 am
Location: 3rd rock from Sun

Re: How to continue from here - Terminal help required....

Post by GELvdH »

Could you please specify what model printer/scanner you are trying to install. Is it an all in one laser or inkjet?
eu2
Level 3
Level 3
Posts: 105
Joined: Sat Oct 15, 2016 8:16 pm
Contact:

Re: How to continue from here - Terminal help required....

Post by eu2 »

GELvdH wrote: Wed Nov 24, 2021 5:22 pm Could you please specify what model printer/scanner you are trying to install. Is it an all in one laser or inkjet?
Also please specify how you are connecting ie usb, lan cable or wifi.

For quite some time on new installs I only have had to run the brother installer if I need to use the scanner as my brother laser all in one will print out of the box.

To save yourself future trouble, imho it's best to always use a lan cable and give your printer a static ip address from your router.
You can confirm the ip address several ways; one way is to print your network configuration from your printer.
Menu>Print Reports>Network Config

In my example (my case), my printer has a static IP on 192.168.0.60

@choyas-gogo

From the directory you downloaded your installer, you need to specify your printer.

ie: If you have a Brother MFC-L2700DN

You would run:

Code: Select all

sudo bash linux-brprinter-installer-2.2.3-1 MFC-L2700DN
ie: For myself my installer version (last time I downloaded it) is linux-brprinter-installer-2.2.2-2

This is what happens (note I select to specify the Device URI):

Code: Select all

e2@basket-of-fire:~/Downloads$ sudo bash linux-brprinter-installer-2.2.2-2 MFC-L2700DN
You are going to install following packages.
   mfcl2700dnlpr-3.2.0-1.i386.deb
   mfcl2700dncupswrapper-3.2.0-1.i386.deb
   brscan4-0.4.10-1.amd64.deb
   brscan-skey-0.3.1-2.amd64.deb
OK? [y/N] ->y

dpkg -x mfcl2700dnlpr-3.2.0-1.i386.deb /
dpkg -x mfcl2700dncupswrapper-3.2.0-1.i386.deb /
(Reading database ... 376221 files and directories currently installed.)
Removing mfcl2700dncupswrapper:i386 (3.2.0-1) ...
Purging configuration files for mfcl2700dncupswrapper:i386 (3.2.0-1) ...
dpkg-deb: building package 'mfcl2700dnlpr' in 'mfcl2700dnlpr-3.2.0-1a.i386.deb'.
dpkg -b ./brother_driver_packdir mfcl2700dnlpr-3.2.0-1a.i386.deb
dpkg-deb: building package 'mfcl2700dncupswrapper' in 'mfcl2700dncupswrapper-3.2.0-1a.i386.deb'.
dpkg -b ./brother_driver_packdir mfcl2700dncupswrapper-3.2.0-1a.i386.deb
dpkg -i --force-all mfcl2700dnlpr-3.2.0-1a.i386.deb
(Reading database ... 376216 files and directories currently installed.)
Preparing to unpack mfcl2700dnlpr-3.2.0-1a.i386.deb ...
Unpacking mfcl2700dnlpr:i386 (3.2.0-1) over (3.2.0-1) ...
Setting up mfcl2700dnlpr:i386 (3.2.0-1) ...
dpkg -i --force-all mfcl2700dncupswrapper-3.2.0-1a.i386.deb
Selecting previously unselected package mfcl2700dncupswrapper:i386.
(Reading database ... 376216 files and directories currently installed.)
Preparing to unpack mfcl2700dncupswrapper-3.2.0-1a.i386.deb ...
Unpacking mfcl2700dncupswrapper:i386 (3.2.0-1) ...
Setting up mfcl2700dncupswrapper:i386 (3.2.0-1) ...
lpadmin -p MFCL2700DN -E -v dnssd://Brother%20MFC-L2700DN%20series._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-30055cee566d -P /usr/share/ppd/brother/brother-MFCL2700DN-cups-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] ->y


0: ipps
1: cups-brf:/
2: lpd
3: socket
4: beh
5: hp
6: ipp
7: serial:/dev/ttyS0?baud=115200
8: https
9: http
10: smb
11: hpfax
12: dnssd://Brother%20MFC-L2700DN%20series._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-30055cee566d
13: lpd://BrotherPrinterD/BINARY_P1
14: ipp://Brother%20MFC-L2700DN%20series._ipp._tcp.local/
15 (I): Specify IP address.
16 (A): Auto. (dnssd://Brother%20MFC-L2700DN%20series._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-30055cee566d)

select the number of destination Device URI. ->15

 enter IP address ->192.168.0.60
lpadmin -p MFCL2700DN -v socket://192.168.0.60 -E
Test Print? [y/N] ->n

You are going to install following packages.
   brscan4-0.4.10-1.amd64.deb
dpkg -i --force-all brscan4-0.4.10-1.amd64.deb
(Reading database ... 376221 files and directories currently installed.)
Preparing to unpack brscan4-0.4.10-1.amd64.deb ...
Unpacking brscan4 (0.4.10-1) over (0.4.10-1) ...
Setting up brscan4 (0.4.10-1) ...
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.1-2.amd64.deb
dpkg -i --force-all brscan-skey-0.3.1-2.amd64.deb
(Reading database ... 376221 files and directories currently installed.)
Preparing to unpack brscan-skey-0.3.1-2.amd64.deb ...
Unpacking brscan-skey (0.3.1-2) over (0.3.1-2) ...
Setting up brscan-skey (0.3.1-2) ...
brsaneconfig4 -a name=MFC-L2700DN model=MFC-L2700DN ip=192.168.0.60
e2@basket-of-fire:~/Downloads$ 
After rebooting you should see and be able to scan with eg "Document Scanner".

To use the scan button (not much point in my use case as I have a box next to the printer).

Test first:

Code: Select all

e2@basket-of-fire:~$ brscan-skey -l

 MFC-L2700DN       : brother4:net1;dev0  : 192.168.0.60         Active
You then need to run brscan-skey each time you reboot or add it to the startup applications as a command.

For this session:

Code: Select all

e2@basket-of-fire:~$  brscan-skey
e2@basket-of-fire:~$ 
Now when I press the scan button on the printer and select PC and image the scan will be sent to my desktop and open as a tif or if I select file it will be sent and saved in ~/brscan.

Your mileage may vary, depending on the model and type of your printer and how you are using it.
I'm merely showing what works very reliably for myself.

Good luck.
choyas-gogo
Level 1
Level 1
Posts: 22
Joined: Sun Nov 07, 2021 2:18 am

Re: How to continue from here - Terminal help required....

Post by choyas-gogo »

Hi guys,

Thank you for your reply posts. Herewith additional information that may or may not be useful :-

A) My pc is a hot-swap bay desk-top meaning i can connect any HDD (one only) at a single time to be run.
Each HDD or SSD has its own OS whether its Win 7 or Win 10 or LM Cinnamon 20 ... etc.

1. Printer is BROTHER HL-L2380DW and only connected via USB - and ONLY connected to pc (offline mode) when i need
something printed. My printer apart from initial setup (only in LM , as i can setup Printer offline with WinTen),is not
allowed to go online because of the issues of (Printer calling home). Plz also note that this post refers to setup LM
Cinnamon 20.2 on a single 1TB HDD with NO dual boot system, no Windows in this HDD.

2. I have another HDD with LM Cinnamon 20.0 on a single 1TB HDD (again not dual boot) and the installation of
Printer BROTHER HL-L2380DW ran smoothly with no issues. I am fully able to print and scan from this particular
HDD.

3. The issues only arise from trying to install Scan drivers (print drivers no problem) on LM Cinnamon 20.2.
I only have wireless internet which is a non-static address. But again i dont use my printer when i am online.
I dont use my pc to connect to another pc or device within my home, (it is not a laptop) and i dont allow file
transfer, remote desktop connection - lan or wwan, dont have social media accounts and dont use any chat
programs like Teamspeak, Discord or Whatsapp etc and NO clouds.

4. I installed the Printer drivers following the instructions based on the post "Easy Linux Tips Project" successfully with
the other HDD as mentioned in (2) above with no issues but with this HDD installed with LM Cinnamon 20.2 (UMA),
i can only followed thru the instructions right up to where the installation Question about the Device URI, and though
i answer N for USB printer, what follows was not a REBOOT your computer option but the stuff that i posted in the OP text box.

So yeah i am stumped ....
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: How to continue from here - Terminal help required....

Post by brian_p »

choyas-gogo wrote: Fri Nov 26, 2021 6:42 pm
So yeah i am stumped ....
Let's try to unstump you. Give

Code: Select all

lsusb -v | grep -A 3 bInterfaceClass.*7
--
Brian.
choyas-gogo
Level 1
Level 1
Posts: 22
Joined: Sun Nov 07, 2021 2:18 am

Re: How to continue from here - Terminal help required....

Post by choyas-gogo »

Hello Brian _p,

Thank you for your input. Can you kindly brief me on the use of that code that you recommend, and how should i interact with it after?
Because i shiver at the thought of inputting some codes into the terminal and not being able to comprehend what its for and how i should interact
or input further code to move on. If im stuck in that code i might not get out of it without wrecking the terminal.

walking in a maze of unknown...

choyas-gogo
User avatar
AndyMH
Level 21
Level 21
Posts: 13716
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: How to continue from here - Terminal help required....

Post by AndyMH »

Nothing dangerous, lsusb = list usb devices, -v means verbose output and it generates a lot so grep is filtering the output to get the information brian wants to see, in my case nothing:

Code: Select all

andy@T432 ~ $ lsusb -v | grep -A 3 bInterfaceClass.*7
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
choyas-gogo
Level 1
Level 1
Posts: 22
Joined: Sun Nov 07, 2021 2:18 am

Re: How to continue from here - Terminal help required....

Post by choyas-gogo »

Hi there, (to Andy MH and Brian_p)

Thank you for your helpful suggestion, I will work on it this wkend and post the printout.

Kind regards.



choyas-gogo
Locked

Return to “Printers & Scanners”