Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trustlix/bc4dbf24774c7bc3963634821e56854c to your computer and use it in GitHub Desktop.
Save trustlix/bc4dbf24774c7bc3963634821e56854c to your computer and use it in GitHub Desktop.
Minimal instructions to install Printer/Scanner combo "Brother DCP-J4120DW" under Arch Linux

General

  • Power up the printer, install cartridges
  • Settings -> Wi-Fi -> Setup-Wizard to connect printer to your network
  • Settings -> Wi-Fi -> TCP/IP, note IP address (mine is 192.168.1.8)
  • check if printer is reachable on the network: ping 192.168.1.8
  • create new user "lp" in group "lp": sudo useradd -s /bin/false -g lp lp

Install printer

  • install driver from AUR: yay brother-dcpj4120dw
  • install CUPS, enable, start:
    • sudo pacman -S cups
    • sudo systemctl enable org.cups.cupsd.service
    • sudo systemctl start org.cups.cupsd.service
  • open localhost:631 in webbrowser
  • Administration -> Add Printer
  • (to authenticate, use username 'root' and your root password)
  • "Internet Printing Protocol (IPP)"
  • put "ipp://192.168.1.8:631/ipp/print" into Connection field (using the correct IP)
  • fill in "Name" field
  • Make:"Brother", Model:"Brother DCP-J4120DW CUPS (en)"
  • click "Add Printer"
  • set default options and click "Set Default Options"
  • Maintainance -> Print test page

Install scanner

  • install sane: sudo pacman -S sane
  • add printer IP to file '/etc/sane.d/net.conf'
  • install brscan4: yay brscan4
  • install brscan-skey: yay brscan-skey
  • add scanner: sudo brsaneconfig4 -a name='brother' model='DCP-J4120DW' ip=192.168.1.8
  • restart sane: sudo systemctl restart saned.socket
  • check if scanner is recognised: scanimage --list-devices
  • scan a test page: scanimage --device 'brother4:net1;dev0' > /tmp/test.pnm
  • optionally install a frontend, for example: yay gscan2pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment