Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Apr 2007 08:08:30 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        =?ISO-8859-2?Q?Ivan_Zenzerovi=E6?= <zenzof1@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Printer issue
Message-ID:  <20070401075615.D29469@wonkity.com>
In-Reply-To: <640eadd40704010333n2e89a4bcy5262954bd2459b46@mail.gmail.com>
References:  <640eadd40703311522y43375f75v430714edba0df51b@mail.gmail.com> <20070331165257.X25626@wonkity.com> <640eadd40703311611i286c517x3de33bd38290bcd6@mail.gmail.com> <640eadd40703311651y7d2b77bax173f6c10e5d7056f@mail.gmail.com> <20070331191537.D26747@wonkity.com> <640eadd40704010333n2e89a4bcy5262954bd2459b46@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--===============0787561354==
Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-2; FORMAT=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-ID: <20070401075615.X29469@wonkity.com>
Content-Disposition: INLINE

On Sun, 1 Apr 2007, Ivan Zenzerovi=E6 wrote:

> On 4/1/07, Warren Block <wblock@wonkity.com> wrote:
>>
>> lp:\
>>         :lp=3D/dev/lpt0:\
>>         :sh:\
>>         :sd=3D/var/spool/zenzo:\
>>         :if=3D/usr/local/libexec/if-simple:
>>
>> This requires that /usr/local/libexec/if-simple is in place and
>> executable, too.
>>
>> Now you should be able to print with lpr.  However, your printer still
>> doesn't know that linefeed also means carriage return.  So we'll include
>> carriage returns with a test print:
>>
>> lptest 66 79 | perl -ne 's/\n/\r\n/; print' | lpr
>>
>> This should print one page.  If it works, you're almost there.
>
> I configured it as you said.

Did the test work?

> But, there is another problem, the printer always prints the same=20
> trash, and I can't stop it.

There may still be a previous print job in the queue.  You can remove=20
all print jobs (if you're logged in as root) by running

   lprm -Plp -

> When I sent him a pdf file it started printing trash and after a lot=20
> of restarts and stops and reboots it always prints ther same without=20
> stop.

The LJ6L can't directly understand a PDF, and would print binary=20
garbage.  So it's doing what it can.

If the test print worked, the next step would be to install ghostscript=20
(/usr/ports/print/ghostscript-gpl) and update the printcap file to use=20
the ifhp filter as shown in "Simulating PostScript on Non PostScript=20
Printers" section of the Handbook.

But that won't work unless the basic printer setup is functional.

-Warren Block * Rapid City, South Dakota USA
--===============0787561354==--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070401075615.D29469>