You are not logged in.

#1 2014-04-16 03:46:10

davidm
Member
Registered: 2009-04-25
Posts: 371

Canon Pixma MG2520 multi-function printer

This is a pretty popular cheap printer available at Walmart and I didn't see much about it on the forum so I thought I'd share how I got it printing at least because someone else will definitely be wondering.

The Gutenprint 5.2.9 in the repos currently doesn't seem to support this printer.  Support for it in Gutenprint was added sometime around August 2013.  Incidentally there is also a gutenprint-cvs package in AUR but it seemed too old before support for the MG2520 was added.

---------------------------------

1. 'pacman -Ss gutenprint'  -- if the version is 5.2.10 or above you should NOT have to do anything below.  It should be detected normally using the regular gutenprint.  (as I write this as explained the 5.2.10 version has not yet been released)

2. Check the AUR: https://aur.archlinux.org/packages/gutenprint-cvs/   Is it a build later than september 2013?  If so you may want to use that instead of the below.  (As I write this it's still on 20130611-1)

3. Realize this isn't the proper Arch way.  The right way would be to fix the PKGBUILD above to grab the new source.  But I don't have the time and expertise at the moment.  Maybe you do?

4. Continue below then at your own risk if you want to try what I did to get it to work.

So I just went to the Gutenprint website and downloaded the tarball for 5.2.10 pre2.

It's available here:

http://sourceforge.net/projects/gimp-pr … 2.10-pre2/

and the file is named "gutenprint-5.2.10-pre2.tar.bz2".

Save that to a directory somewhere under your home.  Extract it.  cd into it.
Now verify that you do NOT have gutenprint already installed.  Make sure you have the dependencies installed such as cups, gtk2, foomatic-db-engine, ghostscript...

now run (as a normal user):

  ./configure --prefix=/usr \
    --sbindir=/usr/bin \
    --enable-samples \
    --enable-cups-ppds \
    --enable-cups-ppds-at-top-level \
    --disable-translated-cups-ppds \
    --disable-globalized-cups-ppds \
    --disable-static \
    --disable-static-genppd

then run 'make'

then (as root) run 'make install'

then:

sudo ldconfig
sudo cups-genppdupdate

and finally restart cups

systemctl restart cups.service

You should now be able to add your MG2520 from the CUPS web interface at http://localhost:631

See the Wiki for CUPS for help from here. https://wiki.archlinux.org/index.php/Cups

I haven't tried getting the scan function working yet.

Last edited by davidm (2014-04-16 03:48:11)

Offline

#2 2014-04-16 14:31:37

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Canon Pixma MG2520 multi-function printer

2. Check the AUR: https://aur.archlinux.org/packages/gutenprint-cvs/   Is it a build later than september 2013?  If so you may want to use that instead of the below.  (As I write this it's still on 20130611-1)

3. Realize this isn't the proper Arch way.  The right way would be to fix the PKGBUILD above to grab the new source.  But I don't have the time and expertise at the moment.  Maybe you do?

While the PKGBUILD for gutenprint-cvs needs some attention to be adjusted to the pacman 4.1+ VCS improvements, it should work.

VCS packages (git, svn, bzr, cvs, hg to name a few) always download the latest sourcecode and build that version.
VCS PKGBUILDs are normally only updated when changes in the sourcecode require changes in the prepare() / build() / package() functions.

Last edited by Lone_Wolf (2014-04-16 14:32:35)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2014-04-16 15:01:36

davidm
Member
Registered: 2009-04-25
Posts: 371

Re: Canon Pixma MG2520 multi-function printer

Lone_Wolf wrote:

2. Check the AUR: https://aur.archlinux.org/packages/gutenprint-cvs/   Is it a build later than september 2013?  If so you may want to use that instead of the below.  (As I write this it's still on 20130611-1)

3. Realize this isn't the proper Arch way.  The right way would be to fix the PKGBUILD above to grab the new source.  But I don't have the time and expertise at the moment.  Maybe you do?

While the PKGBUILD for gutenprint-cvs needs some attention to be adjusted to the pacman 4.1+ VCS improvements, it should work.

VCS packages (git, svn, bzr, cvs, hg to name a few) always download the latest sourcecode and build that version.
VCS PKGBUILDs are normally only updated when changes in the sourcecode require changes in the prepare() / build() / package() functions.

Thanks, I didn't know that.  I thought the checkout date configured into the PKGBUILD would be the date which it would checkout from the source and that it would also fail the hash check if it was expecting certain version.  So when I saw the old date I had figured it would not work.

I guess I really need to learn more about the build system and cvs. smile  To be fair to me in the past I'm pretty sure I used a cvs or git AUR package years ago and it ended up grabbing an old version of the source where I had to manually change it in the PKGBUILD to get the latest one.  I think that is why I thought that.

Last edited by davidm (2014-04-16 15:04:46)

Offline

Board footer

Powered by FluxBB