View previous topic :: View next topic |
Author |
Message |
Joseph_sys Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 08 Jun 2004 Posts: 2716 Location: Edmonton, AB
|
Posted: Fri Oct 12, 2012 7:06 pm Post subject: Brother QL-570 installation howto |
|
|
Here are the instructions on how to install Brother cupswrapper driver for QL-570 label printer
Download two files: LPR driver and cupswrapper driver from brother web-page (location might change):
http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_esp.html#QL-570
Code: | ql570lpr-1.0.0-1.i386.rpm
ql570cupswrapper-1.0.0-1.redhat.i386.rpm |
Convert them to tar.gz Code: | rpm2targz ./ql570lpr-1.0.0-1.i386.rpm
rpm2targz ./ql570cupswrapper-1.0.0-1.redhat.i386.rpm |
Extract the files: Code: | tar zxvf ./ql570lpr-1.0.0-1.i386.tar.gz
tar zxvf ./ql570cupswrapper-1.0.0-1.redhat.i386.tar.gz |
Code: | cd /usr/local/Brother/PTouch/ql570/cupswrapper/
mv cupswrapperql570pt1 cupswrapperql570pt1.bak
rm cupswrapperql570pt1 |
(Change all occurrences of /etc/init.d/cups to /etc/init.d/cupsd) Code: | /bin/sed 's/\/etc\/init.d\/cups\ restart/\/etc\/init.d\/cupsd\ restart/g' ./cupswrapperql570pt1.bak > cupswrapperql570pt1 |
Code: | (If you're on a 64bit system, change all occurrences of "/usr/lib/" to "/usr/lib32/" )
nano -w cupswrapperql570pt1 |
install the printer: Code: | # ./cupswrapperql570pt1 -i
Ignore bellow error:
lpadmin: Bad device-uri "brusb_ql570:/dev/usb". |
(for amd64 link from .../lib32/...) Code: | ln -s /usr/lib32/cups/filter/brlpdwrapperql570 /usr/libexec/cups/filter/brlpdwrapperql570
/etc/init.d/cupsd restart |
Go to cups QL-570 http://localhost:631/printers/
click on administration --> modify printer and install brother printer, you should have a selection: usb://Brother/QL-570 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
oglueck n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 May 2004 Posts: 14
|
Posted: Fri Sep 25, 2020 1:06 pm Post subject: ebuild |
|
|
Code: |
DESCRIPTION="CUPS driver for Brother QL-570"
HOMEPAGE="https://www.brother.ch/fr-ch/support/ql-820nwb/downloads"
SRC_URI="ql570cupswrapper-${PV}-0.i386.rpm ql570lpr-${PV}-0.i386.rpm"
LPV="${PV}-0"
LICENSE=""
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RESTRICT="fetch"
DEPEND="net-print/cups"
RDEPEND="${DEPEND}"
BDEPEND="app-arch/rpm2targz"
pkg_nofetch() {
einfo "Please download"
einfo " - ql570cupswrapper-${LPV}.i386.rpm"
einfo " - ql570lpr-${LPV}.i386.rpm"
einfo "from ${HOMEPAGE} and place them in your DISTDIR directory."
}
src_unpack() {
mkdir "${P}"
cd "${P}"
for f in ${A}; do
rpmunpack "../../distdir/${f}"
done
}
src_compile() {
# modify install script to only dump out the embedded files
INST=ql570cupswrapper-${LPV}.i386/opt/brother/PTouch/ql570/cupswrapper/cupswrapperql570pt1
sed -i -e '/^tmp_filter=/,/^cat <<ENDOFPPDFILE/ccat <<ENDOFPPDFILE >brother_ql570_printer_en.ppd' -e '/^brotherlpdwrapper=/,/^cat <<!ENDOFWFILTER!/ccat <<!ENDOFWFILTER! >brother_lpdwrapper_ql570' -e '/^chmod a+x/,$ d' "${INST}"
# run the modified installer
"${INST}"
chmod 755 brother_lpdwrapper_ql570
rm ql570cupswrapper-${LPV}.i386/opt/brother/PTouch/ql570/cupswrapper/cupswrapperql570pt1
}
src_install() {
insinto /usr/share/cups/model/Brother/
doins brother_ql570_printer_en.ppd
exeinto /usr/libexec/cups/filter/
doexe brother_lpdwrapper_ql570
dodir /opt/brother/PTouch/ql570/inf
dodir /opt/brother/PTouch/ql570/lpd
cp -R "${S}/ql570lpr-${LPV}.i386/opt" "${D}/" || die "LPS install failed"
dodir /opt/brother/PTouch/ql570/cupswrapper
cp -R "${S}/ql570cupswrapper-${LPV}.i386/opt" "${D}/" || die "cupswrapper install failed"
dobin ql570lpr-${LPV}.i386/usr/bin/*
}
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|