FreeBSD/Cups
From Devpit
Magic incantation:
lpadmin -p PNAME -E -v socket://192.168.1.15 -m laserjet.ppd
- Cups in FreeBSD is really irritating in that it installs it's own binaries into /usr/local/bin. Binaries such as lp, lpr, and lpq. Be sure then, when you run lp, you're running /usr/local/bin/lp, and not /usr/bin/lp. There are a number of ways to deal with this problem - the easiest is to just delete the system lp's.. But remember that they'll come back after an install world. *this may no longer be necessary on modern FreeBSD*
rm /usr/bin/lp rm /usr/bin/lpr rm /usr/bin/lpq
Add the following to /etc/make.conf:
NO_LPR=true CUPS_OVERWRITE_BASE=yes