Setting up Brother Printer on Kali (or Debian)

I use a Brother MFCJ425W printer at home and the setup was pretty straight forward, I simply downloaded the script form their website and ran it. All I had to do was disable CUPS service first.

Note that I am running the script based on Debian since Kali is based on Debian,

root@kali:~/Downloads# service cups stop
Warning: Stopping cups.service, but it can still be activated by:
  cups.path
root@kali:~/Downloads# service cups stop
Warning: Stopping cups.service, but it can still be activated by:
  cups.path
root@kali:~/Downloads# bash linux-brprinter-installer-2.0.0-1
Input model name ->MFCJ425W

You are going to install following packages.
   mfcj425wlpr-3.0.1-1.i386.deb
   mfcj425wcupswrapper-3.0.0-1.i386.deb
   brscan4-0.4.3-1.i386.deb
   brscan-skey-0.2.4-1.i386.deb
OK? [y/N] ->y

dpkg -x mfcj425wlpr-3.0.1-1.i386.deb /
dpkg -x mfcj425wcupswrapper-3.0.0-1.i386.deb /
(Reading database ... 338494 files and directories currently installed.)
Removing mfcj425wcupswrapper (3.0.0-1) ...
lpadmin: Unable to connect to server: Bad file descriptor
[ ok ] Restarting cups (via systemctl): cups.service.
Purging configuration files for mfcj425wcupswrapper (3.0.0-1) ...
dpkg-deb: building package `mfcj425wlpr' in `mfcj425wlpr-3.0.1-1a.i386.deb'.
dpkg -b ./brother_driver_packdir mfcj425wlpr-3.0.1-1a.i386.deb
dpkg-deb: building package `mfcj425wcupswrapper' in `mfcj425wcupswrapper-3.0.0-1a.i386.deb'.
dpkg -b ./brother_driver_packdir mfcj425wcupswrapper-3.0.0-1a.i386.deb
dpkg -i --force-all mfcj425wlpr-3.0.1-1a.i386.deb
(Reading database ... 338490 files and directories currently installed.)
Preparing to unpack mfcj425wlpr-3.0.1-1a.i386.deb ...
Unpacking mfcj425wlpr (3.0.1-1) over (3.0.1-1) ...
Setting up mfcj425wlpr (3.0.1-1) ...
mkdir: cannot create directory ‘/var/spool/lpd/mfcj425w’: No such file or directory
chown: cannot access ‘/var/spool/lpd/mfcj425w’: No such file or directory
chgrp: cannot access ‘/var/spool/lpd/mfcj425w’: No such file or directory
chmod: cannot access ‘/var/spool/lpd/mfcj425w’: No such file or directory
dpkg -i --force-all mfcj425wcupswrapper-3.0.0-1a.i386.deb
Selecting previously unselected package mfcj425wcupswrapper.
(Reading database ... 338490 files and directories currently installed.)
Preparing to unpack mfcj425wcupswrapper-3.0.0-1a.i386.deb ...
Unpacking mfcj425wcupswrapper (3.0.0-1) ...
Setting up mfcj425wcupswrapper (3.0.0-1) ...
Restarting cups (via systemctl): cups.service.
lpadmin -p MFCJ425W -E -v usb://dev/usb/lp0 -P /usr/share/cups/model/Brother/brother_mfcj425w_printer_en.ppd
#
Will you specify the Device URI? [Y/n] ->y


0: https
1: ipp
2: socket
3: ipps
4: http
5: lpd
6: ipp14
7: smb
8: lpd://BRW0080929E0728/BINARY_P1
9 (I): Specify IP address.
10 (A): Auto. (usb://dev/usblp0)

select the number of destination Device URI. ->9

 enter IP address ->192.168.0.102
lpadmin -p MFCJ425W -v socket://192.168.0.102 -E
Test Print? [y/N] ->y

wait 5s.
lpr -P MFCJ425W /usr/share/cups/data/testprint
You are going to install following packages.
   brscan4-0.4.3-1.i386.deb
dpkg -i --force-all brscan4-0.4.3-1.i386.deb
(Reading database ... 338494 files and directories currently installed.)
Preparing to unpack brscan4-0.4.3-1.i386.deb ...
Unpacking brscan4 (0.4.3-1) over (0.4.3-1) ...
Setting up brscan4 (0.4.3-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.2.4-1.i386.deb
dpkg -i --force-all brscan-skey-0.2.4-1.i386.deb
(Reading database ... 338494 files and directories currently installed.)
Preparing to unpack brscan-skey-0.2.4-1.i386.deb ...
Unpacking brscan-skey (0.2.4-1) over (0.2.4-1) ...
Setting up brscan-skey (0.2.4-1) ...
brsaneconfig4 -a name=MFC-J425W model=MFC-J425W ip=192.168.0.102
Hit Enter/Return key.
root@kali:~/Downloads# 



Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s