Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 22 Jul 2014, 21:48
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Printers
Canon MP160 (install from RPM?)
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Author Message
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Tue 19 Jun 2007, 11:54    Post subject:  Canon MP160 (install from RPM?)
Subject description: Donated printer
 

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.cgi?recnum=Canon-PIXMA_MP160

http://forums.freestandards.org/read.php?25,1420,2178#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 Mission

Sorry, my server is down atm!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Thu 21 Jun 2007, 09:39    Post subject: update  

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:
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 Mission

Sorry, my server is down atm!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
muggins

Joined: 20 Jan 2006
Posts: 6673
Location: lisbon

PostPosted: Thu 21 Jun 2007, 10:28    Post subject:  

ecomoney,

why not try the method that's mentioned on OpenPrinting?

Quote:
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?
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6673
Location: lisbon

PostPosted: Wed 11 Jul 2007, 07:53    Post subject:  

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.
Back to top
View user's profile Send private message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Wed 11 Jul 2007, 13:47    Post subject: thanks  

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 Mission

Sorry, my server is down atm!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
muggins

Joined: 20 Jan 2006
Posts: 6673
Location: lisbon

PostPosted: Thu 12 Jul 2007, 23:38    Post subject:  

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:

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.
SCAN.ZIP
Description 
zip

 Download 
Filename  SCAN.ZIP 
Filesize  33.61 KB 
Downloaded  822 Time(s) 
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6673
Location: lisbon

PostPosted: Fri 13 Jul 2007, 03:04    Post subject:  

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/
Back to top
View user's profile Send private message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Tue 17 Jul 2007, 02:11    Post subject: taken away  

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 Mission

Sorry, my server is down atm!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
paulski

Joined: 06 Oct 2006
Posts: 126
Location: Cologne, Germany &/or Perth, Australia

PostPosted: Sat 12 Jan 2008, 11:49    Post subject: Canon MP460 scanning and printing in Puppy2.16
Subject description: Use of MP160 drivers
 

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/Printing/cups-install-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_printers/all_in_one_printers/mp160_support.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/distributions/puppylinux/pet_packages-2/sane_backends-1.0.17.pet
http://distro.ibiblio.org/pub/linux/distributions/puppylinux/pet_packages-2/sane_frontends-1.0.14.pet

Xsane is not needed but may be useful:
http://distro.ibiblio.org/pub/linux/distributions/puppylinux/pet_packages-2/xsane-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/mp150-0.13.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.
Back to top
View user's profile Send private message 
ttuuxxx


Joined: 05 May 2007
Posts: 10747
Location: Ontario Canada,Sydney Australia

PostPosted: Sat 12 Jan 2008, 17:02    Post subject: Re: Canon MP460 scanning and printing in Puppy2.16
Subject description: Use of MP160 drivers
 

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/Printing/cups-install-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_printers/all_in_one_printers/mp160_support.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/distributions/puppylinux/pet_packages-2/sane_backends-1.0.17.pet
http://distro.ibiblio.org/pub/linux/distributions/puppylinux/pet_packages-2/sane_frontends-1.0.14.pet

Xsane is not needed but may be useful:
http://distro.ibiblio.org/pub/linux/distributions/puppylinux/pet_packages-2/xsane-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/mp150-0.13.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 Smile

Back to top
View user's profile Send private message Visit poster's website 
paulski

Joined: 06 Oct 2006
Posts: 126
Location: Cologne, Germany &/or Perth, Australia

PostPosted: Sun 13 Jan 2008, 19:11    Post subject:  

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.
Back to top
View user's profile Send private message 
ttuuxxx


Joined: 05 May 2007
Posts: 10747
Location: Ontario Canada,Sydney Australia

PostPosted: Sun 13 Jan 2008, 22:10    Post subject:  

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 Smile

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 Smile

Back to top
View user's profile Send private message Visit poster's website 
paulski

Joined: 06 Oct 2006
Posts: 126
Location: Cologne, Germany &/or Perth, Australia

PostPosted: Mon 14 Jan 2008, 17:28    Post subject:  

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.
Back to top
View user's profile Send private message 
paulski

Joined: 06 Oct 2006
Posts: 126
Location: Cologne, Germany &/or Perth, Australia

PostPosted: Thu 17 Jan 2008, 18:53    Post subject:  

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
Back to top
View user's profile Send private message 
ttuuxxx


Joined: 05 May 2007
Posts: 10747
Location: Ontario Canada,Sydney Australia

PostPosted: Thu 17 Jan 2008, 22:33    Post subject:  

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 Smile
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 Smile

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Printers
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1174s ][ Queries: 13 (0.0041s) ][ GZIP on ]