Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Which Printer/Scanner?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 990

PostPosted: Sun Feb 16, 2014 8:26 pm    Post subject: Which Printer/Scanner? Reply with quote

I've always had good luck getting Brother laser printers to work so I bought a Brother DCP-7065DN printer/scanner. Big mistake. The closest matching PPD I could find was the DCP-7045N and all it will do is print blank pages. Should I have better luck if I connect via ethernet instead of USB? If not then I'll return it. I'm not willing to go through some proprietary installation procedure. I just want to point cups to a PPD.

Is there a brand or model of printer/scanner that is known to work well on Gentoo?
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1704
Location: United Kingdom

PostPosted: Sun Feb 16, 2014 8:50 pm    Post subject: Reply with quote

I helped someone install the driver for a Brother DCP-7065DN a couple of years ago, using a local overlay. I know you wrote that you don't want to go through an installation procedure, but, just in case you change your mind, the procedure I used is listed below.

The following instructions will install the packages cupswrapperDCP7065DN-2.0.4 and dcp7065dnlpr-2.1.0 from a Portage local overlay on your machine. In the text below, replace "fitzcarraldo" with your user name.

1. Save the following as /home/fitzcarraldo/dcp7065dnlpr-2.1.0.ebuild

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

EAPI=3

inherit rpm

DESCRIPTION="Brother DCP-7065DN LPR driver"
HOMEPAGE="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#DCP-7065DN"
SRC_URI="dcp7065dnlpr-2.1.0-1.i386.rpm"

LICENSE="GPL"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
RESTRICT="fetch strip"
DOWNLOAD_URL="http://www.brother.com/cgi-bin/agreement/agreement.cgi?dlfile=http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/cups_wrapper/dcp7065dnlpr-2.1.0-1.i386.rpm&lang=English_gpl"

DEPEND=""
RDEPEND="${DEPEND}"

pkg_nofetch() {
   einfo "Please download ${A} from ${DOWNLOAD_URL}."
   einfo "Select 'I Accept' and move the file to ${DISTDIR}."
}

src_unpack() {
   rpm_unpack || die "Error unpacking ${A}."
}

src_install() {
   cp -r $WORKDIR $D
   mv $D/work/* $D
   rm -r $D/work/
}


2. Save the following as /home/fitzcarraldo/cupswrapperDCP7065DN-2.0.4.ebuild

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

EAPI=3

inherit rpm

DESCRIPTION="Brother DCP-7065DN CUPS wrapper"
HOMEPAGE="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#DCP-7065DN"
SRC_URI="cupswrapperDCP7065DN-2.0.4-2.i386.rpm"

LICENSE="GPL"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
RESTRICT="fetch strip"
DOWNLOAD_URL="http://www.brother.com/cgi-bin/agreement/agreement.cgi?dlfile=http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/cups_wrapper/cupswrapperDCP7065DN-2.0.4-2.i386.rpm&lang=English_gpl"

DEPEND="
   app-text/a2ps
   net-print/dcp7065dnlpr
"
RDEPEND="${DEPEND}"

pkg_nofetch() {
   einfo "Please download ${A} from ${DOWNLOAD_URL}."
   einfo "Select 'I Accept' and move the file to ${DISTDIR}."
}

src_unpack() {
   rpm_unpack || die "Error unpacking ${A}."
}

src_install() {
   cp -r $WORKDIR $D
   mv $D/work/* $D
   rm -r $D/work/
}

pkg_postinst() {
   echo
   einfo "If you can't print, create the following symlink:"
   einfo "ln -s /usr/lib/cups/filter/brlpdwrapperDCP7065DN
   /usr/libexec/cups/filter/brlpdwrapperDCP7065DN"
   echo
}


3. Download cupswrapperDCP7065DN-2.0.4-2.i386.rpm and dcp7065dnlpr-2.1.0-1.i386.rpm from the Brother download site to the directory /home/fitzcarraldo/Downloads/.

4. Enter the following commands as root user:

Code:
cp /home/fitzcarraldo/Downloads/cupswrapperDCP7065DN-2.0.4-2.i386.rpm /usr/portage/distfiles/
cp /home/fitzcarraldo/Downloads/dcp7065dnlpr-2.1.0-1.i386.rpm /usr/portage/distfiles/
mkdir -p /usr/local/portage/net-print/dcp7065dnlpr
mkdir -p /usr/local/portage/net-print/cupswrapperDCP7065DN
cd /usr/local/portage/net-print/dcp7065dnlpr
cp /home/fitzcarraldo/Desktop/dcp7065dnlpr-2.1.0.ebuild .
ebuild --force dcp7065dnlpr-2.1.0.ebuild manifest
cd /usr/local/portage/net-print/cupswrapperDCP7065DN
cp /home/fitzcarraldo/Desktop/cupswrapperDCP7065DN-2.0.4.ebuild .
ebuild --force cupswrapperDCP7065DN-2.0.4.ebuild manifest
emerge -1v cupswrapperDCP7065DN dcp7065dnlpr
etc-update # Just in case there are some config files to update. Enter -3 then answer yes to all.

N.B. If the merge fails because of collision protection, try again, prefixing the emerge command as follows:

Code:
FEATURES="-collision-detect -protect-owned" emerge -1v cupswrapperDCP7065DN dcp7065dnlpr

N.B. If the above ebuild commands or the emerge command tries to re-download the RPM packages from the Brother Web site and you get an error message about the RPM package not being a tar file or being corrupt, have a look in /usr/portage/distfiles/ and delete any files containing "checksum_failure" as part of the file name. Then disconnect your machine from the network and repeat the above commands (with the exception of the mkdir commands, as the directories now already exist.)

5. If you have sys-apps/file-5.06 installed, you also need to enter the following command to install a later version, as version 5.06 stops some Brother printers from working correctly:

Code:
emerge -1v sys-apps/file

N.B. Even though the script /usr/local/Brother/Printer/DCP7065DN/cupswrapper/cupswrapperDCP7065DN-2.0.4 installed from the RPM package is not correct for Gentoo Linux, I am not certain that Steps 6 and 7 below are necessary, and I don't have a Brother printer so I can't find out. It may be that simply restarting the CUPS daemon (or, alternatively, rebooting) at this point would be sufficient. To simply restart the CUPS daemon, you would use the command:

Code:
/etc/init.d/cupsd restart

Anyway, Steps 6 and 7 won't do any harm (and may be necessary). If you decide to skip Steps 6 and 7 and see if the printer can still be installed and work correctly, you must at least restart the CUPS daemon (or, alternatively, reboot) at this point.

6. Open the script file /usr/local/Brother/Printer/DCP7065DN/cupswrapper/cupswrapperDCP7065DN-2.0.4 with a text editor. If it contains "/etc/init.d/cups" change that to "/etc/init.d/cupsd" (the RPM package is for a different distribution, remember). Also, if it contains "/etc/rc.d/" then change that to "/etc/init.d/" (ditto). Basically, make sure that you have "/etc/init.d/" everywhere rather than "/etc/rc.d/", and that you have "/etc/init.d/cupsd" everywhere rather than "/etc/init.d/cups" or "/etc/rc.d/cups" or whatever.

7. Run the cupswrapperDCP7065DN-2.0.4 script:

Code:
cd /usr/local/Brother/Printer/DCP7065DN/cupswrapper
./cupswrapperDCP7065DN-2.0.4

8. Launch a Web browser and enter http://localhost:631/ into the Address bar in order to use the CUPS manager. Use CUPS to install the printer.

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

NOTE 1

Before doing any the above:

Edit the file /etc/make.conf and make sure it has the following lines in it at the end of the file:

Code:
PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/local/portage/"
ACCEPT_LICENSE="*"

Give your Portage local overlay a name:

Code:
mkdir /usr/local/portage/profiles
echo "local_overlay" > /usr/local/portage/profiles/repo_name

_________________
Clevo W230SS: amd64 OpenRC elogind nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 OpenRC elogind xf86-video-ati. Dual boot Win 7 Pro 64-bit.
KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 990

PostPosted: Sun Feb 16, 2014 9:02 pm    Post subject: Reply with quote

Thanks Fitzcarraldo, that must have been a labor of love. :-) I'd rather return it than set that up but I greatly appreciate you sharing that info.

Was that for an ethernet or USB connection, or both?
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Sun Feb 16, 2014 9:17 pm    Post subject: Reply with quote

since you're returning, may i suggest HP, hplip works great... out of 4 random printers tested 4 have worked. even wifi / ethernet rigs.
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1704
Location: United Kingdom

PostPosted: Sun Feb 16, 2014 9:19 pm    Post subject: Reply with quote

If I recall correctly, he had the printer connected to his PC via USB. But the printer driver should work in either case, as it just depends how you configure it in CUPS. For example, I have a WiFi-capable printer which I connect to my laptop either via USB or via WiFi, simply because I specified two separate printer entries for that printer in the CUPS manager. I added both so that I can print via USB when I am using my laptop in my home office, and wirelessly when I'm using my laptop in a different room to the printer.
_________________
Clevo W230SS: amd64 OpenRC elogind nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 OpenRC elogind xf86-video-ati. Dual boot Win 7 Pro 64-bit.
KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Clad in Sky
l33t
l33t


Joined: 04 May 2007
Posts: 852
Location: Germany

PostPosted: Mon Feb 17, 2014 7:27 am    Post subject: Reply with quote

HPs always gave me good results.
I have a Brother HL2140, too, that works well, but installing it was a bit (bit as in really not that much) more work. But Brother provided a driver for that one.
But the nearest to plug and play you'll get is probably HP.
_________________
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 990

PostPosted: Mon Feb 17, 2014 3:07 pm    Post subject: Reply with quote

A wide array of Brother lasers printers have worked great for me for years and they had me convinced I was a Brother guy. Brother MFDs are shaping up to be a completely different story. I will most likely return this thing for an HP but let me see if a networking connection is any better....
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 990

PostPosted: Mon Feb 17, 2014 6:15 pm    Post subject: Reply with quote

I couldn't get networking to work at all over IPP or LPR. This was my last Brother device. Hello HP.
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 990

PostPosted: Wed Feb 19, 2014 9:48 pm    Post subject: Reply with quote

The HP LaserJet M1217nfw MFP prints great with hplip except for a python issue:

https://forums.gentoo.org/viewtopic-t-984522.html
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 4209
Location: Dallas area

PostPosted: Wed Feb 19, 2014 10:04 pm    Post subject: Reply with quote

I had bought a canon mg8200 because it was on sale at a good price (not the cheapest, but it was a good sale price)
and it's fine as a network printer for me (linux) and my kids (windows, yeah I know *blah* LoL)

I did wind up using gutenprint instead of foomatic for the drivers though.

Whatever printer you look at getting you might check on gutenprint support as well as foomatic.

Edit to add: I do access it with cups, but I stuck with the 1.5.2 version as the newer one caused me
not to be able to print, and I didn't want to spend time debugging why. So I just downgraded.
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.1 (no-pie & modified) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
dencar
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2003
Posts: 108
Location: Noosa, Australia

PostPosted: Wed Feb 19, 2014 11:19 pm    Post subject: Reply with quote

Fitzcarraldo helped me set up my Canon MP640, too. Check the Sabayon forums.
_________________
dencar
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 990

PostPosted: Thu Feb 20, 2014 1:44 pm    Post subject: Reply with quote

I'm finding that it's Brother for workhorse laser printers, Zebra for label printers, and HP for MFDs.
Back to top
View user's profile Send private message
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 488
Location: Hawaii

PostPosted: Fri Feb 21, 2014 8:36 am    Post subject: Reply with quote

We love our HP LaserJet Pro 400. It's color, and big, but has worked without a hitch, and it's easy to network. About $400 USD here. Can't recommend it highly enough.
_________________
Asrock X470 Taichi
Ryzen 2700x
32Gb Samsung B-die (16GB dual rank x2) DDR4
Geforce GTX 1060 6GB
Samsung Evo 840 500Gb +Seagate 1TB HDD
Etc....
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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