Sudo lpoptions -p HL-2270DW -o media=letter
It will be something like usb://Brother/HL-2270DW%20series?serial=D4N207646 Run sudo lpinfo -v | grep usb to get the device name of your printer.(author’s shameful note: if you’re not looking, I find it surprisingly easy to plug USB B into the ethernet jack) Plug in the printer, verify that it shows up using sudo lsusb or sudo dmesg.
Sudo apt-get update & sudo apt-get install lpr cups ghostscript git cmake libcups2-dev libcupsimage2-devĬd brlaser-6 & cmake.
(Option 1, not recommended) Upgrade to Debian 11 bullseye (current testing release).Log into your raspberry pi to run the following steps I have written a convenience tool for this step, but you can also find any number of standard guides.
At the time of writing the latest version is 10 (buster)–once 11+ is released this will be much easier.
The brother-provided driver does not run on arm processors like the raspberry pi, so we will instead use the open-source brlaser.Įdit: This setup should also work on the following Brother monochrome printers, just substitute the name where needed: Although the below directions work on Raspberry Pi, they should also work on any other system.