sudo apt-get install cupshttp://www.canon-europe.com/Support/Consumer_Products/products/printers/Laser/i-SENSYS_LBP6200d.aspx| Nota: | le pagine che seguono indicano un sacco di comandi da dare via Terminale. Io però ho dato solo quelli di cui scrivo qua. |
sudo /usr/sbin/lpadmin -p LBP6200 -m CNCUPSLBP6200CAPTK.ppd -v ccp://localhost:59787 -Esudo /etc/init.d/ccpd stopper fermare il serviziosudo /etc/init.d/ccpd startper riavviarlosudo /etc/init.d/ccpd statusper verificare lo stato del servizioCanon Printer Daemon for CUPS: ccpd: 8956 8954captstatusui -P LBP6200gksudo gedit /etc/udev/rules.d/85-canon-capt.rulesKERNEL=="lp*", SUBSYSTEM=="usb", ACTION=="add", ATTRS{idVendor}=="04a9", RUN+="/etc/init.d/ccpd start"
KERNEL=="lp*", SUBSYSTEM=="usb", ACTION=="remove", RUN+="/etc/init.d/ccpd stop" Usciamo salvando il file.gksudo gedit /lib/udev/rules.d/70-printers.rules# Low-level USB device add trigger
ACTION=="add", SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="07", ATTR{bInterfaceSubClass}=="01", TAG+="udev-configure-printer", RUN+="udev-configure-printer add %p"
# usblp device add trigger (needed when usblp is already loaded)
#ACTION=="add", KERNEL=="lp*", TAG+="udev-configure-printer", RUN+="udev-configure-printer add %p"
# Low-level USB device remove trigger
ACTION=="remove", SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:0701*:*", RUN+="udev-configure-printer remove %p"gksudo gedit /etc/init/ccpd-restart.conf# ccpd-restart - if printer is ON before PC.
description "restart daemon ccpd for Canon printer LBP-serie"
start on started cups
stop on runlevel [016]
script
if [ -e /dev/usb/lp* ]; then
/etc/init.d/ccpd stop
sleep 3
/etc/init.d/ccpd start
fi
end scriptsudo apt-get install cupsè inutile lanciarlosudo /usr/sbin/lpadmin -p LBP6200 -m CNCUPSLBP6200CAPTK.ppd -v ccp://localhost:59787 -Esudo nano /etc/modprobe.d/blacklist-cups-usblp.confè inutile4. Auto startup setting procedure for ccpd daemon -------------------------------
When setting the Status Monitor to start automatically, ccpd daemon must be set to start automatically as well.
Set ccpd daemon to start automatically in the following procedure.
<For a distribution with a /etc/rc.local file>
Log in as 'root' and add the '/etc/init.d/ccpd start' command to the /etc/rc.local file.
# 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 LBP6200>
DevicePath /dev/usb/lp0
</Printer>