You are not logged in.
I just got this DCP-7040 and installed by modifying the DCP-7030 PKGBUILD on aur. CUPS seem to recognize the printer alright, but the printer does not respond to any job sent to it, and cups shows all the jobs are completed.
CUPS is giving the error in its log:
Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supportedWhat does it mean?
So I blocked usblp, set up the udev rule according to http://wiki.archlinux.org/index.php/Cup … CUPS_1.4.x. The device is now 0664 owned by root:lp. The scanning function of it is setup working fine. The printer works normal under windows.
Anyone got luck on setting up DCP-7040?
PKGBUILD is here, where the ppd file and cupswrapper are ripped from its script at $pkgdir/usr/local/Brother/cupswrapper/cupswrapperDCP7040-2.0.2
pkgname=brother-dcp7040
pkgver=2.0.2
pkgrel=1
pkgdesc="brother cupd and lpd driver for DCP-7040"
arch=('i686' 'x86_64')
url="http://solutions.brother.com/linux/en_us/index.html"
license=('custom')
if [ "$(uname -m)" = "x86_64" ]
then
depends=('lib32-glibc' 'psutils')
else
depends=('psutils')
fi
source=(
http://www.brother.com/pub/bsc/linux/dlf/cupswrapperDCP7040-$pkgver-$pkgrel.i386.deb
http://www.brother.com/pub/bsc/linux/dlf/brdcp7040lpr-$pkgver-$pkgrel.i386.deb
brlpdwrapperDCP7040
DCP7040.ppd
)
md5sums=('b1f58e84be074df2203b7932e5b987d3'
'ed50548260b23d4a61c4341fd72cda9a'
'4d737771e44f599f52a15b0a822a90df'
'5e26f4811bac78169f21516b4b88f415')
build()
{
mkdir -p $startdir/src/unpack || return 1
for i in $startdir/src/*.deb
do
cd $startdir/src/unpack
ar -x $i || return 1
cd $startdir/pkg
bsdtar xf $startdir/src/unpack/data.tar.gz || return 1
done
cat <<END >>$startdir/pkg/usr/local/Brother/inf/brDCP7040func || return 1
[psconvert2]
pstops=/usr/bin/pstops
END
cd $startdir/src
install -d -m755 $startdir/pkg/usr/lib/cups/filter || return 1
install -d -m755 $startdir/pkg/usr/share/cups/model || return 1
install -D -m755 brlpdwrapperDCP7040 $startdir/pkg/usr/lib/cups/filter || return 1
install -D -m644 DCP7040.ppd $startdir/pkg/usr/share/cups/model || return 1
if [ "$(uname -m)" = "x86_64" ];then
mkdir $pkgdir/usr/lib32
ln -s $pkgdir/usr/lib/libbrcomplpr2.so $pkgdir/usr/lib32/libbrcomplpr2.so
fi
}-- edit --
I am running x64 if that is the problem.
Last edited by N-Acc (2010-10-10 19:06:43)
Offline
Try adding "acl" to the options section of your /etc/fstab lines for your mounted partitions, e.g.:
/dev/sda1 / ext4 defaults,commit=60,nodiratime,noatime,acl 0 1
Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.
Offline
Try adding "acl" to the options section of your /etc/fstab lines for your mounted partitions, e.g.:
/dev/sda1 / ext4 defaults,commit=60,nodiratime,noatime,acl 0 1
Thanks lagagnon. I tried it, now cups don't complain about acl any more, however the printing problem remains, so it seems somewhere else is going wrong ...
The complete log from cups is at http://pastebin.com/DNti7yXn ... hopefully something interesting is here..
Offline
I tried it, now cups don't complain about acl any more, however the printing problem remains, so it seems somewhere else is going wrong ...
Once everything installed I noticed a few further problems and finally got things working (I'm running 64-bit Arch), maybe they will help you.
One other caveat: my DCP-7040 is connected to a remote machine and in my CUPS installation I'm connecting to it via IPP, not locally through USB.
So there may be other issues that I haven't run into because of this.
make sure /usr/lib32/libbrcomplpr2.so is linked correctly: mine was linked to where I ran makepkg and not to /usr/lib/libbrcomplpr2.so (which I now corrected)
go through every binary in /usr/local/Brother/[inf|lpd] and make sure that running "ldd" on it resolves every library correctly, and that the same is true for each library successfully found (that's how I found the above problem)
go through every shell script in /usr/local/Brother/[inf|lpd] and make sure that all internal programs/paths are correct. I found one occurence of /usr/sbin/pstops instead of /usr/bin/pstops, and several references to "a2ps" which was not installed - I have since installed it separately
Once I did these things I was finally able to get a test page printed.
I believe they were quietly failing, because CUPS kept showing successful jobs even though nothing ever made it to the printer.
Offline