Installing Canon LBP 3010

Forum rules
Before you post please read this
Steinsk
Level 1
Level 1
Posts: 30
Joined: Wed Aug 19, 2009 4:10 am

Installing Canon LBP 3010

Postby Steinsk » Sat Sep 12, 2009 6:22 am

Hi :)

I'm trying to get my CAnon LBP Laser Printer to work..
When plugging in, Linux cannot find the driver. A search for a relevant printer driver is unsuccessful.

So, I go hunting on my own :)

1 option: I find this installation script: http://www.linuxadmin.lt/canon-lbp-3010-install-script/
As a noob, I am a little bit reluctant to running scripts. Can anyone tell me if this one is ok, and HOW to run it :) Will this one do the trick?

2 Option: On Canon's webpages (http://software.canon-europe.com/products/0010659.asp) I find a Canon CAPT Printer driver. Correct one?

I first try to install this file: "cndrvcups-common_1.80-1_i386.db" but am met with an error message saying that "failed to install all dependencies"

Now, where do I go from here?
I REALLY have tried to figure it out myself....

Husse
Level 23
Level 23
Posts: 18703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Installing Canon LBP 3010

Postby Husse » Tue Sep 15, 2009 10:24 am

The script seems to take care of the missing dependencies and is harmless as long as you trust the source for the drivers*
To execute - make it executable and run it with sudo name_of _script
Remember autocomplete
* It's a site in Latvia
Image
Don't fix it if it ain't broken, don't break it if you can't fix it

Steinsk
Level 1
Level 1
Posts: 30
Joined: Wed Aug 19, 2009 4:10 am

Re: Installing Canon LBP 3010

Postby Steinsk » Wed Sep 16, 2009 5:09 am

Thanks, Husse :)

And here comes the idiot question - how do I make it an executable?

Thanks :)
I REALLY have tried to figure it out myself....

Husse
Level 23
Level 23
Posts: 18703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Installing Canon LBP 3010

Postby Husse » Wed Sep 16, 2009 5:36 am

how do I make it an executable?
Well the file is "yours" so just right click and the option is there
Can be done in the terminal to with chmod
Image
Don't fix it if it ain't broken, don't break it if you can't fix it

Steinsk
Level 1
Level 1
Posts: 30
Joined: Wed Aug 19, 2009 4:10 am

Re: Installing Canon LBP 3010

Postby Steinsk » Sat Sep 19, 2009 4:40 am

Now, I hope someone has the patience to walk this one with me..

I'll paste the script here, so you can see:

#@Author: Mindaugas Mardosas
#Site: www.linuxadmin.lt
#licence: BSD

#! /bin/bash


#======== FUNCTIONS =============
download_packet(){
cd /tmp;
if [ -r "$1" ];
then echo "$1 is already downloaded";
else wget http://www.linuxadmin.lt/drivers/$1
fi;
}
#=================================

cd /tmp
echo "Installer for Debian 5.0 for Cannon LBP3010; Script must be run as root"
echo "LT: Atjunkite printer\'į ir spauskite ENTER";
echo "EN: Please disconnect the printer and press ENTER"

read;

apt-get install libpng12-0 libpng12-dev libgtk1.2 libgtk1.2-common ghostscript-x gs-esp

KERNEL=`uname -m`;
if [ "$KERNEL" == "x86_64" ]; then
download_packet cndrvcups-capt_1.80-2_amd64.deb
download_packet cndrvcups-common_1.80-2_amd64.deb
dpkg -i cndrvcups-common_1.80-2_amd64.deb cndrvcups-capt_1.80-2_amd64.deb

elif [ "$KERNEL" == "i686" ]; then
download_packet cndrvcups-capt_1.80-1_i386.deb
download_packet cndrvcups-common_1.80-1_i386.deb
dpkg -i cndrvcups-common_1.80-1_i386.deb cndrvcups-capt_1.80-1_i386.deb
fi

chmod 777 /var/ccpd/fifo0
cd /usr/share/ppd/
ln -s /usr/share/cups/model/CNCUPSLBP3050CAPTK.ppd
/usr/sbin/lpadmin -p LBP3010 -m CNCUPSLBP3050CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E
/usr/sbin/ccpdadmin -p LBP3010 -o /dev/usb/lp0
update-rc.d ccpd defaults 20

echo "LT: Įjunkite printer\'į";
echo "EN: Plug in the printer";

chmod 777 /dev/usb/lp0

echo "LT: Restartuokite kompiuterį ir melskitės prieš išbandydami printerį";
echo "EN: Please restart the computer and pray before testing the printer";

echo "LT: Jei patyrėte pakeliui problemų - suveskite konsolėje apt-get -f install ir leiskite script'ą dar kartą";
echo "EN: If experienced any problems - run \"apt-get -f install\" command and run this script again";


I did right click on the file and found an option to allow it as an executable - which I did. I then double-clicked it and chose RUN, but nothing happened at all. RUN IN TERMINAL - no reaction.

I then tried to open terminal and type sudo "scriptname" and get the answer "command not found".
Husse wrote: remember autocomplete? Sorry, I can't seem to find out what he means?

It would be great if anyone could help me a bit with this (on a "noob willing to learn"-level :) )
I REALLY have tried to figure it out myself....

Husse
Level 23
Level 23
Posts: 18703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Installing Canon LBP 3010

Postby Husse » Sat Sep 19, 2009 10:43 am

I then tried to open terminal and type sudo "scriptname" and get the answer "command not found".
Husse wrote: remember autocomplete?

You only have to type a few letters and then press tab and the filename is filled in (unless there is an ambiguity)
And as the command was not found you either made a typo or was not in the same folder as the script
Have to reread this
Image
Don't fix it if it ain't broken, don't break it if you can't fix it


Return to “Printers & Scanners”