public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Daniel Frey <djqfrey@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] printing problems
Date: Wed, 11 Nov 2015 08:20:02 -0800	[thread overview]
Message-ID: <56436AB2.6020402@gmail.com> (raw)
In-Reply-To: <20151110231216.GB4622@asp.fritz.box>

[-- Attachment #1: Type: text/plain, Size: 1400 bytes --]

On 11/10/2015 03:12 PM, Frank Steinmetzger wrote:
> I used to use foo2zjs happily many a year ago. But then it vanished from
> portage and I never got it working again.

?? Wow, I didn't even know that until just now. I still have it
installed via an ebuild, I'm surprised portage didn't through any
warnings about not being able to update.

I've attached the foo2zjs ebuild that I still have in my portage tree,
in case you want to use it or try to get it working again.

> A few days ago I couldn’t get my printer to print more than one page in a
> go. It just stops after the first page. Luckily, I have a virtual Ubuntu
> which I originally set up just out of curiosity, but now acts as my printing
> client, because it just works™.

I just had this this morning! It was driving me nuts because I am
supposed to sign a document and yep, the page that needs the signature
is on page 2! After messing around for about a half an hour, I
discovered some of my CUPS default printer settings disappeared! My
paper size and type were set to A4/envelope. I reset them and it prints
properly. I wonder what changed them?

> PS.: The printer is from 2004, and only now the toner, which is the one I
> bought with the printer – is getting weaker.

I bought mine in late 2012/early 2013. I just checked and the black is
at 60%, all the colours are at 80%. Haven't had to change a cartridge yet.

Dan



[-- Attachment #2: foo2zjs-99999999.ebuild --]
[-- Type: text/plain, Size: 1700 bytes --]

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=4

inherit eutils

DESCRIPTION="Support for printing to ZjStream-based printers"
HOMEPAGE="http://foo2zjs.rkkda.com/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="test"

RESTRICT="bindist"

RDEPEND="net-print/cups
	net-print/foomatic-db-engine
	|| ( >=net-print/cups-filters-1.0.43-r1[foomatic] net-print/foomatic-filters )
	virtual/udev"
DEPEND="${RDEPEND}
	app-arch/unzip
	app-editors/vim
	net-misc/wget
	sys-apps/ed
	sys-devel/bc
	test? ( sys-process/time )"

S="${WORKDIR}/${PN}"

src_unpack() {
	einfo "Fetching ${PN} tarball"
	wget "http://foo2zjs.rkkda.com/${PN}.tar.gz"
	tar zxf "${WORKDIR}/${PN}.tar.gz"

	epatch "${FILESDIR}/${PN}-udev.patch"
	epatch "${FILESDIR}/${PN}-usbbackend.patch"

	cd "${S}"

	einfo "Fetching additional files (firmware, etc)"
	emake getweb

	# Display wget output, downloading takes some time.
	sed -e '/^WGETOPTS/s/-q//g' -i getweb

	./getweb all
}

src_prepare() {
	# Prevent an access violation.
	sed -e "s~/etc~${D}/etc~g" -i Makefile
	sed -e "s~/etc~${D}/etc~g" -i hplj1000

	# Prevent an access violation, do not create symlinks on live file system
	# during installation.
	sed -e 's/ install-filter / /g' -i Makefile

	# Prevent an access violation, do not remove files from live filesystem
	# during make install
	sed -e '/rm .*LIBUDEVDIR)\//d' -i Makefile
	sed -e '/rm .*lib\/udev\/rules.d\//d' -i hplj1000
}

src_compile() {
	MAKEOPTS=-j1 default
}

src_install() {
	# ppd files are installed automagically. We have to create a directory
	# for them.
	mkdir -p "${D}/usr/share/ppd"

	emake DESTDIR="${D}" -j1 install install-hotplug
}

  reply	other threads:[~2015-11-11 16:20 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-02  0:08 [gentoo-user] printing problems Philip Webb
2015-11-02  2:46 ` Daniel Frey
2015-11-02  6:52   ` Mick
2015-11-03  0:46   ` Philip Webb
2015-11-03  1:01     ` Daniel Frey
2015-11-03 18:33       ` Philip Webb
2015-11-03 22:49         ` Mick
2015-11-03 23:20           ` Philip Webb
2015-11-04  2:19             ` Philip Webb
2015-11-04  4:42         ` Dale
2015-11-05  3:34         ` [gentoo-user] printing problems : one solved Philip Webb
2015-11-05  6:21         ` [gentoo-user] printing problems : hiccups solve them Philip Webb
2015-11-05  6:38           ` Mick
2015-11-10 23:12       ` [gentoo-user] printing problems Frank Steinmetzger
2015-11-11 16:20         ` Daniel Frey [this message]
2015-11-11 20:36           ` Marc Joliet
2015-11-03 16:05 ` Dale
2015-11-03 19:56   ` Alan McKinnon
2015-11-04  4:38     ` Dale
2015-11-04  6:30       ` J. Roeleveld
2015-11-04  8:19         ` Dale
2015-11-04  8:44           ` J. Roeleveld
2015-11-04  9:55             ` Dale
2015-11-04 12:31       ` Peter Humphrey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56436AB2.6020402@gmail.com \
    --to=djqfrey@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox