• Home

Raspberry Pi printing server (with Brother HL-2035 inside)

Here is some steps to install a printing server on a Raspberry Pi :

  • install, boot and execute raspi-config on Raspbian; reboot
  • sudo apt-get get update && apt-get upgrade
  • sudo apt-get install cups cups-pdf
  • sudo apt-get install foomatic-db
  • sudo usermod -a -G lpadmin pi
  • sudo vim /etc/cups/cupsd.conf

Look for "Listen localhost:631" and replace by "Port 631"

Then do these mods :

< Location / >
 # Restrict access to the server...
 Order allow,deny
 Allow @local
 < /Location >
 < Location /admin >
 # Restrict access to the admin pages...
 Order allow,deny
 Allow @local
 < /Location >
 < Location /admin/conf >
 AuthType Default
 Require user @SYSTEM
 # Restrict access to the configuration files...
 Order allow,deny
 Allow @local
 < /Location >

  • Save and sudo /etc/init/cups restart
  • Browse to https://yourip:631 and add a printer don't forget to share it.

If you own a Brother HL-2035 (or a 2030/2040), don't use CUPS+gutenprint but the Foomatic "driver" suggested by the CUPS web admin panel.

Print Email