Skip to content

Instantly share code, notes, and snippets.

@jrgifford
Forked from anonymous/gist:3835775
Created October 4, 2012 19:15
Show Gist options
  • Save jrgifford/3835778 to your computer and use it in GitHub Desktop.
Save jrgifford/3835778 to your computer and use it in GitHub Desktop.
#!/bin/sh
echo "When prompted to, please enter in your password."
sudo cp /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/Resources/GenericPrinter.ppd /usr/share/cups/model/GenericPrinter.ppd
sudo lpadmin -p Canon_D1170 -E -v http://192.168.100.241:631/printers/Canon_D1170 -m GenericPrinter.ppd
echo "All done! You can now print to the Canon from this computer"
echo "You can now close this window."
@jrgifford
Copy link
Author

to install:

`curl https://gist.github.com/raw/3835778/add-LH-canon.sh | sh" in the terminal. Or we can do some fancy chmoding or something.

@jrgifford
Copy link
Author

to install:

curl https://gist.github.com/raw/3835778/add-LH-canon.sh | sh in the terminal. Or we can do some fancy chmoding or something.

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