Date: Thu, 15 Apr 1999 00:32:53 +0200 From: Johan =?iso-8859-1?Q?M=E5rtensson?= <balrog@swipnet.se> To: freebsd-questions@FreeBSD.ORG Subject: LaserJet series 2 Message-ID: <37151795.6E63B8C1@swipnet.se>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Hello, I'm trying to set up my printer with the help of "The Complete
FreeBSD", and I'm having some problems.
I've come so far that I have configured the /etc/printcap and compiled
and stored the /cdrom/book/scripts/lpfilter.c in
/usr/local/libexec/lpfilter
when I got this far I tried the lptest 20 5 | lpr command and the
staircase effect appered. I tried to fix it, firts by adding the lines
#!/bin/sh
printf "\033&k2G" && cat && printf "\f" && exit 0
exit 2
in the /usr/local/libexec/lpfilter
but then The paper just came out blank. So I tried removing the rest
(all but the above) from lpfilter, adn then I tried again, still blank
paper. So I restored it to the original but now there was no text, not
even the staircase!
Now when I try to print (I've been messing with the files for some time
now), I get this error message:
#Apr 15 00:13:25 angrenost lpd[373]: /dev/lp: No such file or directory
Apr 15 00:13:25 angrenost lpd[373]: /dev/lp: No such file or directory
And the printer doesn't print anything (of course).
I've checked the printer (font samples), and It prints nicely by itself.
So the printers ok.
I'll send along my printcap and my lpfilter so that you can have a look
at it.
[-- Attachment #2 --]
# @(#)printcap 5.3 (Berkeley) 6/30/90
# $Id: printcap,v 1.5.2.1 1998/02/07 19:17:32 ache Exp $
#
# This enables a simple local "raw" printer, hooked up to the first
# parallel port. No kind of filtering is done, so everything you
# pass to the "lpr" command will be printed unmodified.
#
# Remember, for further print queues you're going to add, you have to
# chose different spool directories (the "sd" capability below),
# otherwise you will greatly confuse lpd.
#
# For some advanced printing, have a look at the "apsfilter" package.
# It plugs into the lpd system, allowing you to print a variety of
# different file types by converting everything to PostScript(tm)
# format. If you don't have a PostScript(tm) printer, don't panic,
# but do also install the "ghostscript" package.
#
# Do also refer to section 7 (Printing) of the handbook. A local copy
# can be found under /usr/share/doc/handbook/handbook.{html,latin1}.
#
# Banner pages are now suppressed by default. Remove the :sh:
# capability to turn them back on.
#
lp|lj|local LaserJet series 2 printer:\
:sh:\
:lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
:if=/usr/local/libexec/lpfilter:
#
# Sample remote printer. The physical printer is on machine "lphost".
# NB: you cannot perform any kind of local filtering directly. If
# you need local filters (e.g. LF -> CR-LF conversion for HP printers),
# create a filter script that recursively calls lpd with another -P
# argument after filtering.
#
#remote|sample remote printer:\
# :sh:\
# :rm=lphost:sd=/var/spool/output/lphost:lf=/var/log/lpd-errs:
#
# Simple Russian printer with hardware CP866 character set, output filter
# used for KOI8-R -> CP866 conversion
#
#lp|Russian local line printer:\
# :sh:of=/usr/libexec/lpr/ru/koi2alt:\
# :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
[-- Attachment #3 --]
l \ UVSu^V~ t
u9wd9 ; t! 8 t8/u H
@8 uE Et 5d9 S6 P /usr/libexec/ld.so Couldn't open .
Failure reading ld.so
Bad magic: ld.so
Cannot map ld.so (text)
Cannot map ld.so (data)
Cannot map ld.so (bss)
ld.so failed :
UDVSj j h jo Eu?jh jjT jh jjD jh jj1 jj( j URuj wjh jj jj Uft$f} tjh jj jj EU t6 tUft
ʉ
QRj ujjuj h O E܃$ujh jj4 jj+ U t* t"UftUf uKMU t, tUft <MU t%ȁ tUftA 1QRj ujjuċUURh L $ujh jj4 jj+ } tKj j j uh juȋUUURh $ujh jj jj E d9 UE UE E u܃ ]Sj֣! U! =! uSj֣! ! =! uzjh4 jjG =! tB! R҉Åt1jhA jj ڃ; tB: u)RSjj jhD jj jj =! ~! rc e[^U=! t! uu Ð1U=! t! u@Ð UU=! u1Ð=! ! Ru@Ð! uRu@Service unavailable U=! t! @ø YXQ Qrø Error on stdin: %s, exiting Error on writing to printer: %s, exiting U! E E h h1 j /
E} }Aj jER
h9 P Ph j ) } u
1 E E E9E E1 8 u+} t%E! EEuᐐ^E1 8
uE!
E} t#E! U1
EE! U1
EEVEPh! j 9E~:j jER h9 P Ph j t US1 =1 tЃ; u] US1 u1=1 t@<1 uÅt1 Kuh ] U=! u! n ,v ,~ , , , , ,
! ! , 4 5 @ I \ 1 k 1 z | ! 1 d9 l h9 t 8
X ! l9 d __DYNAMIC _dlopen _outbuf __exit_dummy_decl _dlclose _translate _dlerror ___do_global_dtors ___DTOR_LIST__ ___CTOR_LIST__ ___do_global_ctors _syslog ___progname start _strerror _write __exit_dummy_ref _etext _inbuf _environ _atexit _openlog _read _errno _exit _main _dlsym _edata _end ___main c ( ` d ( @ !
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ԵۿǷ! ! ! 0 4 9 D M ` 1 o 1 ~ ! 1 d9 h9 8 X ! l9 d ' 9 B J __DYNAMIC _dlopen _outbuf __exit_dummy_decl _dlclose _translate _dlerror ___do_global_dtors ___DTOR_LIST__ ___CTOR_LIST__ ___do_global_ctors ___progname start __exit_dummy_ref _etext _inbuf _environ _errno _main _dlsym _edata _end ___main /usr/lib/crt0.o /var/tmp/ccoIZ2291.o gcc2_compiled. ___gnu_compiled_c __main.o _exit.o
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37151795.6E63B8C1>
