Wednesday, September 7, 2016

Add printer to Raspian / Debian with CUPS

This is handy because it has instructions on how to open up the CUPS management page to your lan.

Already on one of my pi boxes.


sudo apt-get install cups
sudo usermod -a -G lpadmin pi

sudo vi /etc/cups/cupsd.conf

Edit lines to remove localhost,  allow local access, file it.
# Only listen for connections from the local machine
# Listen localhost:631
Port 631

    < 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 /etc/init.d/cups restart

access cups from http://host:631/ from your local lan.

No comments:

Post a Comment