Skip to content

Instantly share code, notes, and snippets.

@johnantoni
Created January 12, 2014 19:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save johnantoni/8389555 to your computer and use it in GitHub Desktop.
Save johnantoni/8389555 to your computer and use it in GitHub Desktop.
raspberry pi printer server with cups
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
@johnantoni
Copy link
Author

then goto the raspberry pi's ip address http://XXX.XXX.XXX.XXX:631

...using the root password to access the administration web site

@johnantoni
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment