Printing problem

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Printing problem

Chris Bennett
I don't print from my laptop often, but all was fine until recently.
I am at latest snapshot:

OpenBSD 5.5-beta (GENERIC) #247: Fri Feb  7 12:04:52 MST 2014
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
    cpu0: Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz ("GenuineIntel"
    686-class) 2 GHz
    cpu0:
    FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,CNXT-ID,xTPR,PERF
    real mem  = 536252416 (511MB)
    avail mem = 515588096 (491MB)
    mainbus0 at root
    bios0 at mainbus0: AT/286+ BIOS, date 01/12/04, BIOS32 rev. 0 @
    0xffe90, SMBIOS rev. 2.3 @ 0xf76a0 (61 entries)
    bios0: vendor Dell Computer Corporation version "A10" date
    01/12/2004
    bios0: Dell Computer Corporation Latitude C640

When trying to print either through USB or network connection, I get
this error:

Your printer job (estimate_details_for_customer)
had the following errors and may not have printed:
No printer definition (option "-P <name>") specified!

I did not have any problems previously. I haven't made any changes
either.
I am using commands of
lpr -Plp estimate_details_for_customer
or
lpr -Paps1 estimate_details_for_customer

Any advice?

Chris Bennett

Reply | Threaded
Open this post in threaded view
|

Re: Printing problem

Jeremy Evans
On Wed, Feb 19, 2014 at 11:20 AM, Chris Bennett <
[hidden email]> wrote:

> I don't print from my laptop often, but all was fine until recently.
> I am at latest snapshot:
>
> OpenBSD 5.5-beta (GENERIC) #247: Fri Feb  7 12:04:52 MST 2014
>     [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
>     cpu0: Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz ("GenuineIntel"
>     686-class) 2 GHz
>     cpu0:
>
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,CNXT-ID,xTPR,PERF
>     real mem  = 536252416 (511MB)
>     avail mem = 515588096 (491MB)
>     mainbus0 at root
>     bios0 at mainbus0: AT/286+ BIOS, date 01/12/04, BIOS32 rev. 0 @
>     0xffe90, SMBIOS rev. 2.3 @ 0xf76a0 (61 entries)
>     bios0: vendor Dell Computer Corporation version "A10" date
>     01/12/2004
>     bios0: Dell Computer Corporation Latitude C640
>
> When trying to print either through USB or network connection, I get
> this error:
>
> Your printer job (estimate_details_for_customer)
> had the following errors and may not have printed:
> No printer definition (option "-P <name>") specified!
>
> I did not have any problems previously. I haven't made any changes
> either.
> I am using commands of
> lpr -Plp estimate_details_for_customer
> or
> lpr -Paps1 estimate_details_for_customer
>
> Any advice?
>

Known issue with that snapshot.  Already fixed in -current.

Reply | Threaded
Open this post in threaded view
|

Re: Printing problem

Stefan Sperling-8
On Wed, Feb 19, 2014 at 12:32:36PM -0800, Jeremy Evans wrote:

> On Wed, Feb 19, 2014 at 11:20 AM, Chris Bennett <
> [hidden email]> wrote:
>
> > I don't print from my laptop often, but all was fine until recently.
> > I am at latest snapshot:
> >
> > OpenBSD 5.5-beta (GENERIC) #247: Fri Feb  7 12:04:52 MST 2014
> >     [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
> >     cpu0: Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz ("GenuineIntel"
> >     686-class) 2 GHz
> >     cpu0:
> >
> > FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,CNXT-ID,xTPR,PERF
> >     real mem  = 536252416 (511MB)
> >     avail mem = 515588096 (491MB)
> >     mainbus0 at root
> >     bios0 at mainbus0: AT/286+ BIOS, date 01/12/04, BIOS32 rev. 0 @
> >     0xffe90, SMBIOS rev. 2.3 @ 0xf76a0 (61 entries)
> >     bios0: vendor Dell Computer Corporation version "A10" date
> >     01/12/2004
> >     bios0: Dell Computer Corporation Latitude C640
> >
> > When trying to print either through USB or network connection, I get
> > this error:
> >
> > Your printer job (estimate_details_for_customer)
> > had the following errors and may not have printed:
> > No printer definition (option "-P <name>") specified!
> >
> > I did not have any problems previously. I haven't made any changes
> > either.
> > I am using commands of
> > lpr -Plp estimate_details_for_customer
> > or
> > lpr -Paps1 estimate_details_for_customer
> >
> > Any advice?
> >
>
> Known issue with that snapshot.  Already fixed in -current.

I rather think this is the foomatic-filters -> cups-filters update
that breaks existing filter scripts for lpd setups, because cups-filters
removes lpd compat. There was no current.html warning for this update,
unfortunately. But the fix is simple. A wrapper script is now needed
to use foomatic with lpd. Check the cups-filters README file
in /usr/local/share/doc/pkg-readmes.

Reply | Threaded
Open this post in threaded view
|

Re: Printing problem

Chris Bennett
On Wed, Feb 19, 2014 at 10:00:03PM +0100, Stefan Sperling wrote:

> On Wed, Feb 19, 2014 at 12:32:36PM -0800, Jeremy Evans wrote:
> > On Wed, Feb 19, 2014 at 11:20 AM, Chris Bennett <
> > [hidden email]> wrote:
> >
> > > I don't print from my laptop often, but all was fine until recently.
> > > I am at latest snapshot:
> > >
> > > OpenBSD 5.5-beta (GENERIC) #247: Fri Feb  7 12:04:52 MST 2014
> > >     [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
> > >     cpu0: Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz ("GenuineIntel"
> > >     686-class) 2 GHz
> > >     cpu0:
> > >
> > > FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,CNXT-ID,xTPR,PERF
> > >     real mem  = 536252416 (511MB)
> > >     avail mem = 515588096 (491MB)
> > >     mainbus0 at root
> > >     bios0 at mainbus0: AT/286+ BIOS, date 01/12/04, BIOS32 rev. 0 @
> > >     0xffe90, SMBIOS rev. 2.3 @ 0xf76a0 (61 entries)
> > >     bios0: vendor Dell Computer Corporation version "A10" date
> > >     01/12/2004
> > >     bios0: Dell Computer Corporation Latitude C640
> > >
> > > When trying to print either through USB or network connection, I get
> > > this error:
> > >
> > > Your printer job (estimate_details_for_customer)
> > > had the following errors and may not have printed:
> > > No printer definition (option "-P <name>") specified!
> > >
> > > I did not have any problems previously. I haven't made any changes
> > > either.
> > > I am using commands of
> > > lpr -Plp estimate_details_for_customer
> > > or
> > > lpr -Paps1 estimate_details_for_customer
> > >
> > > Any advice?
> > >
> >
> > Known issue with that snapshot.  Already fixed in -current.
>
> I rather think this is the foomatic-filters -> cups-filters update
> that breaks existing filter scripts for lpd setups, because cups-filters
> removes lpd compat. There was no current.html warning for this update,
> unfortunately. But the fix is simple. A wrapper script is now needed
> to use foomatic with lpd. Check the cups-filters README file
> in /usr/local/share/doc/pkg-readmes.


That readme suggests an example script:

#!/bin/sh

/usr/local/bin/a2ps -BRq --columns=1 -o - | \
        /usr/local/bin/foomatic-rip -P samsung-ml2850d

But I found that a2ps gives terrible output.
I substituted encript and got perfect results for text files and PDF's
both portrait and landscape including with images.

#!/bin/sh

/usr/local/bin/enscript -Bhq --columns=1 --pass-through -o - | \
        /usr/local/bin/foomatic-rip -P lp --ppd
        /home/chris/BCFiles/mfp1815ps.ppd

Might be best to change example script in readme?

Chris Bennett

Reply | Threaded
Open this post in threaded view
|

Re: Printing problem

Jan Stary
On Feb 19 13:20:07, [hidden email] wrote:
> I don't print from my laptop often, but all was fine until recently.
> I did not have any problems previously.
> I haven't made any changes either.
> I am using commands of
> lpr -Plp estimate_details_for_customer
> or
> lpr -Paps1 estimate_details_for_customer

On Feb 19 12:32:36, [hidden email] wrote:
> Known issue with that snapshot.  Already fixed in -current.

Indeed. Out of curiosity, what was it? I couldn't find anything under
http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/lpr/
that would break and fix this.

On Feb 19 22:00:03, [hidden email] wrote:
> I rather think this is the foomatic-filters -> cups-filters update
> that breaks existing filter scripts for lpd setups, because cups-filters
> removes lpd compat.

I doubt that; my setup only uses only uses plain lpd/lpr,
and got broken and fixed with the pre-last and last snapshot,
respectively.

Reply | Threaded
Open this post in threaded view
|

Re: Printing problem

Jeremy Evans
On Fri, Feb 21, 2014 at 3:54 AM, Jan Stary <[hidden email]> wrote:

> On Feb 19 13:20:07, [hidden email] wrote:
> > I don't print from my laptop often, but all was fine until recently.
> > I did not have any problems previously.
> > I haven't made any changes either.
> > I am using commands of
> > lpr -Plp estimate_details_for_customer
> > or
> > lpr -Paps1 estimate_details_for_customer
>
> On Feb 19 12:32:36, [hidden email] wrote:
> > Known issue with that snapshot.  Already fixed in -current.
>
> Indeed. Out of curiosity, what was it? I couldn't find anything under
> http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/lpr/
> that would break and fix this.
>

Remote printing with lpd was broken from January 20 to February 7.

usr.sbin/lpr/lpd/printjob.c (broken by r1.50, fixed by r1.52)

Thanks,
Jeremy

Reply | Threaded
Open this post in threaded view
|

Re: Printing problem

Radek
Hello,

I can print from LibreOffice without any problems, but I canNOT print from textproc/xpdf

If I print from textproc/xpdf (command: /usr/bin/lpr -P Kyocera_Mita_FS-6020) I get error:
lpr: connect: No such file or directory
jobs queued, but cannot start daemon.

It worked for me in FreeBSD, but maybe I have missed something in my new desktop.

This is a network printer.
$ lpstat -d -p
system default destination: Kyocera_Mita_FS-6020
printer Kyocera_Mita_FS-6020 is idle.  enabled since Wed Jan 23 08:55:43 2019

$ cat /etc/printcap
Kyocera_Mita_FS-6020|:rm=desk.pk:rp=Kyocera_Mita_FS-6020:

$ cat .cups/lpoptions
Default Kyocera_Mita_FS-6020

$ rcctl check cupsd
cupsd(ok)

OpenBSD 6.4 (GENERIC.MP) #0: Thu Jan 10 13:55:24 CET 2019
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP


Thanks for help.


On Fri, 21 Feb 2014 07:47:28 -0800
Jeremy Evans <[hidden email]> wrote:

> On Fri, Feb 21, 2014 at 3:54 AM, Jan Stary <[hidden email]> wrote:
>
> > On Feb 19 13:20:07, [hidden email] wrote:
> > > I don't print from my laptop often, but all was fine until recently.
> > > I did not have any problems previously.
> > > I haven't made any changes either.
> > > I am using commands of
> > > lpr -Plp estimate_details_for_customer
> > > or
> > > lpr -Paps1 estimate_details_for_customer
> >
> > On Feb 19 12:32:36, [hidden email] wrote:
> > > Known issue with that snapshot.  Already fixed in -current.
> >
> > Indeed. Out of curiosity, what was it? I couldn't find anything under
> > http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/lpr/
> > that would break and fix this.
> >
>
> Remote printing with lpd was broken from January 20 to February 7.
>
> usr.sbin/lpr/lpd/printjob.c (broken by r1.50, fixed by r1.52)
>
> Thanks,
> Jeremy
>


--
radek

Reply | Threaded
Open this post in threaded view
|

Re: Printing problem

Stuart Henderson
On 2019-01-23, Radek <[hidden email]> wrote:
> Hello,
>
> I can print from LibreOffice without any problems, but I canNOT print from textproc/xpdf
>
> If I print from textproc/xpdf (command: /usr/bin/lpr -P Kyocera_Mita_FS-6020) I get error:
> lpr: connect: No such file or directory
> jobs queued, but cannot start daemon.

/usr/bin/lpr is lpr from the base OS. Since you are using CUPS you need
to use /usr/local/bin/lpr instead, you can either set this in xpdf (e.g.
/etc/xpdfrc), or you could adjust your PATH so that /usr/local/bin comes
before /usr/bin.
>

Reply | Threaded
Open this post in threaded view
|

Re: Printing problem

Radek
Thank you Stuart.
If I use /usr/local/bin/lpr printing works as expected.

$ grep Kyocera /etc/xpdfrc
psFile                  "|/usr/local/bin/lpr -P Kyocera_Mita_FS-6020"



On Wed, 23 Jan 2019 14:33:15 -0000 (UTC)
Stuart Henderson <[hidden email]> wrote:

> On 2019-01-23, Radek <[hidden email]> wrote:
> > Hello,
> >
> > I can print from LibreOffice without any problems, but I canNOT print from textproc/xpdf
> >
> > If I print from textproc/xpdf (command: /usr/bin/lpr -P Kyocera_Mita_FS-6020) I get error:
> > lpr: connect: No such file or directory
> > jobs queued, but cannot start daemon.
>
> /usr/bin/lpr is lpr from the base OS. Since you are using CUPS you need
> to use /usr/local/bin/lpr instead, you can either set this in xpdf (e.g.
> /etc/xpdfrc), or you could adjust your PATH so that /usr/local/bin comes
> before /usr/bin.
> >
>


--
radek