Brother 6490CW

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Brother 6490CW

Postby asy1410 » Fri Apr 20, 2012 20:31

Hi there,

Sabayon is working fantastic on my Dell XPS 15z. So thanks a lot for your work. The Anaconda installer was in the beginning not recognized by my Laptop. So I have to install Linux Mint first completely. Afterwords Sabayon was recognized perfect (Just a hint :-).

In the moment I only have two problems:

1. My Printer Brother MFC 6490CW. How to install via wlan, lpr, scan and fax?? Brother offers only rpm or deb download :roll:
2. How to play music over my airport express card. I use bunshee and Installed is Pulse audio by default an I don't have any Idea how to play music via wlan?? My wlan is working perfect.

I'm using the system professionly and I'm coming from Mac Lion and I used Ubuntu since a few years beside, changed to Mint which is really good and I'm now at Sabayon. It's fantastic and I think to change completely. It's (for me) the best workable solution and I hope to get my last two problems solved.

Thks in advance

Arturo
asy1410
Baby Hen
 
Posts: 17
Joined: Sun Apr 15, 2012 21:28

Re: Brother 6490CW

Postby Fitzcarraldo » Fri Apr 20, 2012 21:03

No idea about using Apple's AirPort Express with Sabayon Linux; someone else will have to advise you on that.

Unfortunately support for Brother printers in Gentoo/Sabayon Linux is not as good as for distributions that use .rpm or .deb packages. You might be able to get the printer working with a little hacking: see the 'how to' in blue text in the post Re: Can I install .rpm or .deb drivers on Sabayon? which covers the Brother DCP-7065DN, so you would need to do some investigation and some editing.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7335
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Brother 6490CW

Postby Fitzcarraldo » Fri Sep 07, 2012 10:17

Well, I don't have your printer but you may be able to install the MFC-6490CW driver by using the Portage package manager and a local overlay. I have put together a couple of Portage ebuilds for you, shown below. They may work or they may need some modification. I can't tell if they will work, as I don't want to install the Brother MFC-6490CW driver, so you'll need to follow the procedure given below and paste here any error messages.

N.B. If you are a Sabayon Linux user who has never used Portage, see NOTE 1 further on before proceeding with the steps below.

The following instructions will install the packages mfc6490cwcupswrapper-1.1.2 and mfc6490cwlpr-1.1.2 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/mfc6490cwlpr-1.1.2.ebuild

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

EAPI=3

inherit rpm

DESCRIPTION="Brother MFC-6940CW LPR driver"
HOMEPAGE="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-6490CW"
SRC_URI="mfc6490cwlpr-1.1.2-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://www.brother.com/pub/bsc/linux/dlf/mfc6490cwlpr-1.1.2-2.i386.rpm&lang=English_lpr"
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/mfc6490cwcupswrapper-1.1.2.ebuild

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

EAPI=3

inherit rpm

DESCRIPTION="Brother MFC-6940CW CUPS wrapper"
HOMEPAGE="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-6490CW"
SRC_URI="mfc6490cwcupswrapper-1.1.2-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://www.brother.com/pub/bsc/linux/dlf/mfc6490cwcupswrapper-1.1.2-2.i386.rpm&lang=English_gpl"

DEPEND="
   app-text/a2ps
   net-print/mfc6490cwlpr
"
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/brlpdwrappermfc6940cw
   /usr/libexec/cups/filter/brlpdwrappermfc6940cw"
   echo
}

3. Download mfc6490cwcupswrapper-1.1.2-2.i386.rpm and mfc6490cwlpr-1.1.2-2.i386.rpm from the Brother download site to the directory /home/fitzcarraldo/Downloads/.

4. Enter the following commands as root user (notice the dots at the end of the two lines ending in "ebuild ."):

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

N.B. If you're a user of the Entropy package manager, you'll need to prefix the emerge command as follows:

Code: Select all
FEATURES="-collision-detect -protect-owned" emerge -1v mfc6490cwcupswrapper mfc6940cwlpr

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: Select all
emerge -1v sys-apps/file

N.B. Even though the script /usr/local/Brother/Printer/mfc6940cw/cupswrapper/mfc6490cwcupswrapper-1.1.2 installed from the RPM package is not correct for Gentoo/Sabayon 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: Select all
/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/mfc6940cw/cupswrapper/mfc6490cwcupswrapper-1.1.2 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 mfc6490cwcupswrapper-1.1.2 script:

Code: Select all
cd /usr/local/Brother/Printer/mfc6940cw/cupswrapper
./mfc6490cwcupswrapper-1.1.2

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, users of Sabayon Linux also need to set up their installation to use Portage for the first time if they have not done so already:

Code: Select all
equo install git # Sabayon overlays use Git.
emerge --sync # Download ebuilds from Gentoo ebuild repositories.
layman -S # Get list of 3rd party overlays,
layman -d sabayon # In case old Sabayon overlay was already added. Ignore error message, if any.
layman -d sabayon-distro # In case 2nd new split Sabayon overlay was already added. Ignore error message, if any.
layman -a sabayon # Add 1st new split Sabayon overlay.
layman -a  sabayon-distro # Add 2nd new split Sabayon overlay.
layman -S # Make sure all overlays are synced.

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

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

(Delete the line PORTDIR_OVERLAY="/usr/local/portage/" if already in the file.)

Give your Portage local overlay a name:

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


--------------------------------------------------------
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7335
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 6 guests