Setting up a Brother HL-L2400DW on Arch

By default, on Arch, a lot of the required packages to print are not included. I also ran into some MDNS issues along the way as well.

  1. Install packages:
yay -Syu system-config-printer cups-pdf nss-mdns
  1. Start and enable CUPs:
sudo systemctl enable cups.service && sudo systemctl start cups.service
  1. Modify MNDS configuration1
sudo vim /etc/nsswitch.conf
# Name Service Switch configuration file.
# See nsswitch.conf(5) for details.

passwd: files systemd
group: files [SUCCESS=merge] systemd
shadow: files systemd
gshadow: files systemd

publickey: files

# THIS LINE SHOULD BE THE ONE WITH CHANGES !!
hosts: mymachines mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] files myhostname dns
networks: files

protocols: files
services: files
ethers: files
rpc: files

netgroup: files

The printer should now be addable via either the KDE Printer configuration window or manually via the CUPs configuration webpage2.

Footnotes

  1. Thank you lil_papa on askubuntu for this config https://askubuntu.com/a/1483733

  2. The webpage should be accessible at http://localhost:631/admin/



Updated 104 days ago (5 Jul 2025)