Saturday, 12 March 2016

Install Canon Printer On Linux


Install CANON Printer On Linux :

1. Download Printer Drivers with proper architecture.
2. Drivers Name :  cndrvcups-capt_2.70-1_i386 & cndrvcups-common_3.20-1_i386

Package Installation Commands:

dpkg -i package-name-here.deb
dpkg -i package-name-here.deb


3. Then Fire Below Commands Step By Steps:

# sudo /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp://localhost:59787 -E
# sudo /usr/sbin/ccpdadmin -p LBP2900 -o /dev/usb/lp0
# sudo service ccpd start
# sudo service ccpd status
# captstatusui -P LBP2900


Finished........................!!!

Now If you want to set on boot script while machine reboot. Please do set cron jobs for it as below.


On home create one script as below :-

# vim /home/administrator/Desktop/printer.sh

sudo /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp://localhost:59787 -E
sudo /usr/sbin/ccpdadmin -p LBP2900 -o /dev/usb/lp0
sudo service ccpd start
sudo service ccpd status
captstatusui -P LBP2900

:wq


# chmod +x printer.sh

# crontab -e

@reboot /bin/sh /home/administrator/Desktop/printer.sh >> /home/administrator/Desktop/printer.txt

:wq


and finally reboot machine and test printer....!!

===================================
===================================



Install
1. cndrvcups-common_3.20-1_i386.ppd
2. cndrvcups-capt_2.70-1_i386.ppd
1) Create the following directories/file if they are missing:
sudo mkdir /var/ccpd
sudo mkfifo /var/ccpd/fifo0
sudo mkdir /var/captmon
2) Register the printer:
sudo /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v
ccp:/var/ccpd/fifo0 -E
3) Register the printer with ccpd daemon:
sudo /usr/sbin/ccpdadmin -p LBP2900 -o /dev/usb/lp0
Auto Starting
1. sudo gedit /etc/udev/rules.d/85-canon-capt.rules
Put inside :
KERNEL=="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"
3) Create an Upstart Job :
Create the file:
sudo gedit /etc/init/ccpd-restart.conf
Put inside:
# 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 script
Restart System and check.
If still printing issue:
cd /dev/usb/
ln -s lp1 lp0
captstatusui -P LBP2900


Enjoyeed ..................!!!!!

No comments: