sudo apt-get -y install cups
sudo usermod -a -G lpadmin pi
sudo nano /etc/cups/cupsd.conf
comment out: Listen localhost:631
and replace with: Port 631
then change to this:
< 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 >
restart cups
sudo service cups restart
http://www.bartbania.com/index.php/cups-raspberry-printer/?utm_source=feedly