Skip to content

Instantly share code, notes, and snippets.

@mitrofun
Forked from onecooltaco/osx_reset_cups
Created September 30, 2020 12:10
Show Gist options
  • Select an option

  • Save mitrofun/89f51f1f777fe45bf13a11ac12552501 to your computer and use it in GitHub Desktop.

Select an option

Save mitrofun/89f51f1f777fe45bf13a11ac12552501 to your computer and use it in GitHub Desktop.
OS X reset CUPS
# Stop the CUPS daemon with the following command.
launchctl stop org.cups.cupsd
wait
# Rename the old CUPS configuration file.
mv /etc/cups/cupsd.conf /etc/cups/cupsd.conf.backup
wait
# Restore the default settings file.
cp /etc/cups/cupsd.conf.default /etc/cups/cupsd.conf
wait
# Rename printers file.
mv /etc/cups/printers.conf /etc/cups/printers.conf.backup
wait
# Restart CUPS.
launchctl start org.cups.cupsd
wait
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment