CUPS 4 Noobs -- installed but can't print (Brother HL-2270DW on Armbian on Orange Pi)
by mc510 from LinuxQuestions.org on (#4VXFY)
My first ever attempt to install and configure CUPS. Hasn't gone as well as I hoped.
I installed CUPS with the armbian-config utility, which appears to do apt-get -y install cups lpr cups-filters, then I added my user account to lpadmin group.
In CUPS web interface I select my wireless printer; there are no Brother drivers listed, but it says "or select a PPD file" so I used the HL-1660e PPD from openprinters.org which is said to work perfectly with my HL-2270DW. But when I try to print a test page from CUPS, I get "Unable to locate printer "BRN30055C070BA1.local"." I tried changing the URI to the printer's static IP; fixes the error message, but now printing test page just gives "processing" forever and never prints.
Brother provides proprietary linux lpr and cups-wrapper drivers for this printer; they are described as being for i386 architecture (my device is arm) but I've seen comments claiming that there is no architecture-specific code in these drivers. I've not tried anything with them.
CUPS describes printer as
Code:Description: Brother HL-2270DW (CUPS)
Location:
Driver: Brother HL-1660e Foomatic/hl1250 (recommended) (grayscale, 2-sided printing)
Connection: dnssd://Brother%20HL-2270DW%20series._pdl-datastream._tcp.local/
Defaults: job-sheets=none, none media=na_letter_8.5x11in sides=two-sided-long-edgeI don't know what this here output means, but I saw a thread where it was requested:
Code:$ lpstat -t
scheduler is running
no system default destination
device for Brother_HL-2270DW_series: dnssd://Brother%20HL-2270DW%20series._pdl-datastream._tcp.local/
Brother_HL-2270DW_series accepting requests since Sat Nov 30 11:45:03 2019
printer Brother_HL-2270DW_series is idle. enabled since Sat Nov 30 11:45:03 2019
$ sudo egrep -i "name|model|filter" /etc/cups/ppd/*
/etc/cups/ppd/Brother_HL-2270DW_series.ppd:*% "foomatic-rip" backend filter script of Foomatic 4.0.0 or newer. This
/etc/cups/ppd/Brother_HL-2270DW_series.ppd:*PCFileName: "HL1250.PPD"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd:*cupsModelNumber: 2
/etc/cups/ppd/Brother_HL-2270DW_series.ppd:*cupsFilter: "application/vnd.cups-postscript 100 foomatic-rip"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd:*cupsFilter: "application/vnd.cups-pdf 0 foomatic-rip"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd:*ModelName: "Brother HL-1660e"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd:*ShortNickName: "Brother HL-1660e hl1250"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd:*NickName: "Brother HL-1660e Foomatic/hl1250 (recommended)"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd:*driverName hl1250: ""
/etc/cups/ppd/Brother_HL-2270DW_series.ppd.O:*% "foomatic-rip" backend filter script of Foomatic 4.0.0 or newer. This
/etc/cups/ppd/Brother_HL-2270DW_series.ppd.O:*PCFileName: "HL1250.PPD"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd.O:*cupsModelNumber: 2
/etc/cups/ppd/Brother_HL-2270DW_series.ppd.O:*cupsFilter: "application/vnd.cups-postscript 100 foomatic-rip"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd.O:*cupsFilter: "application/vnd.cups-pdf 0 foomatic-rip"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd.O:*ModelName: "Brother HL-1660e"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd.O:*ShortNickName: "Brother HL-1660e hl1250"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd.O:*NickName: "Brother HL-1660e Foomatic/hl1250 (recommended)"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd.O:*driverName hl1250: ""I'm having a difficult time finding and noob-oriented troubleshooting info for CUPS, or even any configuration guides that go beyond "select your driver from the dropdown and whammo it works!" Thanks for any assistance


I installed CUPS with the armbian-config utility, which appears to do apt-get -y install cups lpr cups-filters, then I added my user account to lpadmin group.
In CUPS web interface I select my wireless printer; there are no Brother drivers listed, but it says "or select a PPD file" so I used the HL-1660e PPD from openprinters.org which is said to work perfectly with my HL-2270DW. But when I try to print a test page from CUPS, I get "Unable to locate printer "BRN30055C070BA1.local"." I tried changing the URI to the printer's static IP; fixes the error message, but now printing test page just gives "processing" forever and never prints.
Brother provides proprietary linux lpr and cups-wrapper drivers for this printer; they are described as being for i386 architecture (my device is arm) but I've seen comments claiming that there is no architecture-specific code in these drivers. I've not tried anything with them.
CUPS describes printer as
Code:Description: Brother HL-2270DW (CUPS)
Location:
Driver: Brother HL-1660e Foomatic/hl1250 (recommended) (grayscale, 2-sided printing)
Connection: dnssd://Brother%20HL-2270DW%20series._pdl-datastream._tcp.local/
Defaults: job-sheets=none, none media=na_letter_8.5x11in sides=two-sided-long-edgeI don't know what this here output means, but I saw a thread where it was requested:
Code:$ lpstat -t
scheduler is running
no system default destination
device for Brother_HL-2270DW_series: dnssd://Brother%20HL-2270DW%20series._pdl-datastream._tcp.local/
Brother_HL-2270DW_series accepting requests since Sat Nov 30 11:45:03 2019
printer Brother_HL-2270DW_series is idle. enabled since Sat Nov 30 11:45:03 2019
$ sudo egrep -i "name|model|filter" /etc/cups/ppd/*
/etc/cups/ppd/Brother_HL-2270DW_series.ppd:*% "foomatic-rip" backend filter script of Foomatic 4.0.0 or newer. This
/etc/cups/ppd/Brother_HL-2270DW_series.ppd:*PCFileName: "HL1250.PPD"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd:*cupsModelNumber: 2
/etc/cups/ppd/Brother_HL-2270DW_series.ppd:*cupsFilter: "application/vnd.cups-postscript 100 foomatic-rip"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd:*cupsFilter: "application/vnd.cups-pdf 0 foomatic-rip"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd:*ModelName: "Brother HL-1660e"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd:*ShortNickName: "Brother HL-1660e hl1250"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd:*NickName: "Brother HL-1660e Foomatic/hl1250 (recommended)"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd:*driverName hl1250: ""
/etc/cups/ppd/Brother_HL-2270DW_series.ppd.O:*% "foomatic-rip" backend filter script of Foomatic 4.0.0 or newer. This
/etc/cups/ppd/Brother_HL-2270DW_series.ppd.O:*PCFileName: "HL1250.PPD"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd.O:*cupsModelNumber: 2
/etc/cups/ppd/Brother_HL-2270DW_series.ppd.O:*cupsFilter: "application/vnd.cups-postscript 100 foomatic-rip"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd.O:*cupsFilter: "application/vnd.cups-pdf 0 foomatic-rip"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd.O:*ModelName: "Brother HL-1660e"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd.O:*ShortNickName: "Brother HL-1660e hl1250"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd.O:*NickName: "Brother HL-1660e Foomatic/hl1250 (recommended)"
/etc/cups/ppd/Brother_HL-2270DW_series.ppd.O:*driverName hl1250: ""I'm having a difficult time finding and noob-oriented troubleshooting info for CUPS, or even any configuration guides that go beyond "select your driver from the dropdown and whammo it works!" Thanks for any assistance