Benaiah\’s Computer Experiences

July 23, 2007

Installing a Canon Pixma MP460 on Ubuntu Feisty

Filed under: Canon MP460, Printing, ubuntu — Benaiah @ 3:39 pm

Here is how I got the Canon Pixma MP460 Printer/Scanner to work on Ubuntu Feisty.

Canon does not have any Linux drivers for the MP460 so we will use the drivers for the MP160 instead.

First, download the following files from here:

For the Printer:

cnijfilter-common-2.80-1.i386.rpm

cnifjilter-mp160-2.70-1.i386.rpm

For the Scanner:

scangearmp-common-1.00-1.i386.rpm

scangearmp-mp160-1.00-1.i386.rpm

Now make sure that you have alien installed (sudo apt-get install alien)

Now use alien to create .dep packages from the .rpm files you just downloaded. I tried to convert and install all in one step using

sudo alien -i –scripts file1.rpm file2.rpm file3.rpm file4.rpm

but this did not work so I had to convert and install them one at a time.

Make sure that you are in the same directory as the file. (Example cd /home/username/Desktop

To convert:

Note: The long dash before “scripts” is actually two small dashes

sudo alien cnijfilter-common-2.80-1.i386.rpm –scripts

sudo alien cnifjilter-mp160-2.70-1.i386.rpm –scripts

sudo alien scangearmp-common-1.00-1.i386.rpm –scripts

sudo alien scangearmp-mp160-1.00-1.i386.rpm –scripts

To install:

sudo dpkg -i cnijfilter-common-2.80-1.i386.deb

sudo dpkg -i cnifjilter-mp160-2.70-1.i386.deb

sudo dpkg -i sudo alien scangearmp-common-1.00-1.i386.deb

sudo dpkg -i scangearmp-mp160-1.00-1.i386.deb

Now install libpng3:

sudo apt-get install libpng3

Next install libtiff3:

sudo ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3

Restart cups daemon:

sudo /etc/init.d/cupsys restart

Install the printer:

cd /usr/share/cups/model/

sudo lpadmin -p MP160 canonmp160.ppd -v cnij_usb:/dev/usblp0 -E

Install libxml1:

sudo apt-get install libxml1

At this point the printer should be working! Next is to get the scanner to work. I am using XSane Image Scanner. To get this to work we must install the scanner back-end.

First, download the latest version from here.

Uncompress the file with:

tar -xvjf mp150-0.13.1.tar.bz2

Install:

make

sudo make install

If this does not work there is more information in the Installation section of the README.html file included in the download.

Both the printer and scanner on your Canon Pixma MP460 should now work!

Advertisements

18 Comments »

  1. hi,
    all the things don’t happen exactly the same on my computer.

    when i convert .rpm to .deb , the .deb filename changed
    ex : cnijfilter-common-2.70-1.i386.rpm (watch underscore and dash)
    cnijfilter-common_2.70-2_i386.deb

    then it’s ok to the step :
    sudo lpadmin -p MP160 canonmp160.ppd -v cnij_usb:/dev/usblp0 -E

    where i get:
    lpadmin: Argument « canonmp160.ppd » inconnu
    this means : lpadmin: Argument unknown« canonmp160.ppd ».

    so if anyone as a solution, i take it..
    thanks.
    v.

    Comment by v2k — August 3, 2007 @ 6:37 am

  2. ok so i watched the man of lpadmin and i had to change to :
    sudo lpadmin -p MP160 -P canonmp160.ppd -v cnij_usb:/dev/usblp0 -E

    I added a -P before canonmp160.ppd

    that’s it, hope this gonna work.

    cya

    Comment by v2k — August 3, 2007 @ 6:40 am

  3. Is there any other website to download the drivers? I’ve tried a few times over the last two days but the canon australia sight doesn’t seem to be working right. The link for drivers is dead. The drivers for every other model of printer seem to be available with working links but they are all for windows and mac :(

    Thanks

    Comment by Nic — September 10, 2007 @ 12:20 am

  4. Followed the post to install a MP160.

    v2k’s comment about -P is right. I also had to add the following udev rule in /etc/udev/rules.d/45-libsane.rules which fixes the permission (group ownership really.. – to ‘scanner’) of the file in /proc/bus/usb/xx/xx . If this is not done the scanner will still run as ‘root’.

    # Canon PIXMA MP160
    SYSFS{idVendor}==”04a9″, SYSFS{idProduct}==”1714″, MODE=”664″, GROUP=”scanner”

    Thanks for the post.

    oktay

    Comment by Oktay Altunergil — October 2, 2007 @ 1:29 am

  5. For the Canon Pixma MP460, the lines you need to add in /etc/udev/rules.d/45-libsane.rules are :

    # Canon PIXMA MP460
    SYSFS{idVendor}==”04a9″, SYSFS{idProduct}==”1716″, MODE=”664″, GROUP=”scanner”

    If you cut and past, be careful about the quotes.

    Comment by Grasyop — October 16, 2007 @ 8:01 am

  6. Whenever I attempt to convert the four files from .rpm to .deb, I get a message stating that these files do not exist. I am new to Linux (Ubuntu 7.10, specifically) and am quite lost.

    I believe I downloaded Alien, but cannot find it. If I’m following correctly, I should simply be able to type “sudo alien cnijfilter-common-2.70-1.i386.rpm –scripts” (I was unable to find version 2.80, only 2.70) into the Terminal and hit enter. Any help would be greatly appreciated.

    Comment by Jack — October 24, 2007 @ 8:58 pm

  7. hi,
    i tried mp160 in ubuntu feisty and gutsy, same result : no response from printer.
    got the driver from canon-asia in rpm, did the alien thing, cupsys restart, lpadmin, printer appear in printer configuration, everything seems ok, but it just DON’T print. why???????
    why??????

    Comment by penasaran — October 31, 2007 @ 2:56 am

  8. To install the Sane back-end, you have to have the compiling tools installed. So before you attempt to install the Sane back-end, sudo apt-get install libgtk2.0-dev libxml2-dev gettext libnss-dev libnspr-dev libgtkspell (not all these are needed to compile and install sane, but I used these to compile Pidgin 2.3.1 on Ubuntu 7.04 and so I just used the tools already installed to compile and install sane).

    BTW, how do I get my Canon PIXMA MP210 all-in-one scanner to work? I don’t think the Sane back-end is compatible with it, so is there a workaround?

    Comment by Darth Chaos — January 9, 2008 @ 12:38 am

  9. Hey,

    Thanks for the detailed instructions, but I could not get the printer to work with Kubuntu 7.10. I see a print go to the queue, but it never winds up going to the printer. It’s like the command and batch job goes to a black hole.

    I downloaded Turboprint and I at least can get test pages to print now, whether the test page comes from cups server or Turboprint.

    Comment by Jay — February 13, 2008 @ 12:13 am

  10. Another thing I have noticed, which may explain why the Canon Linux drivers aren’t working for me.

    For:

    freyguy@indurain:~/Desktop/faq-pd-2.70-1/FAQ$ cngpij
    cngpij Ver.2.70 Copyright CANON INC. 2002-2007
    Usage: cngpij [-P printer name]

    if you type something like this:
    freyguy@indurain:~$ cngpij -P MP160 .bash_history

    all that will happen is the X Window of the Canon MP160 Configuration will pop up. The file will not be printed, even if you close the box by hitting ‘OK’. I would have expected an attempt by the cngpij command to try and print the file, but this does not happen.

    Comment by Jay — February 13, 2008 @ 12:59 am

  11. Hi there.

    What a great tutorial! Everything worked fine for me in Ubutnu Hardy Heron, and I’m printing and scanning within about 40 mins!

    Excellent work — very much appreciated!

    Comment by Ricky Hayes — March 15, 2008 @ 3:27 am

  12. The Canon PIXIMA MP150 driver works well for printing and is included in Ubuntu 7.10. The red is somewhat orange, but other than that I have no complaints.

    Comment by Jonas — March 25, 2008 @ 11:18 pm

  13. Hi.

    I’ve created a DEB package with the data from the four RMP packages included. It also installs libpng3 and libxml1.

    1) Download the deb from:
    http://vlerkknozem.googlepages.com/mp460_0.98_i368.deb

    2) Install the deb:
    –> sudo dpkg -i mp460_0.98_i368.deb

    3) Install libtiff sudo ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3

    4) Restart cups
    –> sudo /etc/init.d/cupsys restart

    5) Install the printer
    –> cd /usr/share/cups/model/
    –> sudo lpadmin -p MP160 canonmp160.ppd -v cnij_usb:/dev/usblp0 -E

    You can also install the printer with:
    system>Administration>printer (on ubuntu)

    Comment by Koenux — June 8, 2008 @ 12:53 pm

  14. You are my hero :)

    Used on ubuntu Server 8.04

    As a linux noob this was extremely helpful. I havent tried scanning/coppying yet, but it printed out the test page with the only problem being low ink levels so some colors are off.

    When I tried “sudo lpadmin -p MP160 canonmp160.ppd -v cnij_usb:/dev/usblp0 -E” it gave me an “lpadmin: Unknown argument ‘canonmp160.ppd’!” message. Dont know what that means, but it still printed so I’m gonna tackle that issue if/when it arrises.

    Now I just need to test print something from my wifes XP box and my vista/ubuntu 8.10 box.

    Comment by Boogeyman — February 26, 2009 @ 2:22 pm

  15. I am using Ubuntu Intrepid Ibex.
    I plugged in the printer, turned it on, and Intrepid installed a default text-only driver for it. It then asked if I want to search for drivers. After a couple minutes of it searching online a list came up. I selected Canon, and PIXMA MP160. MP460 was not on the list.
    My MP460 prints perfectly.
    I have not tried any scanning yet.

    Comment by marinegundoctor — March 12, 2009 @ 9:17 pm

  16. Okay, I just tried scanning and it works!.
    Note that I could not install this printer in Intrepid using the instructions in this post. I also tried the .deb pkg and inst’s from comment #13. The only thing I did was install like I mentioned in comment #15 above.

    I installed xsane thru the Add/Remove apps. xsane version I have is 0.995.
    It recognized the MP460 as Canon MP460 and scanned just fine.

    Comment by marinegundoctor — March 12, 2009 @ 9:29 pm

  17. voglio installare lo scanner

    Comment by iaia cosimo — October 18, 2009 @ 3:21 pm

  18. hi,
    I have a linux karmic koala and a canon mp460
    I’ve followed the intructions and they seemed to work, except at the end I got ipadmin: bad device-uri “cnij_usb:/dev/usblp0”
    I ignored it as someone advised in the forum
    and continued with the instructions and when it got to here
    sudo apt-get install libxml1
    it replied
    E:couldn’t find package libxmlL

    the printer seems to be recognised in the printer options, but it is not working
    I’d be grateful for any clues, i’m new at this by the way, surprised I got as far as filling all the instructions.
    thanks
    vir

    Comment by virginia — April 11, 2010 @ 3:24 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: