2 if [ -d /usr/share/ppd ]
4 cd /usr/share/cups/model
7 ln -s /usr/share/cups/model/${fn} /usr/share/ppd/${fn}
11 # Fifo files needed for the daemon
12 # Based on the official Debian postinst script
16 mkfifo -m 660 /var/ccpd/fifo${i}
19 chown -R root.lp /var/ccpd
22 mkdir -p /var/captmon/
23 chown -R root.lp /var/captmon
24 chmod -R 770 /var/captmon
28 >>> 1) Make sure CUPS is running and your printer is turned on and connected to your computer.
30 >>> /etc/rc.d/cups start
32 >>> 2) /usr/sbin/lpadmin -p <name> -m <corresponding ppd> -v ccp:/var/ccpd/fifo0 -E
34 >>> /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E
35 >>> (you can find ppds in /usr/share/cups/model/)
37 >>> 3) Check the name of the device, udev created for you.
40 >>> 4) /usr/sbin/ccpdadmin -p <name> -o udev_device
42 >>> /usr/sbin/ccpdadmin -p LBP2900 -o /dev/usb/lp0
43 >>> (should show table with new printer)
45 >>> 5) /etc/rc.d/ccpd start
47 >>> 6) Now you can print. Add cups and ccpd to the DAEMONS line of your rc.conf.
57 if [ -d /usr/share/ppd ]
59 rm -rf /usr/share/ppd/CN*CAPT*.ppd