So, once again, Linux proves that nothing is simple or straight forward.
I have a Brother HL-5370DL connected to a Mac-Mini and shared. Both CentOS and OSX are using CUPS. This should be a piece of cake. Umm… Nope.
Applications System Printers UnLock MyRootPassword + 10.X.X.X (The IP Address of the Mac Mini) Brother_HL_5370DW_series (Name of Shared Printer Appears) Add
So.. the printer is there. Yay! Print Test Page.
Let’s look at the log..
Stopping job because the scheduler could not execute a filter
Well.. that looks like it’s trying to point the drivers to where they would be on OS X.
Let’s go into CUPS.
Applications Internet Firefox localhost:631 Printers Brother_HL_5370DW_series Drop-Down Administration - Select Modify Printer User Name: root Password: MyRootPassword OK Continue Continue Make: Brother Model: There is only Brother HL-5370DW series CUPS (no other for HL-5370)
So we know the current driver is not correct, and there doesn’t seem to be another driver.
Download and install the correct CUPS driver.
FireFox http://support.brother.com/g/s/id/linux/en/download_prn.html#HL-5370DW download lpr driver rpm download cups wrapper driver rpm Applications Utilities Terminal su MyRootPassword yum install glibc.i686 (to FIX ld-linux.so.2: bad ELF interpreter: No such file or directory ERROR) cd /home/myusername/Downloads rpm -ivh hl5370dwlpr-2.0.3-1.i386.rpm (--replacepkgs if you ran the RPM prior to installing glibc.i686 and got an ERROR) rpm -ivh cupswrapperHL5370DW-2.0.4-1.i386.rpm systemctl restart cups https://localhost:631 Printers Brother_HL_5370DW_series Drop-Down Administration - Select Modify Printer Continue Continue Make: Brother Model: Brother HL5370DW for CUPS (en) Modify Printer
Print another Test Page and… Firewall /Security Issues:
/user/bin/brprintconflsr2 attempted to access execmem
Click the troubleshoot button and it tells you how to fix this.
Terminal su MyRootPassword setsebool -P cups_execmem 1 grep brprintconflsr2 /var/log/audit/audit.log | audit2allow -M mypol semodule -i mypol.pp
Print another Test Page. No More Firewall /Security issues. Still No Printing.
This printer, luckily, also has Wi-Fi. So… let’s try that instead of the shared queue on the Mac Mini.
Applications System Printers UnLock MyRootPassword Brother_HL_5370W_series - Printer Removed + 10.X.X.X (IP address of the Printer's Wi-Fi) JetDirect-Printer (of the 3 choices) Add Brother : Brother HL5370DW for CUPS Select Brother-HL5370DW-for Click on Brother-HL5370DW-for (on the right. It becomes editable) Change to Brother_HL5370DW FireFox localhost:631 Printers Brother_HL5370DW Drop-Down Administration - Select Modify Printer User Name: root Password: MyRootPassword OK (notice it's now socket://... instead of ipp://...) Continue Description: Brother_HL5370DW Location: MacMini Sharing: UnCheck Share This Printer Continue Modify Printer Printers Brother_HL5370DW Drop-Down Administration - Select Set Default Options Options Installed Number of Input Trays : 1 General Media Size : Letter Set Default Options
Print another Test Page. Yay. It prints.
I can now print to the printer. I just cannot print through the shared queue on the Mac Mini, as originally planned.
That is a task for another day.