Connecting Brother DCP-B7520DW MFP to Arch Linux via WiFi

Date: February 07, 2020

It’s relatively easy to connect modern multifunction printers to Windows systems. However, the same step on Linux systems can take more time and effort. This guide contains steps to connect Brother DCP-B7520DW to Arch Linux release 2020.02.01 system over WiFi.

There 2 available options: install all the components manually and install via Brother script.

First install option starts from commands pacman -Sy (updating package list), pacman -S cups (installing print server).

After the installation CUPS server should be launched via command systemctl start org.cups.cupsd.service. Optionally you can also enable its autostart by systemctl enable org.cups.cupsd.service.

Since now CUPS server can be accessed via address http://localhost:631. By default it launches only on localhost and can’t be accessed via your IP.

lpadmin -p MyPrinter -E -v ipp://PRINTER_IP/ipp/print -m everywhere is the main command to add printer to CUPS server. This command can have multiple additional parameters, which are described on man page. Parameter -m everywhere quieries printer to get PDD file, -E enables printer and lets it accept jobs.

CUPS start

The server is connected to printer, but printing is unavailable because of one package missing: ghostscript.

CUPS error

pacman -S ghostscript installs necessary package. After this step test page prints successfully.

CUPS successful print

The printer is successfully connected, and we can start connecting scanner to the system. To do that, we need to install several packages.

pacman -S dpkg installs tool for driver .deb package installation.

pacman -S sane, installs command-line scan tool.

Now it’s necessary to download scanner driver. It can be taken from Brother support page, there are both 32-bit and 64-bit versions. Driver can be installed via command dpkg -i DOWNLOADED_FILE_PATH.

brsaneconfig4 -a name=YOUR_DEVICE_NAME model=YOUR_DEVICE_MODEL ip=YOUR_PRINTER_IP connects scaner to the system. Paramaters YOUR_DEVICE_NAME and YOUR_DEVICE_MODEL seem to be necessary only as ‘title’ of the scanner inside the system.

scanimage -L command shows the list of available scanners in the system.

scanimage --format=png --output-file test.png --progress launches test scan and saves it as test.png file.

There are various options for scanning GUI. One of them is skanlite.

pacman -S skanlite installs GUI scanning application.

Skanlite

Second option of MFP installation is running Brother Driver Install Tool, which automatically installs printer driver, scaner driver and scaner key tool. However, the script v.2.2.1-1 didn’t launch - it couldn’t properly detect whether cups, wget and dpkg are installed on Arch Linux. Additionally it requires symbolic links in /etc/init.d folder for cupsys, cups, lpd, lprbg even if script is modified to bypass cups, wget and dpkg check, which made a little sense for me to continue script correction (because correct installation by such script can’t be guaranteed).

Script unseccessful