Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Canon MF4270 drivers in RPM format
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
jserink
l33t
l33t


Joined: 30 Jan 2004
Posts: 932

PostPosted: Thu May 21, 2009 5:49 am    Post subject: Canon MF4270 drivers in RPM format Reply with quote

Hi All:

I've left rpms behind in a former life so I'm clueless about them.
The drivers for the above printer are in RPM format for 64 bit AND also the source is availble.
HOw do I make use of the rpms to install the driver. I've emerged the rpm utils and of course, I run
rpm -ivvh cndrvcups-common-1.80-1.x86_64.rpm
and the system just burps and farts puking a bunch of unrelosved dependancy errors onto the screen...because there is nothing it he rpm database of course, I'm running Gentoo.

SO, How to I fool it into behaving?

Or should I compile form source?

Cheers,
John


Last edited by jserink on Thu May 21, 2009 12:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
jserink
l33t
l33t


Joined: 30 Jan 2004
Posts: 932

PostPosted: Thu May 21, 2009 6:11 am    Post subject: So, I compiled from source... Reply with quote

Ok, now I have *.ppd files for the 4270...
I install the printer on CUPS and get this error:
Unable to start filter "pstoufr2cpca" - No such file or directory."

WHen I print a test page.

Any ideas?

Cheers,
John
Back to top
View user's profile Send private message
jserink
l33t
l33t


Joined: 30 Jan 2004
Posts: 932

PostPosted: Thu May 21, 2009 7:05 am    Post subject: Reply with quote

Ok solved the filter issue with this:
mv /usr/lib64/cups/filter/pstoufr2cpca /usr/libexec/cups/filter/pstoufr2cpca

But, the test pages spool to the printer, CUPS reports the jobs complete but nothing comes out of the printer.

I have a MF4370 and have tried the MF4270 and MF4170 drivers, there are 3 ppd files per printer model(don't konw why) but none work.

Anyone had success with this?

Cheers,
John
Back to top
View user's profile Send private message
mobian
n00b
n00b


Joined: 17 Dec 2004
Posts: 71

PostPosted: Thu Dec 24, 2009 9:22 pm    Post subject: Reply with quote

Ever figure this out? Just got the same printer and having the same problem...
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri Dec 25, 2009 2:33 am    Post subject: Reply with quote

do a ldd on the filter if libraries are missing

also try catting a file to the filter binary directory whether it prints it after you've fixed any missing library problems

cat test.txt | pstoufr2cpca

(if that's the filter)


search for my brother howto in these forums and see if some of its steps helps you

good luck !


Seasons Greatings ! :)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
mobian
n00b
n00b


Joined: 17 Dec 2004
Posts: 71

PostPosted: Mon Dec 28, 2009 3:22 pm    Post subject: Reply with quote

Thanks for the response. I tried what you suggested, and indeed the filter is failing. I'm getting:

Code:

# cat foo.txt | /usr/lib64/cups/filter/pstoufr2cpca
DEBUG: pstoufr2cpca start.
ERROR: pstoufr2cpca illegal parameter number.


I'll try searching the forums with this new insight [/quote]and see if it helps. Thanks!
Back to top
View user's profile Send private message
jserink
l33t
l33t


Joined: 30 Jan 2004
Posts: 932

PostPosted: Tue Dec 29, 2009 12:13 am    Post subject: Reply with quote

I get the same error. I couldn't find anything on google a few months back when I worked on this. I haven't gone back to canon....maybe that' the way to go?

Cheers,
John
Back to top
View user's profile Send private message
zteccc
n00b
n00b


Joined: 14 Feb 2011
Posts: 3
Location: North Las Vegas, NV, USA

PostPosted: Mon Feb 14, 2011 12:36 am    Post subject: Reply with quote

Ok, it's an old thread, but why not.

I've had success with the mf4370dn. I had to go to Canon Australia for the UFR-II driver. The source code driver had some issues, but I was able to get the binary driver to work. I can provide the ebuild that I made for the binary driver and instructions on how to use it with CUPS if anyone is interested. I have to warn you though, it is a pretty ugly ebuild.

Just let me know.

-- Jeff
Back to top
View user's profile Send private message
jserink
l33t
l33t


Joined: 30 Jan 2004
Posts: 932

PostPosted: Mon Feb 14, 2011 2:11 am    Post subject: Reply with quote

zteccc wrote:
Ok, it's an old thread, but why not.

I've had success with the mf4370dn. I had to go to Canon Australia for the UFR-II driver. The source code driver had some issues, but I was able to get the binary driver to work. I can provide the ebuild that I made for the binary driver and instructions on how to use it with CUPS if anyone is interested. I have to warn you though, it is a pretty ugly ebuild.

Just let me know.

-- Jeff


Yes, yes, yes, post the ebuild!

Cheers,
John
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Mon Feb 14, 2011 4:03 am    Post subject: Reply with quote

Ain't they available in some package?

net-print/foomatic-db-ppds
Available versions: 3.0.20060720 ~3.0.20070508 ~3.0.20080507 ~4.0.20100205 ~4.0.20100218 ~4.0.20101123
Homepage: http://www.linuxprinting.org/foomatic.html
Description: linuxprinting.org PPD files for postscript printers

* net-print/foomatic-filters-ppds
Available versions: 20060720 20070501 ~20080507
Homepage: http://www.linuxprinting.org/foomatic.html
Description: linuxprinting.org PPD files for non-postscript printers
?
_________________
My blog
Back to top
View user's profile Send private message
zteccc
n00b
n00b


Joined: 14 Feb 2011
Posts: 3
Location: North Las Vegas, NV, USA

PostPosted: Mon Feb 14, 2011 4:39 pm    Post subject: Canon UFR-II-bin ebuild Reply with quote

Here's what I've done to get this to work.

First, you need to create a local overlay

Create a net-print subdirectory in your local overlay and then create canon-ufr2-bin under that

Here's the body of the ebuild, you'll want to create canon-ufr2-bin-1.90e.ebuild in the canon-ufr2-bin folder and paste these contents:

Code:

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils rpm versionator

DESCRIPTION="Canon UFR2 Printer Driver and PPDs -- supports many Canon printers."

HOMEPAGE="http://support-au.canon.com.au/contents/AU/EN/0100093004.html/"

# Note the URI will get you to a download page, but I cannot specify the destination filename properly here.
# Thus the file will have to be manually fetched, rename and saved in distfiles.
# The actual download location is:
# http://pdisp01.c-wss.com/gdl/WWUFORedirectTarget.do?id=MDEwMDAwMDkzMDA2&cmp=ABS&lang=EN
MY_SRC_URI="http://pdisp01.c-wss.com/gdl/WWUFORedirectTarget.do?id=MDEwMDAwMDkzMDA2&cmp=ABS&lang=EN"
SRC_URI="http://pdisp01.c-wss.com/gdl/WWUFORedirectTarget.do?id=MDEwMDAwMDkzMDA2&cmp=ABS&lang=EN/${P}.tar.gz"

LICENSE="   GPL-2
      MIT
"

SLOT="0"

KEYWORDS="~x86"

IUSE=""

RESTRICT="fetch"

DEPEND=">=net-print/cups-1.1.19
   virtual/ghostscript"

RDEPEND="${DEPEND}"

S="${WORKDIR}/${P}"


pkg_nofetch() {
   echo Please download the file from:
   echo ${MY_SRC_URI}
   echo and save it in ${DISTDIR} as ${P}.tar.gz
}

src_unpack() {
COMMONRPM="cndrvcups-common-1.90-1.i386.rpm"
DRVRPM="cndrvcups-ufr2-uk-1.90-1.i386.rpm"
EXTRACTPATH="UFR_II_Printer_Driver_for_Linux_Driver_V190_uk_EN/32-bit_Driver/RPM"
   unpack ${P}.tar.gz
   rpm_unpack ${WORKDIR}/${EXTRACTPATH}/${COMMONRPM}
   rpm_unpack ${WORKDIR}/${EXTRACTPATH}/${DRVRPM}
}

src_compile() {
   echo Nothing to do, this is a binary package!
}

src_install() {
   dodir /etc/cngplp
   cp -R -pd "${WORKDIR}/etc/cngplp/" "${D}/etc/"

   dodir /usr/bin
   cp -pd "${WORKDIR}"/usr/bin/* "${D}/usr/bin/"
   cp -pd "${WORKDIR}"/usr/local/bin/* "${D}/usr/bin/"

   dodir /usr/share
   cp -R -pd "${WORKDIR}/usr/share/" "${D}/usr/"
   cp -R -pd "${WORKDIR}/usr/local/share/" "${D}/usr/"

   dodir /usr/include
   cp -pd "${WORKDIR}"/usr/include/* "${D}/usr/include/"

   dodir /usr/lib
   cp -pd "${WORKDIR}"/usr/lib/* "${D}/usr/lib/"

   dodir /usr/libexec
   cp -R -pd "${WORKDIR}/usr/lib/cups/" "${D}/usr/libexec/"
}



This ebuild has a fetch restriction, that's because the filename that must be downloaded doesn't match the ebuild name (or any normal naming convention). So download the file from Canon Australia and save it in a temporary location (you'll probably want to keep a copy of this somewhere safe in case you ever clean up the distfiles folder).

Rename the downloaded file to canon-ufr2-bin-1.90e.tar.gz and copy it to the /usr/portage/distfiles folder

You'll also need the Manifest file:

Code:

DIST canon-ufr2-bin-1.90e.tar.gz 15303170 RMD160 66dbba4e63d0ae11e727ae2e0d0daf54d7ef3e46 SHA1 294aa323428922cbe67997de65ccd5d54881a8d8 SHA256 bbd45931eacb205bb9503dbd1a0a0aa085197d13634bd78f387466afbed44b76
EBUILD canon-ufr2-bin-1.90e.ebuild 2053 RMD160 729419bd83db431c86edd1e3913094d8add63c57 SHA1 cba1f50d61b661ee075a704d1f2788df3f2391ea SHA256 04c29ef3f15b13a58c0825e83bfbd5898fba223ef45e533a820e7f8632552ec8


Save it as Manifest (case sensitive) in the canon-ufr2-bin folder (there should be only 2 lines, but the forum wraps them, so make sure you only have a DIST and EBUILD line). Alternatively, you can create the manifest by issuing the command:
Code:
ebuild /usr/local/portage/net-print/canon-ufr2-bin/canon-ufr2-bin-1.90e.ebuild digest


The ebuild is masked ~x86 (I have not tested this in x64 or any other architecture). You'll need to unmask it in /etc/portage/package.keywords

Now that you've done ALL of that, you can
Code:
emerge canon-ufr2-bin


Note: this is a really ugly ebuild and it throws many errors. Further, there seems to be a dependency that revdep-rebuild will always detect causing it to re-emerge this whenever you run revdep-rebuild. This is a minor annoyance, but it probably means that the bin is not perfect (hey, I wanted to work with the source code, but didn't have the time, perhaps in the future I will).

In any case, after you emerge the driver, then you can go into cups and add the printer:
Add an AppSocket/HP Jetdirect device. The URI should be something like socket://192.168.x.x:9100 (use whatever your MF4370dn's IP address is).
Select Canon as the manufacturer
In the list of devices you should select Canon MF4360-4390 ver.1.9 (en)

That's about it.

I did this a while ago and trusted my memory to recall the exact process. If you run into problems, let me know and I'll see if I can figure them out.

-- Jeff
Back to top
View user's profile Send private message
helio
Apprentice
Apprentice


Joined: 08 Apr 2006
Posts: 195

PostPosted: Mon Mar 21, 2011 1:48 am    Post subject: Reply with quote

Thanks, Jeff. This is very helpful. I managed to get mine working after changing "virtual/ghostscript" to "app-text/ghostscript-gpl". The connection to my printer is via usb cable. I wonder if there is any such linux driver also for this printer (mf4370) to work over wired or wireless network.
Back to top
View user's profile Send private message
zteccc
n00b
n00b


Joined: 14 Feb 2011
Posts: 3
Location: North Las Vegas, NV, USA

PostPosted: Mon Mar 21, 2011 6:54 pm    Post subject: Reply with quote

Helio,

I'm using it with a wired (ethernet) connetion, not a USB connection, so yes, it works fine. See my earlier post where I discuss setting up an AppSocket/HP Jetdirect device.

-- Jeff
Back to top
View user's profile Send private message
helio
Apprentice
Apprentice


Joined: 08 Apr 2006
Posts: 195

PostPosted: Tue Mar 22, 2011 7:12 am    Post subject: Reply with quote

Jeff, thanks for reply. What I just realized is really embarrassing. It turns out the printing has been in fact worked for me through the wired network set up at home using a router. The usb connection didn't really do anything. Somehow I mistakenly thought the driver only worked for usb connection from an older thread on a similar topic:

http://ubuntuforums.org/showthread.php?t=1051284
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
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