Canon MP160 (install from RPM?)

Problems and successes with specific brands/models of printers
Post Reply
Message
Author
User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

Canon MP160 (install from RPM?)

#1 Post by ecomoney »

Hi, although Im aware how to use a .ppd using cups 0.3, this seems to be a different model, it was donated to the cybercafe.

There are links to an rpm (red hat) file for it, reports that it works in ubuntu and it is listed at openprinting.org as "works perfectly", dont know how i could use this driver in puppy however.

http://openprinting.org/show_printer.cg ... IXMA_MP160

http://forums.freestandards.org/read.ph ... 8#msg-2178

Can anyone help because it was an expensive printer that was given through a charity fund (we didnt have a choice about the model) for sharing between the admin department and the cybercafe. Cheers.
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

update

#2 Post by ecomoney »

Managed to use the unrpm and undeb utilities (do a forum search for unrpm) to extract the .ppd file from the rpm package made by canon, and placed it in the /root folder. Next I ran the CUPS 0.3 package installer again, thinking it would pick up the new .ppd file which it did. However I am faced with this message...

Code: Select all

The .ppd file in /root is not in the correct format for CUPS
Im stuck as to what format it could be, or how to change it.[/code]
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#3 Post by muggins »

ecomoney,

why not try the method that's mentioned on OpenPrinting?
It's not _that_ easy to install in Ubuntu, but it comes with an Installation Guide that works. For Ubuntu 6.06, 6.10 and 7.04, these are the instructions:

1. Install alien [sudo apt-get install alien].

2. Download the 4 RPMs (2 for printing, 2 for scanning).

3. Install with [sudo alien -i --scripts file1.rpm file2.rpm file3.rpm file4.rpm]).

3. Install libpng3 with [sudo apt-get install libpng3].

4. Install libtiff3 (or [sudo ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3]) for scanning.

5. Restart Cups daemon with [sudo /etc/init.d/cupsys restart].

6. Install with [cd /usr/share/cups/model;sudo lpadmin -p MP160 -P canonmp160.ppd -v cnij_usb:/dev/usblp0 -E].

7. Install libxml1 with [sudo apt-get install libxml1] for some support programs to work, as printuimp160 (in /usr/local/bin/)
you'll just need to modify the above for puppy's environment. so don't do 1), dload the 4 files, (2 if you only want the printer function). for points 3 & 4, i think the library files already are in pup2.16, maybe just need a symlink to work.

what do you think?

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#4 Post by muggins »

hey ecomoney,

did you manage to get this working? my neighbour was just given the same model & i just got it working with cups. at first i couldn't get it to work, until i browsed the forum and came across a post, from gamfa, on a different canon model. the solution was that there are several library files which are extracted to /usr/lib, but without their required symlinks. once i symlinked each library the printer worked straight away.

i haven't gotten the scanner working yet...it's complaining of a few missing library files. so i'll look at that tomorrow. let me know if you need more info regarding the printer.

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

thanks

#5 Post by ecomoney »

Thanks Muggins, will give it a try tomorrow. Looks very good. The centre manager is in a wheelchair and cant reach the buttons on most of the multifunction printers (theyre at the top on most) so this one is perfect for her. As long as she can still photocopy the scanner functions shouldnt be too critical. The printer was given as a charity gift from an IT scheme so it would be really great to get this working and not have to send it back.
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#6 Post by muggins »

ecomoney,

as long as you can get the printer working, the photocopier function will work as well. i haven't managed to get xsane to recognise it yet, but the bloke that wrote the pixma driver also wrote a commandline program that works.

i've uploaded it. basic usage is:

Code: Select all

scan -h                             //for help
scan -1 filename.tif           // will output file filename.tif of about 1M size
scan -r 330 filename.tif    // makes resolution 330dpi, size about 24M
scan -r -W filename.tif     // will overwrite existing file
N.B. it will output files with either .tif or .pnm extension, but for scanner and printer, to work you need to dload & unrpm 4 files from canon site.
Attachments
SCAN.ZIP
(33.61 KiB) Downloaded 1113 times

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#7 Post by muggins »

i should make clear that the scan file above is specifically for certain canon pixma models. See this page for more info on which models are supported:

http://home.arcor.de/wittawat/pixma/

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

taken away

#8 Post by ecomoney »

Still havnt had the chance to test this out, keep getting dragged off into other projects! Will report back soon. Thanks for your help everyone.
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

paulski
Posts: 130
Joined: Fri 06 Oct 2006, 15:30
Location: Cologne, Germany &/or Perth, Australia

Canon MP460 scanning and printing in Puppy2.16

#9 Post by paulski »

This is a little explicit step-by step of what I did but it might just get someone with either a MP160 or a MP460 out of trouble. It is essentially the similar to what muggins mentioned but using pixmascan instead of scan. A few links to other threads here will probably also help Pixma MP users:

How I got Canon Pixma MP460 "all-in-one" Printer and Scanner to work in Puppy 2.16. This will work also for MP160 as the driver is the same.

Printing
1. downloaded from dotpups.de unrpm-undeb.pup installed
2. installed cups as described in other threads
link:
http://puppyfiles.org/dotpupsde/dotpups ... l-v0.3.pup

and a few hints here:
http://www.murga-linux.com/puppy/viewtopic.php?t=25058

3. Open file /etc/rc.d/rc.local, and add the line:
/etc/rc.d/rc.cups start

Then save it.

4. Use ROX-filer to go to the properties of /etc/rc.d/rc.cups and change the permissions, so that is executable.
5. install lib.png.so.2.zip see:
http://www.murga-linux.com/puppy/viewtopic.php?t=22095

6. Goto Canon Australia to download two files:
http://canon.com.au/products/all_in_one ... pport.aspx, go through the selection and find the printer drivers

cnijfilter-common-2.70-1.i386.rpm (common package)
cnijfilter-mp160-2.70-1.i386.rpm (specials for the MP160)

(you can also download the guides there (guidemp160-pd-2.70-1.tar.gz)- they are partly helpful but also serve as a bit of a manual)

7. copied the rpm files to ad temp folder and then
unrpm cnijfilter-common-2.70-1.i386.rpm
unrpm cnijfilter-mp160-2.70-1.i386.rpm
Should make a sub dir usr with everthing in there
(Theoretically you could also unrpm it from / and it will all go directly into the 80% of the right folders)

8. Copy the files into the respective places under /usr with the same directory structure

9. The file canonmp160.ppd in ../usr/share/cups/model must be moved to to the /usr/share/cups/model if it hasn't been already.

10. Make symbolic links for all the libcnb***291.so.** with the last letters removed after the "so" part.
eg. libcnbpcmcm291.so.6.50.1 needs a symlink libcnbpcmcm219.so

11. Reboot to get the libs recognized. Make sure your printer is plugged in and switched on.

12. In a terminal:
/etc/rc.d/rc.cups restart

13. In a browser go to Cups local admin:
http://localhost:631/admin
Go to System -> Administration -> Printing
13a. Double-click "New Printer"
13b. Select option "Canon MP160 (USB Printer #1 with status readback for Canon IJ)" , click forward
13c. If the driver option "MP160 Ver.2.70" is not available in the list, select "Install driver" at the bottom and locate it at "/usr/share/cups/model/canonmp160.ppd"

14. in a terminal do the following to set the printer to the device and default:

lpadmin -p MP160 -P cannonmp160.ppd -v cnij_usb:/dev/usb/lp0 -E
lpadmin -d MP160

15. Back in Cups admin in the browser, select Printer and try a test page.

Scanner
There is a native cannon driver but I didn't quite do it that way
Requirements:
Compiling environment (that means devx_216.sfs for puppy 2.16)

1. Download and Install Sane front and backends
http://distro.ibiblio.org/pub/linux/dis ... 1.0.17.pet
http://distro.ibiblio.org/pub/linux/dis ... 1.0.14.pet

Xsane is not needed but may be useful:
http://distro.ibiblio.org/pub/linux/dis ... -0.991.pet

2.Download sane-pixma 0.13.1
http://home.arcor.de/wittawat/pixma/ for notes
download file:
http://home.arcor.de/wittawat/pixma/mp1 ... .1.tar.bz2
Extract somewhere and then:

3. cd to the folder
make
make install
Now everthing should be installed with the sane backend - but somehow Xsane doesnt know about it - will have to look into this further.

4. Useage of the stand alone scan program "pixmascan":
I made a short script to do A4 black and white to tiff file and another for A4 colour to a tif file and save to /mnt/home/ but you can use any folder:

Black and white:
#!/bin/sh
pixmascan -m gray -p A4 -1 -W -f tiff,n /mnt/home/pixmaimg1.tif

Colour
#!/bin/sh
pixmascan -m color -p A4 -1 -W -f tiff,n /mnt/home/pixmacolimg1.tif

Typing in pixmascan with no options gives you the options

Also handy is tiff2pdf that gets installed too. Usage example:
tiff2pdf -f -o /mnt/home/Pixmaimg.pdf /mnt/home/pixmaimg1.tif

See the sane-pixma link for more details.

It got me off the ground.
Perhaps with a little more effort and a few tips I could make a .pet or small wizard.

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

Re: Canon MP460 scanning and printing in Puppy2.16

#10 Post by ttuuxxx »

paulski wrote:This is a little explicit step-by step of what I did but it might just get someone with either a MP160 or a MP460 out of trouble. It is essentially the similar to what muggins mentioned but using pixmascan instead of scan. A few links to other threads here will probably also help Pixma MP users:

How I got Canon Pixma MP460 "all-in-one" Printer and Scanner to work in Puppy 2.16. This will work also for MP160 as the driver is the same.

Printing
1. downloaded from dotpups.de unrpm-undeb.pup installed
2. installed cups as described in other threads
link:
http://puppyfiles.org/dotpupsde/dotpups ... l-v0.3.pup

and a few hints here:
http://www.murga-linux.com/puppy/viewtopic.php?t=25058

3. Open file /etc/rc.d/rc.local, and add the line:
/etc/rc.d/rc.cups start

Then save it.

4. Use ROX-filer to go to the properties of /etc/rc.d/rc.cups and change the permissions, so that is executable.
5. install lib.png.so.2.zip see:
http://www.murga-linux.com/puppy/viewtopic.php?t=22095

6. Goto Canon Australia to download two files:
http://canon.com.au/products/all_in_one ... pport.aspx, go through the selection and find the printer drivers

cnijfilter-common-2.70-1.i386.rpm (common package)
cnijfilter-mp160-2.70-1.i386.rpm (specials for the MP160)

(you can also download the guides there (guidemp160-pd-2.70-1.tar.gz)- they are partly helpful but also serve as a bit of a manual)

7. copied the rpm files to ad temp folder and then
unrpm cnijfilter-common-2.70-1.i386.rpm
unrpm cnijfilter-mp160-2.70-1.i386.rpm
Should make a sub dir usr with everthing in there
(Theoretically you could also unrpm it from / and it will all go directly into the 80% of the right folders)

8. Copy the files into the respective places under /usr with the same directory structure

9. The file canonmp160.ppd in ../usr/share/cups/model must be moved to to the /usr/share/cups/model if it hasn't been already.

10. Make symbolic links for all the libcnb***291.so.** with the last letters removed after the "so" part.
eg. libcnbpcmcm291.so.6.50.1 needs a symlink libcnbpcmcm219.so

11. Reboot to get the libs recognized. Make sure your printer is plugged in and switched on.

12. In a terminal:
/etc/rc.d/rc.cups restart

13. In a browser go to Cups local admin:
http://localhost:631/admin
Go to System -> Administration -> Printing
13a. Double-click "New Printer"
13b. Select option "Canon MP160 (USB Printer #1 with status readback for Canon IJ)" , click forward
13c. If the driver option "MP160 Ver.2.70" is not available in the list, select "Install driver" at the bottom and locate it at "/usr/share/cups/model/canonmp160.ppd"

14. in a terminal do the following to set the printer to the device and default:

lpadmin -p MP160 -P cannonmp160.ppd -v cnij_usb:/dev/usb/lp0 -E
lpadmin -d MP160

15. Back in Cups admin in the browser, select Printer and try a test page.

Scanner
There is a native cannon driver but I didn't quite do it that way
Requirements:
Compiling environment (that means devx_216.sfs for puppy 2.16)

1. Download and Install Sane front and backends
http://distro.ibiblio.org/pub/linux/dis ... 1.0.17.pet
http://distro.ibiblio.org/pub/linux/dis ... 1.0.14.pet

Xsane is not needed but may be useful:
http://distro.ibiblio.org/pub/linux/dis ... -0.991.pet

2.Download sane-pixma 0.13.1
http://home.arcor.de/wittawat/pixma/ for notes
download file:
http://home.arcor.de/wittawat/pixma/mp1 ... .1.tar.bz2
Extract somewhere and then:

3. cd to the folder
make
make install
Now everthing should be installed with the sane backend - but somehow Xsane doesnt know about it - will have to look into this further.

4. Useage of the stand alone scan program "pixmascan":
I made a short script to do A4 black and white to tiff file and another for A4 colour to a tif file and save to /mnt/home/ but you can use any folder:

Black and white:
#!/bin/sh
pixmascan -m gray -p A4 -1 -W -f tiff,n /mnt/home/pixmaimg1.tif

Colour
#!/bin/sh
pixmascan -m color -p A4 -1 -W -f tiff,n /mnt/home/pixmacolimg1.tif

Typing in pixmascan with no options gives you the options

Also handy is tiff2pdf that gets installed too. Usage example:
tiff2pdf -f -o /mnt/home/Pixmaimg.pdf /mnt/home/pixmaimg1.tif

See the sane-pixma link for more details.

It got me off the ground.
Perhaps with a little more effort and a few tips I could make a .pet or small wizard.
by everything that I've read couldn't you just make a pet package for that, seems possible. It would help a lot of users out, Just an Idea
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

paulski
Posts: 130
Joined: Fri 06 Oct 2006, 15:30
Location: Cologne, Germany &/or Perth, Australia

#11 Post by paulski »

ttuxxx,

Yep a .pet would be a lifesaver.
Three things are lacking with me at the moment
1. Time
2. Skills (need to learn how to make a trouble fee .pet)
3. Legal stuff using Canon provided files.

At any rate I will work on making a .pet for myself so when I rebuild my puppy sometime I don't spend a day to get my printer and scanner to work.

It will probably take a long time before I have that done and other users smarter than me may be able to go further using what I discovered in the meantime.

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#12 Post by ttuuxxx »

paulski wrote:ttuxxx,

Yep a .pet would be a lifesaver.
Three things are lacking with me at the moment
1. Time
2. Skills (need to learn how to make a trouble fee .pet)
3. Legal stuff using Canon provided files.

At any rate I will work on making a .pet for myself so when I rebuild my
puppy sometime I don't spend a day to get my printer and scanner to work.

It will probably take a long time before I have that done and other users smarter than me may be able to go further using what I discovered in the meantime.
Ok making a pet file is easy
just make a folder in your root, I always call mine "zdelete"
the reason I call it that is that its always on the bottom of the list so when you download files to use, you can easily transfer them into it. If I make a second folder for another project I usually call it "zzdelete" and so forth:)

next take the files that you downloaded and move them into zdelete
next make a folder in zdelete called Canon_MP160
extract your files then move the extracted folders into Canon_MP160
should be folders like user or lib.etc
next right click and select window and click Terminal Here.
type dir2pet Canon_MP160
follow the simple instructions
and thats it you have a new pet package, ready to give to the world :)

if you have a pet package and would like to extract it
just go to the command line in the folder and type
pet2tgz packagename.pet like for example the new package you just made would be

pet2tgz Canon_MP160.pet

then it will change you pet package to a tar.gz file and you can now extract it and look at the folders:)

have fun ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

paulski
Posts: 130
Joined: Fri 06 Oct 2006, 15:30
Location: Cologne, Germany &/or Perth, Australia

#13 Post by paulski »

Thanks ttuuxx

I will give the pet creation some time later. Your tips together with the
"How to create a PET package" on http://www.puppylinux.com/development/createpet.htm
Should get me 95% there.
The scanner sane backend install script needs a lot of feedback (yes or no answers) to run, so a post install script pinstall.sh is needed for the .pet, but I need to make it run in a kind of pop up window. Any ideas on how I can script that?

Also few updates that might help other Pixma users:
I got xsane to go after re-running the install.sh script from the backend sane-pixma package in a terminal, not from rox. Then the questions and answers in the script are thoroughly done and the backend works.
Somehow the last steps were missed out the first time I did it..
Now I don't need the short A4 page scripts, but they are really handy for a quick scan and go solution.

I also tried the scanner drivers from Canon, also from the Australia website. They need Gimp and its libraries and also the symbolic links to the canon libriaries without everything after the so. bit. In short - too heavy for my liking and too much work to work. Perhaps someone with Pup 3 and Gimp might like it though.

paulski
Posts: 130
Joined: Fri 06 Oct 2006, 15:30
Location: Cologne, Germany &/or Perth, Australia

#14 Post by paulski »

Just made the .pets

One for the Sane backend for the scanner
...299k

And one for the printer
1.7mb
...only I have a small bug when it adds a line to rc.local
I need a carriage return (enter) put in or else it puts the line on the same line as the last command in the file.

I think the file size of the printer one is a bit much to upload to the forum.

Can anyone host it?

By the way a few basic rxvt commands and xmessage got me to get
the scripts go on startup of the .pet

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#15 Post by ttuuxxx »

paulski wrote:Just made the .pets

One for the Sane backend for the scanner
...299k

And one for the printer
1.7mb
...only I have a small bug when it adds a line to rc.local
I need a carriage return (enter) put in or else it puts the line on the same line as the last command in the file.

I think the file size of the printer one is a bit much to upload to the forum.

Can anyone host it?

By the way a few basic rxvt commands and xmessage got me to get
the scripts go on startup of the .pet
If you figure the bug you can email the software and i can get it hosted :)
you'll probably have to tar.gz the pet package, some email carriers don't allow certain formats.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#16 Post by ttuuxxx »

I've uploaded the pets and made a new forum thread for there release in additional software
http://www.murga-linux.com/puppy/viewto ... 169#168169
thanks for everything
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

Post Reply