Puis j'ai suivi ma procédure à savoir:
Code : Tout sélectionner
sudo nano /etc/init.d/ccpd
#!/bin/sh
# startup script for Canon Printer Daemon for CUPS (ccpd)
### BEGIN INIT INFO
# Provides: ccpd
# Required-Start: $local_fs $remotes_fs $syslog $network $named
# Should-Start: $ALL
# Required-Stop: $syslog $remote_fs
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: Start Canon Printer Daemon for CUPS
### END INIT INFO
if [ `ps awx | grep cupsd | grep -v grep | wc -l` -eq 0 ]; then
while [ `ps awx | grep cupsd | grep -v grep | wc -l` -eq 0 ]
do
sleep 3
done
sleep 5
fi
ET
Code : Tout sélectionner
root@sarrat-LM-fixe:/home/anne-marie# /etc/init.d/ccpd start
Starting /usr/sbin/ccpd: .
Code : Tout sélectionner
root@sarrat-LM-fixe:/home/anne-marie# service ccpd start
root@sarrat-LM-fixe:/home/anne-marie# service ccpd status
● ccpd.service
Loaded: loaded (/etc/init.d/ccpd; generated)
Active: active (exited) since Sun 2018-12-02 13:56:46 CET; 1s ago
Docs: man:systemd-sysv-generator(8)
Process: 14147 ExecStart=/etc/init.d/ccpd start (code=exited, status=0/SUCCESS
déc. 02 13:56:46 sarrat-LM-fixe systemd[1]: Starting ccpd.service...
déc. 02 13:56:46 sarrat-LM-fixe systemd[1]: Started ccpd.service.
déc. 02 13:56:46 sarrat-LM-fixe ccpd[14147]: Starting /usr/sbin/ccpd: .
ET
Code : Tout sélectionner
root@sarrat-LM-fixe:/home/anne-marie#nano /etc/ccpd.conf
# Canon Printer Daemon for CUPS Configuration Data
<Path>
# CUPS configuration file path.
# Default /etc/cups/
CUPS_ConfigPath /etc/cups/
# Log directory path.
# LogDirectoryPath /var/log/CCPD/
</Path>
# Printer entries.
# Mapping each "Printer Name" to each "Printer Device Port".
# The "Printer Name" has to be identical to the CUPS printer queue name.
#
# For example, if you prepare a printer named "LBP3200" as a CUPS printer
# queue name, and the printer is connected to the USB port "/dev/usb/lp0",
# you can use the following three lines example just by removing the
# comment symbol "#" of each line.
#<Printer LBP3200>
#DevicePath /dev/usb/lp0
#</Printer>
<Printer LBP6000>
DevicePath /dev/usb/lp0
</Printer>
<Ports>
# Status monitoring socket port.
# Default 59787
UI_Port 59787
PDATA_Port 59687
</Ports>
ET
Code : Tout sélectionner
root@sarrat-LM-fixe:/home/anne-marie# service ccpd restart
root@sarrat-LM-fixe:/home/anne-marie# service ccpd status
● ccpd.service
Loaded: loaded (/etc/init.d/ccpd; generated)
Active: active (exited) since Sun 2018-12-02 14:03:30 CET; 29s ago
Docs: man:systemd-sysv-generator(8)
Process: 14240 ExecStop=/etc/init.d/ccpd stop (code=exited, status=0/SUCCESS)
Process: 14247 ExecStart=/etc/init.d/ccpd start (code=exited, status=0/SUCCESS
déc. 02 14:03:30 sarrat-LM-fixe systemd[1]: Stopped ccpd.service.
déc. 02 14:03:30 sarrat-LM-fixe systemd[1]: Starting ccpd.service...
déc. 02 14:03:30 sarrat-LM-fixe ccpd[14240]: Shutting down /usr/sbin/ccpd: .
déc. 02 14:03:30 sarrat-LM-fixe systemd[1]: Started ccpd.service.
déc. 02 14:03:30 sarrat-LM-fixe ccpd[14247]: Starting /usr/sbin/ccpd: .
ET
Code : Tout sélectionner
root@sarrat-LM-fixe:/home/anne-marie# ccpdadmin
Usage:
ccpdadmin [-p Printer-name -o Printer-dev-path]
ccpdadmin [-x Remove-Printer-name]
CUPS_ConfigPath = /etc/cups/
LOG Path = None
UI Port = 59787
Entry Num : Spooler : Backend : FIFO path : Device Path : Status
----------------------------------------------------------------------------
[0] : LBP6000 : usb : //Canon/LBP6000/LBP6018?serial=0000B2C20GGx : /dev/usb/lp0 :
ET
Code : Tout sélectionner
root@sarrat-LM-fixe:/home/anne-marie# captstatusui -P LBP6000
*** captstatusui Socket Error ***
Et voilà cette fameuse erreur!!! grrr!!!!