Automatically add all CUPS shared printers to a Mac OS X system.
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
browsecups.py

README

browsecups.py connects to a remote CUPS server, retrieves its printer list, and tries to add the printer locally with a locally installed driver.

Usage
-----
browsecups.py servername

To run without interaction, ./browsecups.py requires the following preferences to be defined in the edu.utexas.ma.browsecups domain:
    server - The hostname of your CUPS server.
    username - A user on the local machine who can use the CUPS web administration interface.
    password - That user's password

The easiest way to create this is to run the following commands as root:
    defaults write edu.utexas.ma.browsecups server hostname
    defaults write edu.utexas.ma.browsecups username administrator
    defaults write edu.utexas.ma.browsecups password xxxx

This will create /var/root/Library/Preferences/edu.utexas.ma.browsecups.plist

Precedence for preferences follows:
 - MCX
 - /var/root/Library/Preferences/edu.utexas.ma.browsecups.plist
 - /Library/Preferences/edu.utexas.ma.browsecups.plist

Requirements
------------
The only 3rd party module this uses is pycups.