CUPS

# view all available printer
lpstat -p -d
 
# Enable all printer
for PRINTER in $(lpstat -p | awk '{print $2}'); do
    echo "Enable ${PRINTER}"
    /usr/sbin/cupsenable ${PRINTER}
done
 
# enable webadmin
vi /etc/cups/cupsd.conf
#Listen localhost:631
Listen 0.0.0.0:631
 
<Location />
  Allow From 192.168.1.0/24
</Location>
<Location /admin>
  Allow From 192.168.1.0/24
</Location>
 
# print file from command line
lpr -P DeskJet_695C YOUR_FILE.pdf
 
# parallel
# install DeskJet_695C
sudo lpadmin -p HP695C -v parallel:/dev/lp0 -E -P /tmp/DeskJet_695C.ppd 
 
# usb 
hp:/usb/hp_business_inkjet_2300?serial=CN39E130GB
 
# PDF printer
sudo apt-get install cups-pdf
lpadmin -p PDF -v cups-pdf:/ -E -P /usr/share/ppd/cups-pdf/CUPS-PDF.ppd
 
# install HP 2300
# samba share
lpadmin -p hp2300 -v smb://user:pass@YOUR_CLIENT_IP/hp2300 -E -P /tmp/hp_business_inkjet_2300.ppd
lpadmin -p hp2300 -v smb://user:pass@YOUR_DOMAIN/YOUR_CLIENT/hp2300 -E -P /tmp/hp_business_inkjet_2300.ppd
 
# printjet
lpadmin -p HP2300 -v hp:/net/hp_business_inkjet_2300?ip=192.168.1.12 -E -P /tmp/hp_business_inkjet_2300.ppd
 
# ipp
lpadmin -p laser3 -v ipp://192.168.1.11:631/ipp -E -P /usr/share/ppd/openprinting/Kyocera/en/Kyocera_Mita_FS-C5016N_en.ppd.gz

Links
http://www.cups.org/documentation.php/options.html
http://docs.oracle.com/cd/E23823_01/html/819-7355/gfjno.html