Skip to content

Instantly share code, notes, and snippets.

@peakBreaker
Created October 15, 2018 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peakBreaker/dcd154f86734e4b97be8dddf6f3959b5 to your computer and use it in GitHub Desktop.
Save peakBreaker/dcd154f86734e4b97be8dddf6f3959b5 to your computer and use it in GitHub Desktop.
Cups setup
# Program to enable avahi service discovery of printers and CUPS
# In Arch Linux
#
## First install the needed programs
sudo pacman -S cups nss-mdns
## Add user to cups group
sudo usermod -a -G cups <USER>
## Alter the hosts line to be like this
# hosts: ... mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns ...
sudo vim /etc/nsswitch.conf
# Systemd
sudo systemctl enable org.cups.cupsd.service
sudo systemctl start org.cups.cupsd.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment