PDA

View Full Version : [SOLVED] Installing Brother DCP-L2520DW printer/scanner



MgFrobozz
August 20th, 2015, 06:42 PM
[This was carried out on ubuntu 14.04 LTS 64-bit]

On the Amazon pages, there are multiple reports of installations being unable to connect over the network to the printer because of the Deep Sleep mode issue. I got around this in the following procedure by using a DHCP-assigned static IP address instead of the default/auto URI assigned by the installation tool.



Turn on the printer and get its MAC address using the front-panel controls:

Push "MENU"
Use up/+ and down/- keys to select "4.Network". Push "OK"
Use up/+ and down/- keys to select "7.MAC Address". Push "OK"
Write down the displayed 12-digit hex number. Mine was "90489A164C9E", which corresponds to MAC address 90:48:9a:16:4c:9e, the address used below. Your address will differ; add ":" after each pair of digits to get the MAC address.
Push "STOP/EXIT" to leave the menu.


Decide on a static IP assignment. I used 192.168.100.110, the IP number used below. Your IP number will likely differ.
Set up the DHCP address on ubuntu:

Edit /etc/udhcpd.conf, and add the assignment (including the MAC address and the IP number) for the printer ...
# Brother DCPL2520DW laser printer
static_lease 90:48:9a:16:4c:9e 192.168.100.110
Edit /etc/hosts, adding an entry. I called it "brother", but you can name it otherwise ...
# Brother DCPL2520 laser printer
192.168.100.110 brother
Restart the DHCP service (in bash) ...
sudo service udhcpd restart


Configure the printer to use WIFI (if desired):

Push "MENU"
Use up/+ and down/- keys to select "4.Network". Push "OK"
Use up/+ and down/- keys to select "3.Setup Wizard". Push "OK"
Display shows "SEARCHING SSID" ; when scanning is complete, it shows (for example) ...
SELECT up/down or OK
my_network
... where "my_network" is the name of a wifi network (SSID). Use up/+ and down/- keys to select the network desired, then push "OK"
For the prompt "Network Key" (the password), for each character in name, use up/+ and down/- keys to select the next character, then push "OK". After pushing "OK" for the last character, push "OK" once more to finish.
For the prompt "Apply Settings?", push "OK"
The printer will connect, then print a sheet with the network name (SSID) and mac address. It also shows other discovered networks.
Push "STOP/EXIT"


Configure the printer to use DHCP:

Push "MENU"
Use up/+ and down/- keys to select "4.Network". Push "OK"
Use up/+ and down/- keys to select "1.TCP/IP". Push "OK"
Use up/+ and down/- keys to select "1.Boot Method". Push "OK"
Use up/+ and down/- keys to select "DHCP". Push "OK"
Use up/+ and down/- keys to select the number of DHCP retries (default is 0003)
Push "STOP/EXIT"
Hold down the power button until display shows ...
Shutting Down
... then release the power button.
Push the power button again to turn on the printer.
Note: if you use the network menu to report the DHCP address, it will show "000.000.000.000", but it actually does have the address. To confirm that it's connected on that address, run one of the following in bash (using the name from /etc/hosts, or the IP number assigned by DHCP):
ping brother
ping 192.168.100.110




Download "Driver Install Tool" (linux-brprinter-installer-2.0.0-1.gz) from the Linux support page for Brother DCP-L2520DW ...
http://support.brother.com/g/b/downloadlist.aspx?c=us&lang=en&prod=dcpl2520dw_us_eu&os=128
Don't download the other packages, which are fetched by the installer.
Unzip and run the installer (in bash) ...
gunzip linux-brprinter-installer-2.0.0-1.gz
sudo bash linux-brprinter-installer-2.0.0-1 dcpl2520dw
... with these responses:

​OK? [y/N] ->y [oks installation of lpr, cupswrapper, brscan4, and brscan-skey]
Do you agree? [Y/n] ->y [agrees to license restrictions]
Will you specify the Device URI? [Y/n] ->y
select the number of destination Device URI. ->10 [selects "10 (I): Specify IP address"]
enter IP address ->192.168.100.110 [uses the IP address determined above]
Test Print? [y/N] ->y [prints out test page]


Note: when I ran the installer, it complained ...
E: The package brscan-skey needs to be reinstalled, but I can't find an archive for it.
ERROR: No such file or directory [/opt/brother/scanner/brscan-skey/brscan-skey-0.2.4-0.cfg]
... but this appears to affect only the scanner.



Change the printer name from "DCPL2520D" (if desired):

Select from ubuntu menu "Applications/SystemTools/SystemSettings"
Click Printers
Right-click "DCPL2520D" and select "Rename"
Enter the new name


Add support for the scanner. The port number for the scanner in this printer is 54921; the port number for other Brother printers will likely differ [anyone know why Brother does not use the same port number for all scanners in their product line?]

Open the scanner port in the firewall. On my system, I used the following (your adapter may be eth0 instead):
iptables -A OUTPUT -o eth1 -p tcp --destination-port 54921 -j ACCEPT
Install the scanner, using the IP number determined above:
brsaneconfig4 -a name="brother" model="DCP-L2520DW" ip=192.168.100.110
​brsaneconfig4 doesn't seem to set up the sane configuration files correctly. Edit /etc/sane.d/dll.conf, and add (or uncomment) the following lines:
net
brother4
Edit /etc/sane.d/brother.conf, and add the following comment and configuration line:
# Brother DCP-L2520DW:
net tcp 192.168.100.110 54921
Restart the sane service:
sudo service saned restart
Test that your system can see the scanner by issuing this bash command:
scanimage -L
... which should report something like ...
device `brother4:net1;dev0' is a Brother brother DCP-L2520DW
Verify that the scan works by loading a printed page into the scanner, then issuing this bash command:
scanimage --device="brother4:net1;dev0" > ~/temp.pnm
You can also use simple-scan. Install with bash command "apt-get simple-scan", which makes it available as simple-scan in bash, and Applications/Graphics/SimpleScan in the system menu.

SeijiSensei
August 21st, 2015, 03:04 PM
I just gave my Ethernet-connected Brother printer a static IP outside the DHCP-assigned range. Works fine.