Update 20230412:
I just documented what I did at home as a guide.
Go to:
https://support.brother.com/g/b/downloadend.aspx?c=us&lang=en&prod=hl2275dw_us&os=128&dlid=dlf006893_000&flang=4&type3=625
Download the linux-brprinter-installer-2.2.3-1.gz
Save it to an empty folder.
cd to that folder.
Unpack it with your favorite unpacker.
Set permission on the resulting linux-brprinter-installer-2.2.3-1 to "executable".
Execute it in bash terminal/konsole.
Input model name ->hll2375DW
You are going to install following packages.
hll2375dwpdrv-4.0.0-1.i386.deb
OK? [y/N] ->y
You are going to install following packages.
hll2375dwpdrv-4.0.0-1.i386.deb
OK? [y/N] ->y
License Agreement, [lots and lots of it]
Do you agree? [Y/n] ->y
Do you agree? [Y/n] ->y
wget -T 10 -nd --no-cache https://download.brother.com/pub/com/linux/linux/packages/hll2375dwpdrv-4.0.0-1.i386.deb
--2023-04-12 10:02:15-- https://download.brother.com/pub/com/linux/linux/packages/hll2375dwpdrv-4.0.0-1.i386.deb
Resolving download.brother.com (download.brother.com)... 2.23.145.32
Connecting to download.brother.com (download.brother.com)|2.23.145.32|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 123048 (120K) [text/plain]
Saving to: ‘hll2375dwpdrv-4.0.0-1.i386.deb’
hll2375dwpdrv-4.0.0-1.i386.de 100%[================================================>] 120,16K --.-KB/s in 0,02s
2023-04-12 10:02:15 (6,22 MB/s) - ‘hll2375dwpdrv-4.0.0-1.i386.deb’ saved [123048/123048]
dpkg -x hll2375dwpdrv-4.0.0-1.i386.deb /
dpkg-deb: building package 'hll2375dwpdrv' in 'hll2375dwpdrv-4.0.0-1a.i386.deb'.
dpkg -b ./brother_driver_packdir hll2375dwpdrv-4.0.0-1a.i386.deb
dpkg -i --force-all hll2375dwpdrv-4.0.0-1a.i386.deb
Selecting previously unselected package hll2375dwpdrv:i386.
(Reading database ... 384566 files and directories currently installed.)
Preparing to unpack hll2375dwpdrv-4.0.0-1a.i386.deb ...
Unpacking hll2375dwpdrv:i386 (4.0.0-1) ...
Setting up hll2375dwpdrv:i386 (4.0.0-1) ...
lpadmin -p HLL2375DW -E -v dnssd://Brother%20HL-L2375DW%20series._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-3c2af46d
a396 -P /usr/share/ppd/brother/brother-HLL2375DW-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: cups-brf:/
1: socket
2: beh
3: https
4: lpd
5: ipps
6: ipp
7: http
8: serial:/dev/ttyS0?baud=115200
9: hp
10: hpfax 11: dnssd://Brother%20HL-L2375DW%20series._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-3c2af46da396
12: ipp://Brother%20HL-L2375DW%20series._ipp._tcp.local/
13 (I): Specify IP address. 14 (A): Auto. (dnssd://Brother%20HL-L2375DW%20series._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-3c2af46da396)
select the number of destination Device URI. ->192.168.1.93
Test Print? [y/N] ->y
wait 5s.
lpr -P HLL2375DW /usr/share/cups/data/testprint
--2023-04-12 10:02:15-- https://download.brother.com/pub/com/linux/linux/packages/hll2375dwpdrv-4.0.0-1.i386.deb
Resolving download.brother.com (download.brother.com)... 2.23.145.32
Connecting to download.brother.com (download.brother.com)|2.23.145.32|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 123048 (120K) [text/plain]
Saving to: ‘hll2375dwpdrv-4.0.0-1.i386.deb’
hll2375dwpdrv-4.0.0-1.i386.de 100%[================================================>] 120,16K --.-KB/s in 0,02s
2023-04-12 10:02:15 (6,22 MB/s) - ‘hll2375dwpdrv-4.0.0-1.i386.deb’ saved [123048/123048]
dpkg -x hll2375dwpdrv-4.0.0-1.i386.deb /
dpkg-deb: building package 'hll2375dwpdrv' in 'hll2375dwpdrv-4.0.0-1a.i386.deb'.
dpkg -b ./brother_driver_packdir hll2375dwpdrv-4.0.0-1a.i386.deb
dpkg -i --force-all hll2375dwpdrv-4.0.0-1a.i386.deb
Selecting previously unselected package hll2375dwpdrv:i386.
(Reading database ... 384566 files and directories currently installed.)
Preparing to unpack hll2375dwpdrv-4.0.0-1a.i386.deb ...
Unpacking hll2375dwpdrv:i386 (4.0.0-1) ...
Setting up hll2375dwpdrv:i386 (4.0.0-1) ...
lpadmin -p HLL2375DW -E -v dnssd://Brother%20HL-L2375DW%20series._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-3c2af46d
a396 -P /usr/share/ppd/brother/brother-HLL2375DW-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: cups-brf:/
1: socket
2: beh
3: https
4: lpd
5: ipps
6: ipp
7: http
8: serial:/dev/ttyS0?baud=115200
9: hp
10: hpfax 11: dnssd://Brother%20HL-L2375DW%20series._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-3c2af46da396
12: ipp://Brother%20HL-L2375DW%20series._ipp._tcp.local/
13 (I): Specify IP address. 14 (A): Auto. (dnssd://Brother%20HL-L2375DW%20series._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-3c2af46da396)
select the number of destination Device URI. ->192.168.1.93
Test Print? [y/N] ->y
wait 5s.
lpr -P HLL2375DW /usr/share/cups/data/testprint
Hit Enter/Return key.
root@Bender:/local/imports/BrotherEverything/20230412#
That's it! I guess (at least for now) the hard way still works. Even if it doesn't you can savor what you didn't had to do, this time.
The Complete and Final Installation (WiFi) of the Brother HL-L2375DW in Ubuntu 18.04 LTS
FINDING INSTALLATION INSTRUCTIONS/DRIVERS================================
Went here:
https://support.brother.com/g/b/faqtop.aspx?c=us&lang=en&prod=hl2275dw_us
and in "Search by Keyword(s)" I entered "Linux" and clicked "Search"
The first result was the link
"1 To install the printer driver easily using a tool." (Linux)
Which in it's turn took me to the page
https://support.brother.com/g/b/faqend.aspx?c=us&lang=en&prod=hl2275dw_us&faqid=faq00100556_000
On that page, fairly high up was a download link
"> Click here to download the tool."
which took me to the page
https://support.brother.com/g/b/midlink_os.aspx?c=us&lang=en&prod=hl2275dw_us&site=pc&type3=625&orgc=us&orglang=en&orgprod=hl2275dw_us&targetpage=18
where "Linux" was checked and all I had to do was to check "Linux (deb)",
read the "Notes before downloading" and click on the button "Agree to the EULA and Download.
NOTE: I did not use the .deb version of the installer, I already had the file
linux-brprinter-installer-2.2.1-1
but I strongly suspect you'll end up with that script in any case.
Pls remember to check with your file manager (or Terminal) it's executable! Permissions should be
like "-rwxr--xr--x" or thereabout. "x" for execute!
If not use chmod 750 <user1:user2>
Well, all that you could have figured out yourself, but, just in case...
I think their Linux drivers are horribly hard to find. Just as an exercise, go to their homepage
and try to find it via links they supply! Or don't :0)
*NOTE*. The web address contains "prod=hl2275dw" but in reality there is a whole database of drivers in this installer. I had to try for a while to find the correct way of entering MY printer's model name as an answer to the very first question from the installer. If I remember correctly, it was "hll2375dw" modeled after the entry in the web address.
On the printer's cover this is set as "HL-L2375DW".
INSTALLATION COMMANDS
==================
In Konsole/Terminal as root
("sudo su" followed by "Enter" is a quick, dirty and unsecure, but effective, way :0 to
get the prompt that says "You're having 'root' privileges, '#'
(security related things needed to...)
># apt-get install apparmor-utils
(... lower the seurity in cups!)
># aa-complain /usr/sbin/cupsd
Answer:"Setting /usr/sbin/cupsd to complain mode."
(pointing a link entry, 'lpd', to the printing system, 'cups'
># ln -s /etc/init.d/cups /etc/init.d/lpd
(create a directory to store files to be printed via lpd)
># mkdir /var/spool/lpd
(install command line interface cshell for some outlandish scripts in the installation)
># apt-get install csh
(install tools needed for printing)
># apt-get install sane-utils
(opening communication in- and out ports in the firewall
># sudo iptables -A INPUT -p udp --dport 54925 -j ACCEPT
># sudo iptables -A OUTPUT -p tcp --dport 54921 -j ACCEPT
(install PostScript tools)
># apt-get install psutils
With your favorite editor (vim?, nano?) create:
/lib/systemd/system/cups-lpd.socket
and enter the following:
[Unit]
Description=CUPS LPD Server Socket
PartOf=cups-lpd.service
[Socket]
ListenStream=515
Accept=true
[Install]
WantedBy=sockets.target
and then save it.
Then create:
/lib/systemd/system/cups-lpd@.service
and enter the following:
[Unit]
Description=CUPS LPD server
Documentation=man:cups-lpd(8)
[Service]
ExecStart=/usr/lib/cups/daemon/cups-lpd
StandardInput=socket
[Install]
WantedBy=multi-user.target
and then save it.
># systemctl list-unit-files
in the resulting list, check for 'cups-lpd@.service'
IF it is 'disabled' do:
># systemctl enable cups-lpd@.service
THEN do :
># systemctl list-unit-filesand check that
'cups-lpd@.service' is 'enabled'
OK, now we're on track again. Do:
># sudo systemctl start cups-lpd.socket
# (No feedback from the system here, you just the prompt back)
WHAT TO DO IN CUPS
==============
With all of the above done stop and start CUPS:
# /etc/init.d/cups stop
[ ok ] Stopping cups (via systemctl): cups.service.
# /etc/init.d/cups start
[ ok ] Starting cups (via systemctl): cups.service.
In CUPS add printer by choosing "LPD/LPR Host or Printer "
and on the next page enter the socket in the text input called "Connection" like
socket://[fdeb:eb74:f12c:0:fe01:7cff:feab:e6fd]
(See "TO FIND THE IPV6 SOCKET", below)
and click continue.
You have then to choose your printer make and the correct
driver eventually, using a bit of your imagination. The driver may be found in an unexpected place in the list, the sorting seemed to be haphazardly done, so be imaginative!
I had problems finding the correct socket and I *think* maybe the socket can be found using the procedure below:
TO FIND THE IPV6 SOCKET
==================
To get the last part of the socket...
# arp -a
myhome.mynet (192.168.1.1) at 00:02:61:b1:a7:ae [ether] on wlo1
BrotherEAN (192.168.1.93) at fc:01:7c:ab:e6:fd [ether] on wlo1
android-660492250c86bb45 (192.168.1.151) at <incomplete> on wlo1
nova1 (192.168.1.92) at 7c:8b:ca:08:5b:fb [ether] on wlo1
Then, to get the first part of the socket...:
# ip -6 neigh show
fe80::202:61ff:feb1:a7ae dev wlo1 lladdr 00:02:61:b1:a7:ae router STALE
fdeb:eb74:f12c:0:202:61ff:feb1:a7ae dev wlo1 lladdr 00:02:61:b1:a7:ae router STALE
# ip -6 neigh show
fe80::202:61ff:feb1:a7ae dev wlo1 lladdr 00:02:61:b1:a7:ae router STALE
fdeb:eb74:f12c:0:202:61ff:feb1:a7ae dev wlo1 lladdr 00:02:61:b1:a7:ae router STALE
# ip -6 neigh show
fe80::202:61ff:feb1:a7ae dev wlo1 lladdr 00:02:61:b1:a7:ae router STALE
fdeb:eb74:f12c:0:202:61ff:feb1:a7ae dev wlo1 lladdr 00:02:61:b1:a7:ae router STALE
Grabbing the MAC address for my printer "BrotherEAN" and converting the second
hex number "c" ton "e" using the table below
fc:01:7c:ab:e6:fd
^
( from http://www.sput.nl/internet/ipv6/ll-mac.html )
Where y = X XOR 2. Furthermore 'ff:fe' is inserted and 'fe80::' prepended.
(this is preumably for local network use?)
'y = X XOR 2' means inverting the 2nd bit from the right;
X bin X Hex y bin y Hex
0000 0 0010 2
0001 1 0011 3
0010 2 0000 0
0011 3 0001 1
0100 4 0110 6
0101 5 0111 7
0110 6 0100 4
0111 7 0101 5
1000 8 1010 a
1001 9 1011 b
1010 A 1000 8
1011 B 1001 9
1100 C 1110 e
1101 D 1111 f
1110 E 1100 c
1111 F 1101 d
resulting in: "fe01:7cff:feab:e6fd"
^
The "ip -6 neigh show" results in a listing of IPV6 addresses and, (avoiding the
local net prefixed "fe80::"- addresses) grabbing the first four groups of hex numbers,
"fdeb:eb74:f12c:0:" and concatenate them with the earlier four to this:
fdeb:eb74:f12c:0:fe01:7cff:feab:e6fd
^
and entering this as an printing address in CUPS like: socket://[fdeb:eb74:f12c:0:fe01:7cff:feab:e6fd]
works!
Inga kommentarer:
Skicka en kommentar