Voici ma démarche pas à pas
1. téléchargement des pilotes sur le site de canon
2. dépaquettage des pilotes via
Code : Tout sélectionner
sarratam@sarrat-fixe:~/Téléchargements/linux-capt-drv-v271-uken/64-bit_Driver/Dean$ sudo su
[sudo] Mot de passe de sarratam :
root@sarrat-fixe:/home/sarratam/Téléchargements/linux-capt-drv-v271-uken/64-bit_iver/Debian# dpkg -i cndrvcups-common_3.21-1_amd64.deb
(Lecture de la base de données... 304139 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de cndrvcups-common_3.21-1_amd64.deb ...
Dépaquetage de cndrvcups-common (3.21-1) sur (3.21-1) ...
Paramétrage de cndrvcups-common (3.21-1) ...
root@sarrat-fixe:/home/sarratam/Téléchargements/linux-capt-drv-v271-uken/64-bit_iver/Debian# ^C
root@sarrat-fixe:/home/sarratam/Téléchargements/linux-capt-drv-v271-uken/64-bit_iver/Debian# dpkg-i cndrvcups-capt_2.71-1_amd64.deb
dpkg-i : commande introuvable
root@sarrat-fixe:/home/sarratam/Téléchargements/linux-capt-drv-v271-uken/64-bit_iver/Debian# dpkg -i cndrvcups-capt_2.71-1_amd64.deb
(Lecture de la base de données... 304139 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de cndrvcups-capt_2.71-1_amd64.deb ...
Dépaquetage de cndrvcups-capt (2.71-1) sur (2.71-1) ...
Paramétrage de cndrvcups-capt (2.71-1) ...
Traitement des actions différées (« triggers ») pour systemd (237-3ubuntu10.9) ...
Traitement des actions différées (« triggers ») pour ureadahead (0.100.0-20) ...
ureadahead will be reprofiled on next reboot
root@sarrat-fixe:/home/sarratam/Téléchargements/linux-capt-drv-v271-uken/64-bit_iver/Debian#
puis je reboote comme demander
Et j'entre à nouveau dans le terminal les commandes suivantes :
Code : Tout sélectionner
root@sarrat-fixe:/home/sarratam# systemctl stop cups
root@sarrat-fixe:/home/sarratam# systemctl start cups
root@sarrat-fixe:/home/sarratam# /usr/sbin/lpadmin -p LBP6000 -m CNCUPSLBP6018CAPTK.ppd -v ccp://localhost:59787 -E
root@sarrat-fixe:/home/sarratam# /usr/sbin/ccpdadmin -p LBP6000 -o /dev/usb/lp0
CUPS_ConfigPath = /etc/cups/
LOG Path = None
UI Port = 59787
Entry Num : Spooler : Backend : FIFO path : Device Path : Status
----------------------------------------------------------------------------
[0] : LBP6000 : ccp : //localhost:59787 : /dev/usb/lp0 : New!!
Puis
Et j'entre les lignes suivantes dans le fichier
Code : Tout sélectionner
### BEGIN INIT INFO
# Provides: ccpd
# Required-Start: $local_fs $remote_fs $syslog $network $named
# Should-Start: $ALL
# Required-Stop: $syslog $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Start Canon Printer Daemon for CUPS
### END INIT INFO
Ce qui donne le fichier ccpd complet comme ceci
Code : Tout sélectionner
#!/bin/sh
# startup script for Canon Printer Daemon for CUPS (ccpd)
### BEGIN INIT INFO
# Provides: ccpd
# Required-Start: $local_fs $remote_fs $syslog $network $named
# Should-Start: $ALL
# Required-Stop: $syslog $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 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
if [ -f /etc/rc.d/init.d/functions ]; then
if [ -f /etc/slackware-version ]; then
SYS_F="SL"
else
. /etc/rc.d/init.d/functions
SYS_F="RH"
fi
elif [ -x /sbin/startproc ]; then
SYS_F="Su"
elif [ -x /sbin/start-stop-daemon ]; then
SYS_F="De"
fi
DAEMON=/usr/sbin/ccpd
LOCKFILE=/var/lock/subsys/ccpd
export PATH=$PATH:/usr/local/sbin:/usr/local/bin
Puis je l'enregistre avec CTRL X et O
Et j'entre les commandes suivantes
Code : Tout sélectionner
root@sarrat-fixe:/home/sarratam# service ccpd start
root@sarrat-fixe:/home/sarratam# service ccpd status
● ccpd.service
Loaded: loaded (/etc/init.d/ccpd; generated)
Active: active (running) since Sat 2018-12-01 14:00:33 CET; 10s ago
Docs: man:systemd-sysv-generator(8)
Process: 3546 ExecStart=/etc/init.d/ccpd start (code=exited, status=0/SUCCESS)
Tasks: 49 (limit: 4553)
CGroup: /system.slice/ccpd.service
├─3553 /usr/sbin/ccpd
├─3554 /usr/sbin/ccpd
├─3557 /usr/sbin/ccpd
├─3559 /usr/sbin/ccpd
├─3561 /usr/sbin/ccpd
├─3563 /usr/sbin/ccpd
├─3565 /usr/sbin/ccpd
├─3567 /usr/sbin/ccpd
├─3568 /usr/sbin/ccpd
├─3570 /usr/sbin/ccpd
├─3572 /usr/sbin/ccpd
├─3574 /usr/sbin/ccpd
├─3576 /usr/sbin/ccpd
├─3578 /usr/sbin/ccpd
├─3580 /usr/sbin/ccpd
├─3582 /usr/sbin/ccpd
├─3584 /usr/sbin/ccpd
├─3585 /usr/sbin/ccpd
├─3587 /usr/sbin/ccpd
├─3589 /usr/sbin/ccpd
├─3591 /usr/sbin/ccpd
├─3593 /usr/sbin/ccpd
├─3595 /usr/sbin/ccpd
├─3597 /usr/sbin/ccpd
├─3599 /usr/sbin/ccpd
├─3601 /usr/sbin/ccpd
├─3603 /usr/sbin/ccpd
├─3605 /usr/sbin/ccpd
├─3607 /usr/sbin/ccpd
├─3609 /usr/sbin/ccpd
├─3611 /usr/sbin/ccpd
├─3613 /usr/sbin/ccpd
├─3614 /usr/sbin/ccpd
├─3615 /usr/sbin/ccpd
├─3616 /usr/sbin/ccpd
├─3618 /usr/sbin/ccpd
├─3619 /usr/sbin/ccpd
├─3621 /usr/sbin/ccpd
├─3623 /usr/sbin/ccpd
├─3625 /usr/sbin/ccpd
├─3627 /usr/sbin/ccpd
├─3628 /usr/sbin/ccpd
├─3631 /usr/sbin/ccpd
├─3633 /usr/sbin/ccpd
├─3635 /usr/sbin/ccpd
├─3636 /usr/sbin/ccpd
├─3637 /usr/sbin/ccpd
├─3639 /usr/sbin/ccpd
└─3640 /usr/sbin/ccpd
déc. 01 14:00:33 sarrat-fixe systemd[1]: Starting ccpd.service...
déc. 01 14:00:33 sarrat-fixe ccpd[3546]: Starting /usr/sbin/ccpd: .
déc. 01 14:00:33 sarrat-fixe systemd[1]: Started ccpd.service.
Je quitte le terminal en tapant sur q
Mais apparemment il y a quelques qui ne s'est pas bien passé puisque j'aurais du avoir un truc comme ceci
Code : Tout sélectionner
Ggroup: /system.slice/ccpd.service
|- 11382 /usr/sbin/ccpd
|-113838 /usr/sbin/ccpd
|-11384 captmonlbp6000 --data-write=4 --data-read-fd=11 --cmd-writ
bon je continue les commandes
Code : Tout sélectionner
root@sarrat-fixe:/home/sarratam# nano /etc/ccpd.conf
# 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>
Je continue avec
Code : Tout sélectionner
root@sarrat-fixe:/home/sarratam# service ccpd restart
root@sarrat-fixe:/home/sarratam# service ccpd status
● ccpd.service
Loaded: loaded (/etc/init.d/ccpd; generated)
Active: active (running) since Sat 2018-12-01 14:08:48 CET; 10s ago
Docs: man:systemd-sysv-generator(8)
Process: 4046 ExecStop=/etc/init.d/ccpd stop (code=exited, status=0/SUCCESS)
Process: 4053 ExecStart=/etc/init.d/ccpd start (code=exited, status=0/SUCCESS)
Tasks: 135 (limit: 4553)
CGroup: /system.slice/ccpd.service
├─3557 /usr/sbin/ccpd
├─3559 /usr/sbin/ccpd
├─3561 /usr/sbin/ccpd
├─3563 /usr/sbin/ccpd
├─3565 /usr/sbin/ccpd
├─3567 /usr/sbin/ccpd
├─3568 /usr/sbin/ccpd
├─3570 /usr/sbin/ccpd
├─3572 /usr/sbin/ccpd
├─3574 /usr/sbin/ccpd
├─3576 /usr/sbin/ccpd
├─3578 /usr/sbin/ccpd
├─3580 /usr/sbin/ccpd
├─3582 /usr/sbin/ccpd
├─3584 /usr/sbin/ccpd
├─3585 /usr/sbin/ccpd
├─3587 /usr/sbin/ccpd
├─3589 /usr/sbin/ccpd
├─3591 /usr/sbin/ccpd
├─3593 /usr/sbin/ccpd
├─3595 /usr/sbin/ccpd
├─3597 /usr/sbin/ccpd
├─3599 /usr/sbin/ccpd
├─3601 /usr/sbin/ccpd
├─3603 /usr/sbin/ccpd
├─3605 /usr/sbin/ccpd
├─3607 /usr/sbin/ccpd
├─3609 /usr/sbin/ccpd
├─3611 /usr/sbin/ccpd
├─3613 /usr/sbin/ccpd
├─3614 /usr/sbin/ccpd
├─3615 /usr/sbin/ccpd
├─3616 /usr/sbin/ccpd
├─3618 /usr/sbin/ccpd
├─3619 /usr/sbin/ccpd
├─3621 /usr/sbin/ccpd
├─3623 /usr/sbin/ccpd
├─3625 /usr/sbin/ccpd
├─3627 /usr/sbin/ccpd
├─3628 /usr/sbin/ccpd
├─3631 /usr/sbin/ccpd
├─3633 /usr/sbin/ccpd
├─3635 /usr/sbin/ccpd
├─3636 /usr/sbin/ccpd
├─3637 /usr/sbin/ccpd
├─3639 /usr/sbin/ccpd
├─3646 /usr/sbin/ccpd
├─3648 /usr/sbin/ccpd
├─3650 /usr/sbin/ccpd
├─3652 /usr/sbin/ccpd
├─3654 /usr/sbin/ccpd
├─3661 /usr/sbin/ccpd
├─3663 /usr/sbin/ccpd
├─3665 /usr/sbin/ccpd
├─3666 /usr/sbin/ccpd
├─3668 /usr/sbin/ccpd
├─3670 /usr/sbin/ccpd
├─3672 /usr/sbin/ccpd
├─3674 /usr/sbin/ccpd
├─3676 /usr/sbin/ccpd
├─3677 /usr/sbin/ccpd
├─3679 /usr/sbin/ccpd
├─3681 /usr/sbin/ccpd
├─3683 /usr/sbin/ccpd
├─3685 /usr/sbin/ccpd
├─3687 /usr/sbin/ccpd
├─3689 /usr/sbin/ccpd
├─3691 /usr/sbin/ccpd
├─3692 /usr/sbin/ccpd
├─3694 /usr/sbin/ccpd
├─3696 /usr/sbin/ccpd
├─3698 /usr/sbin/ccpd
├─3700 /usr/sbin/ccpd
├─3702 /usr/sbin/ccpd
├─3704 /usr/sbin/ccpd
├─3706 /usr/sbin/ccpd
├─3707 /usr/sbin/ccpd
├─3709 /usr/sbin/ccpd
├─3711 /usr/sbin/ccpd
├─3713 /usr/sbin/ccpd
├─3715 /usr/sbin/ccpd
├─3717 /usr/sbin/ccpd
├─3719 /usr/sbin/ccpd
├─3721 /usr/sbin/ccpd
├─3723 /usr/sbin/ccpd
├─3724 /usr/sbin/ccpd
├─3726 /usr/sbin/ccpd
├─3728 /usr/sbin/ccpd
├─3730 /usr/sbin/ccpd
├─3732 /usr/sbin/ccpd
├─3734 /usr/sbin/ccpd
├─3736 /usr/sbin/ccpd
├─3738 /usr/sbin/ccpd
├─3739 /usr/sbin/ccpd
├─3741 /usr/sbin/ccpd
├─3743 /usr/sbin/ccpd
├─3745 /usr/sbin/ccpd
├─3747 /usr/sbin/ccpd
├─3749 /usr/sbin/ccpd
├─3751 /usr/sbin/ccpd
├─3753 /usr/sbin/ccpd
├─3755 /usr/sbin/ccpd
├─3757 /usr/sbin/ccpd
├─3759 /usr/sbin/ccpd
├─3761 /usr/sbin/ccpd
├─3763 /usr/sbin/ccpd
├─3765 /usr/sbin/ccpd
├─3766 /usr/sbin/ccpd
├─3768 /usr/sbin/ccpd
├─3770 /usr/sbin/ccpd
├─3772 /usr/sbin/ccpd
├─3774 /usr/sbin/ccpd
├─3776 /usr/sbin/ccpd
├─3777 /usr/sbin/ccpd
├─3778 /usr/sbin/ccpd
├─3780 /usr/sbin/ccpd
├─3782 /usr/sbin/ccpd
├─3784 /usr/sbin/ccpd
├─3786 /usr/sbin/ccpd
├─3788 /usr/sbin/ccpd
├─3790 /usr/sbin/ccpd
├─3792 /usr/sbin/ccpd
├─3794 /usr/sbin/ccpd
├─3796 /usr/sbin/ccpd
├─3798 /usr/sbin/ccpd
├─3800 /usr/sbin/ccpd
├─3802 /usr/sbin/ccpd
├─3804 /usr/sbin/ccpd
├─3806 /usr/sbin/ccpd
├─3808 /usr/sbin/ccpd
├─3810 /usr/sbin/ccpd
├─3812 /usr/sbin/ccpd
├─3814 /usr/sbin/ccpd
├─3816 /usr/sbin/ccpd
└─3818 /usr/sbin/ccpd
déc. 01 14:08:48 sarrat-fixe systemd[1]: This usually indicates unclean terminat
déc. 01 14:08:48 sarrat-fixe systemd[1]: ccpd.service: Found left-over process 3
déc. 01 14:08:48 sarrat-fixe systemd[1]: This usually indicates unclean terminat
déc. 01 14:08:48 sarrat-fixe systemd[1]: ccpd.service: Found left-over process 3
déc. 01 14:08:48 sarrat-fixe ccpd[4053]: Starting /usr/sbin/ccpd: .
déc. 01 14:08:48 sarrat-fixe systemd[1]: This usually indicates unclean terminat
déc. 01 14:08:48 sarrat-fixe systemd[1]: ccpd.service: Found left-over process 3
déc. 01 14:08:48 sarrat-fixe systemd[1]: This usually indicates unclean terminat
déc. 01 14:08:48 sarrat-fixe systemd[1]: Starting ccpd.service...
déc. 01 14:08:48 sarrat-fixe systemd[1]: Started ccpd.service.
Toujours pas les bonnes lignes on dirait??
Mais je continue
Code : Tout sélectionner
root@sarrat-fixe:/home/sarratam# 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 : ccp : //localhost:59787 : /dev/usb/lp0 :
Et
Code : Tout sélectionner
root@sarrat-fixe:/home/sarratam# captstatusui -P LBP6000
*** captstatusui Socket Error ***
Et voilà cette fameuse erreur
que je stope le ccpd, redémarre le cups pour démarrer le ccpd, voire rebooter le PC, rien y fait!
Merci de votre aide