How I got my Canon MG8120 working in Mageia 2

How I got my Canon MG8120 working in Mageia 2

Postby David_Batson » Jun 14th, '12, 06:59

It wasn't pretty, but I finally got it to work with the official Canon drivers. This is using the wireless network feature of my printer, which is interfaced through my wireless router. Hopefully I don't have any typos below.
http://support-au.canon.com.au/P/search ... g_os=Linux

I downloaded the archived rpm (MG8100 series IJ Printer Driver Ver. 3.40 for Linux (rpm Packagearchive)) from Canon. Opened and extracted the tarball with Ark from Dolphin.

From /home/dkb/Downloads/cnijfilter-mg8100series-3.40-1-rpm/packages/ I created 2 directories /common and /mg8100
I copied the appropriate rpms to each directory using dolphin.
So here I have the following:
Code: Select all
/home/~/Downloads/cnijfilter-mg8100series-3.40-1-rpm/packages/common/cnijfilter-common-3.40-1.x86_64.rpm
/home/~/Downloads/cnijfilter-mg8100series-3.40-1-rpm/packages/mg8100/cnijfilter-mg8100series-3.40-1.x86_64.rpm


From there, I used rpm2cpio to extract the appropriate rpms (64-bit in my case).
Code: Select all
# cd /home/~/Downloads/cnijfilter-mg8100series-3.40-1-rpm/packages/common/
# rpm2cpio cnijfilter-common-3.40-1.x86_64.rpm | cpio -idmv

# cd /home/~/Downloads/cnijfilter-mg8100series-3.40-1-rpm/packages/mg8100/
# rpm2cpio cnijfilter-mg8100series-3.40-1.x86_64.rpm | cpio -idmv


This creates /usr directories with all the files contained in the rpms in ~/common & ~/mg8100 directories.
Next I copied those files to my usr directory.
Code: Select all
# cd /home/~/Downloads/cnijfilter-mg8100series-3.40-1-rpm/packages/common/
# cp -r /home/~/Downloads/cnijfilter-mg8100series-3.40-1-rpm/packages/common/usr/* /usr

# cd /home/~/Downloads/cnijfilter-mg8100series-3.40-1-rpm/packages/mg8100/
# cp -r /home/~/Downloads/cnijfilter-mg8100series-3.40-1-rpm/packages/mg8100/usr/* /usr


I listed the libcn* files.
Code: Select all
# cd /usr/lib64 (for 64-bit mageia)
# ls libcn*

Next I created symbolic links for all these files below.
Code: Select all
# ln -s libcnnet.so.1.2.0 libcnnet.so
# ln -s libcnbpcmcm377.so.8.0.1 libcnbpcmcm377.so
# ln -s libcnbpcnclapi377.so.3.5.0 libcnbpcnclapi377.so
# ln -s libcnbpcnclbjcmd377.so.3.3.0 libcnbpcnclbjcmd377.so
# ln -s libcnbpcnclui377.so.3.6.0 libcnbpcnclui377.so
# ln -s libcnbpo377.so.1.0.1 libcnbpo377.so
# ln -s libcnbpess377.so.3.3.3 libcnbpess377.so


Also needed older versions of libpng, libtiff, and libjpeg. I found and downloaded them using http://rpm.pbone.net/
Code: Select all
libpng-1.2.44-1.fc12.x86_64.rpm
libtiff-3.9.4-1.fc12.x86_64.rpm
libjpeg-6b-46.fc12.x86_64.rpm


I did the same with those as I did with the Canon rpms. After downloading the old fedora rpms, I extracted the contents with rpm2cpio, and copied the files to /usr/lib64/

Here are all the libpng, libtiff, and libjpeg files I ended up with after creating some symbolic links
Code: Select all
[root@localhost ~]# cd /usr/lib64
[root@localhost lib64]# ls -l libpng*
lrwxrwxrwx 1 root root     18 Jun 12 10:05 libpng12.so -> libpng12.so.0.44.0*
lrwxrwxrwx 1 root root     18 Jun 12 12:26 libpng12.so.0 -> libpng12.so.0.44.0*
-rwxr-xr-x 1 root root 157496 Jun 12 12:26 libpng12.so.0.44.0*
lrwxrwxrwx 1 root root     19 Jun 10 15:30 libpng15.so.15 -> libpng15.so.15.10.0*
-rwxr-xr-x 1 root root 315568 Apr  2 17:11 libpng15.so.15.10.0*
lrwxrwxrwx 1 root root     11 Jun 12 10:05 libpng.so -> libpng12.so*
lrwxrwxrwx 1 root root     16 Jun 12 12:26 libpng.so.3 -> libpng.so.3.44.0*
-rwxr-xr-x 1 root root 172760 Jun 12 12:26 libpng.so.3.44.0*
[root@localhost lib64]# ls -l libtiff*
lrwxrwxrwx 1 root root     12 Jun 12 20:50 libtiff.so -> libtiff.so.3*
lrwxrwxrwx 1 root root     16 Jun 12 12:27 libtiff.so.3 -> libtiff.so.3.9.4*
-rwxr-xr-x 1 root root 408688 Jun 12 12:27 libtiff.so.3.9.4*
lrwxrwxrwx 1 root root     16 Jun 10 15:30 libtiff.so.5 -> libtiff.so.5.0.6*
-rwxr-xr-x 1 root root 468360 Apr  5 05:30 libtiff.so.5.0.6*
lrwxrwxrwx 1 root root     14 Jun 13 20:34 libtiffxx.so -> libtiffxx.so.3*
lrwxrwxrwx 1 root root     18 Jun 12 12:27 libtiffxx.so.3 -> libtiffxx.so.3.9.4*
-rwxr-xr-x 1 root root   9224 Jun 12 12:27 libtiffxx.so.3.9.4*
lrwxrwxrwx 1 root root     18 Jun 10 15:30 libtiffxx.so.5 -> libtiffxx.so.5.0.6*
-rwxr-xr-x 1 root root  10432 Apr  5 05:30 libtiffxx.so.5.0.6*
[root@localhost lib64]# ls -l libjpeg*
lrwxrwxrwx 1 root root     13 Jun 13 20:35 libjpeg.so -> libjpeg.so.62*
lrwxrwxrwx 1 root root     17 Jun 12 22:17 libjpeg.so.62 -> libjpeg.so.62.0.0*
-rwxr-xr-x 1 root root 147688 Jun 12 22:17 libjpeg.so.62.0.0*
lrwxrwxrwx 1 root root     16 Jun 10 15:30 libjpeg.so.8 -> libjpeg.so.8.0.2*
-rwxr-xr-x 1 root root 260744 Apr 23 14:59 libjpeg.so.8.0.2*


I found I needed to install ghostscript from Mageia for the printer to print. Before that I installed a2ps, so it might be needed as well.

When done, restart cups:
Code: Select all
# /etc/rc.d/init.d/cups restart


The command from console # /usr/lib/cups/backend/cnijnet should display the URI of your printer.
Mine is: cnijnet:/00-1E-8F-A6-5A-72

If your printer is not discovered like mine wasn't, try entering that URI directly from the cups web interface:
http://localhost:631/
I used the "AppSocket/HP JetDirect" radio button, erased the word "socket" from the Connection box, and entered
cnijnet:/00-1E-8F-A6-5A-72
Finish out the wizard to install the printer. Try and print a test page.
Last edited by doktor5000 on Jun 14th, '12, 20:38, edited 1 time in total.
Reason: added code tags, to improve on clarity
David_Batson
 
Posts: 128
Joined: May 1st, '11, 05:19

Re: How I got my Canon MG8120 working in Mageia 2

Postby doktor5000 » Jun 14th, '12, 20:46

What about the Gutenprinter driver, which i've already told you about in your other thread about this printer?
Also as you didn't respond to viewtopic.php?p=14560#p14560 thus i've not attached the package.
You'd only have to rebuild that on your machine, and the driver would be good to install

*sigh*

Anyways, thanks for posting that guide ...
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18061
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How I got my Canon MG8120 working in Mageia 2

Postby David_Batson » Jun 15th, '12, 02:05

doktor5000 wrote:Also as you didn't respond to viewtopic.php?p=14560#p14560 thus i've not attached the package.

Not sure what you mean there. I thought you were asking Wilcal for the package, not me.

I've known there are other printer drivers available. Regarding Gutenprint, I've always had the feeling that these drivers would not have all the features of the official Manufacturer's drivers. Could be wrong though...

I would be curious how well the Gutenprint drivers find the correct URI for a network printer, such as this Canon MG8120.
David_Batson
 
Posts: 128
Joined: May 1st, '11, 05:19

Re: How I got my Canon MG8120 working in Mageia 2

Postby doktor5000 » Jun 18th, '12, 22:45

David_Batson wrote:
doktor5000 wrote:Also as you didn't respond to viewtopic.php?p=14560#p14560 thus i've not attached the package.

Not sure what you mean there. I thought you were asking Wilcal for the package, not me.

Ahh sorry, misread that somehow, as both of you were having issues with that printer and issues getting the driver to work.

David_Batson wrote:I would be curious how well the Gutenprint drivers find the correct URI for a network printer, such as this Canon MG8120.

Well, just try them out and you'll know for sure. :D

I can also attach my above mentioned packaged, which was intented to be included in Mageia 2 and i've put hours of work into that, as it's rather hard to build driver for all printers in one run, but it supports the following printer families:

o Pixma iP4800
o Pixma MG5100
o Pixma MG5200
o Pixma MG6100
o Pixma MG8100
o Pixma MP250
o Pixma MP280
o Pixma MP495

The only reason it wasn't included was that Gutenprint drivers had been updated in between, and they said they'd also support those printers, and nobody tested it in that phase and gave feedback that it doesn't, that's why cnifilter driver wasn't included for Mageia 2.

But i'm currently rebuilding the full driver package for Mageia 2.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18061
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Printers and Scanners

Who is online

Users browsing this forum: No registered users and 1 guest