Canon CAPT
Related articles
CAPT is Canon's proprietary Canon Advanced Printing Technology (CAPT) driver, supporting the Canon i-Sensys series of laser printers. For more information, see Setting up CAPT printers on Ubuntu.
Contents
Configuration
Register the printer with CUPS using lpadmin:
# lpadmin -p printer_model -m printer_ppd_file -v ccp://localhost:59687 -E
Find the right PPD inside /usr/share/cups/model. For the printer model, use the ShortNickName found inside the PPD, or take it directly from the file name, for example CNCUPSLBP6310CAPTK.ppd.
Alternatively, check the table provided on the Ubuntu help page, which matches each supported printer with its corresponding PPD.
For example, for the Canon LBP6310dn (UK model), run:
# lpadmin -p LBP6310 -m CNCUPSLBP6310CAPTK.ppd -v ccp://localhost:59687 -E
Next, register the printer with the CAPT driver itself via ccpdadmin. Replace printer_model with the model you found earlier (e.g. LBP6310), and printer_address with either the USB port (e.g. /dev/usb/lp0) in case of a local printer, or the IP address, prefixed by net: (e.g. net:192.168.1.100) in case of a network printer:
# ccpdadmin -p printer_model -o printer_address
For example, for a USB printer:
# ccpdadmin -p LBP6310 -o /dev/usb/lp0
Or for a network printer:
# ccpdadmin -p LBP6310 -o net:192.168.1.100
Start/enable the CAPT daemon with ccpd.service.
CAPT status monitor
Local CUPS
The driver includes a status monitor which can be launched with
$ captstatusui -P printer_model
e.g.
$ captstatusui -P LBP6310
If you only want the status monitor to pop up when a problem occurs, simply append the -e switch:
$ captstatusui -P LBP6310 -e
Remote CUPS
Unfortunately, a local installation of captstatusui will not detect CAPT printers on a remote CUPS server.
Remote print monitoring can be achieved, however, using SSH and X11 forwarding.
Client configuration
- create a new SSH key
~/.ssh/captand copy the public key to the remote server - create a file
captstatusui.shwith the following content, make it executable and place it in your autostart folder:
#!/bin/sh ssh -T -Y -i ~/.ssh/capt remote_server_hostname_or_IP_address < /dev/null
Server configuration
- create a new user
capt - append the following section to
/etc/ssh/sshd_configand restart the SSH daemon or socket
...
Match User capt
X11Forwarding yes
PermitTTY no
ForceCommand captstatusui -P printer_model -e
AuthenticationMethods publickey
e.g.
...
Match User capt
X11Forwarding yes
PermitTTY no
ForceCommand captstatusui -P LBP6310 -e
AuthenticationMethods publickey
This can be extended to include multiple users (using a single, shared SSH key or each with a unique SSH key) by adding each user to a capt group, then using a Match Group rule:
...
Match Group capt
X11Forwarding yes
PermitTTY no
ForceCommand captstatusui -P LBP6310 -e
AuthenticationMethods publickey