Skip to content

Instantly share code, notes, and snippets.

@BorysVrublevskyi
Last active March 1, 2021 13:14
Show Gist options
  • Save BorysVrublevskyi/d25fa98eab149e21718a44e939fdf2b1 to your computer and use it in GitHub Desktop.
Save BorysVrublevskyi/d25fa98eab149e21718a44e939fdf2b1 to your computer and use it in GitHub Desktop.
Print Server on Ddebian. Linux Deploy app on Android

CUPS on Debian

sudo apt install cups -y
sudo cp -n /etc/cups/cupsd.conf /etc/cups/cupsd.conf.bak
sudo nano /etc/cups/cupsd.conf
# Listen for connections from the local machine
Listen 192.168.0.15:631
 
# Restrict access to the server
<Location />
  Order allow,deny
  Allow 192.168.0.0/24
</Location>
 
# Default authentication type, when authentication is required
DefaultAuthType Basic
DefaultEncryption IfRequested
 
# Web interface setting
WebInterface Yes
 
# Restrict access to the admin pages
<Location /admin>
  Order allow,deny
  Allow 192.168.0.0/24
</Location>
sudo service cups restart
sudo adduser $USER lp
sudo adduser $USER lpadmin
update-rc.d enable cups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment