• Cups LPD Enabling on Snow Leopard (10.6)

    By default Snow Leopard has LPD disabled. To turn it on for sharing printers via LPR/LPD do the following in Terminal:

    cupsctl 'BrowseLocalProtocols="cups dnssd lpd"

    (Found in CUPS Online Help, under Getting Started > Printer Sharing)
  • Using port 9100 to print to a Printer Queue on a Cups-enabled Server

    Want to be able to print to a cups server via port 9100?
    Choose the printer queue you wish to use and then, 

    Make sure /etc/services has the following line:

    jetdirect 9100/tcp laserjet hplj

    If you are using xinetd, create the file /etc/xinetd.d/jetdirect with the following contents:

    # Allow applications using the AppSocket / JetDirect protocol
    # to communicate with CUPS.
    service jetdirect
    socket_type = stream
    protocol = tcp
    wait = no
    user = lp
    server = /usr/bin/lp
    server_args = -d <CUPS_PRINTER_NAME> -o raw
    groups = yes
    disable = no

    Restart your services:
    service xinetd restart
    service cups restart

    Your CUPS_PRINTER_NAME can be found in the /etc/cups/printers.conf or /etc/printcap files.