Wednesday, December 14, 2016

Canon LBP2900B and HP Deskjet 3540 - Installation with Debian 8.6

Hello... Its been a while since blogging....

This post is more for people like me who forget the core concept of a SDLC called Documentation... I hate it basically and never document anything...

Today after installing Debian 8.6 onto my new HDD - I had to spend more time to configure my printers Canon LBP2900B and HP Deskjet 3540... Thats when I thought - I shall document - so as to spend little time the next instance / time.

So here I go with first Canon LBP2900B

This is my desktop configuration - Its a i7 4th gen, 16GB RAM, 3.5 TB HDD, 2GB GeForce Graphics Card..The OS currently and I work most of the times is a 64bit Debian - Note not Ubuntu...

1. Download the latest (2.6) printer 64 bit drivers from the link given below:
Canon APT Drivers - 2.60

2. After download, unzip the folder with the below command inside the terminal
tar xvf filename.tgz (replace accordingly)

3. Go into the 64-bit drivers folder/Debian and issue the below 2 commands:

-> sudo dpkg -i cndrvcups-common.deb
-> sudo dpkg -i cndrvcups-capt.deb

(Follow the same order)

4. Now make sure your printer is switched off... Its extremely important....

5. Now issue the below commands in sequence:

-> sudo /etc/init.d/cups restart
-> sudo lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp://localhost:59687 -E
-> sudo ccpdadmin -p LBP2900 -o /dev/usb/lp1

6. In step 5 - last command - note check if your printer is placed at lp1 or else note down the change in place holder and reissue the last command. Typically in most cases it would be lp1

7. Now that the drivers are installed - its time that we check for its working... Switch on the printer and issue the below commands in sequence:

-> sudo /etc/init.d/ccpd start
-> sudo /etc/init.d/ccpd status

Step 7, last command should give you 2 pid values... If not continue from step 8...

8. Check for the command: ls -l /var/ccpd

9. If command in step 8 is a null or no such file - then follow the next steps in sequence:
sudo mkdir /var/ccpd
sudo mkfifo /var/ccpd/fifo0
sudo chown -R lp:lp /var/ccpd

10. Issue the command captstatusui -p LBP2900

11. If the window in step 10 tells "Ready to Print" - you are all set to go..If not continue from step 12..

12. Issue the command ldd /usr/bin/captfilter

13. If the command output of step 12 is null values, then you need to do the following:

sudo dpkg --add-architecture i386
sudo apt-get update (Do not forget this command)

14. After step 13, issue the command: sudo apt-get install libc6:i386 libpopt0:i386

15. Also check for other missing filters with the command:

ldd /usr/bin/capt* | sort | uniq | grep "not found"

16. If for null values in step 15, now issue -
sudo apt-get install zlib1g:i386 libxml2:i386 libstdc++6:i386

Thats it... Now that after step 16, you should get a working state of the printer... Re-issue the commands of step 7 with a slight modification:

sudo /etc/init.d/ccpd restart
sudo /etc/init.d/ccpd status

Now you should get 2 pid values... Cross verify the same with
captstatusui -P LBP2900

Note: At any stage while checking for the number of pids - if it is more than 2/3 pid values - then kill the ccpd process with the below command:

sudo pkill -9 ccpd

Thats it for now... I shall write wrt HP Deskjet printer in my next post...

Thanks and hope this helped...

Let me know...

Ananth S Gouri

No comments:

Post a Comment