linux-l: Printserer axis 560

Günther Frick gfrick at chemie.fu-berlin.de
Sa Jan 6 11:57:38 CET 2001


Aus der Linux-Printin-Howto:

11.6. Running an if for remote printers with old LPDs
One oddity of older versions of lpd is that the if is not run for remote
printers. (Versions after 0.43 or so have the
change originated on FreeBSD such that the if is always run). If you
find that you need to run an if for a remote
printer, and it isn’t working with your lpr, you can do so by setting up
a double queue and requeueing the job. As an
example, consider this printcap:
lj-5:\
:lp=/dev/null:sh:\
:sd=/var/spool/lpd/lj-5:\
:if=/usr/lib/lpd/filter-lj-5:
lj-5-remote:sh:rm=printer.name.com:\
:rp=raw:sd=/var/spool/lpd/lj-5-raw:

in light of this filter-lj-5 script:
#!/bin/sh
gs <options> -q -dSAFER -sOutputFile=- - | \
lpr -Plj-5-remote -U$5

The -U option to lpr only works if lpr is run as daemon, and it sets the
submitter’s name for the job in the resubmitted
queue correctly. You should probably use a more robust method of getting
the username, since in some cases it is not
argument 5. See the man page for printcap
(http://www.linuxprinting.org/man/printcap.5.html).

Ich denke, das ist ungefähr das was Du brauchst. Der erste Eintrag in
der /etc/printcap schickt den Printjob an Ghostscript, um daraus
druckerspezifischen Code zu machen (hier PCL5). Ghostscript (eingebettet
in ein Shell-Script) gibt den PCL5-Code über den LPD an den Drucker
"lj-5-remote". Du musst hier rm=printer.name.com durch rm=ip-nr des
Printservers ersetzen. Das gleiche hättest Du auch in der deutschen
Überstzung der HowTo gefunden. Dummerweise haben sich dort jedoch einige
Fehler eingeschlichen, die einem das Leben schwer machen können.

Günther

Martin Amberg wrote:
> 
> > On Fri, Jan 05, 2001 at 08:29:41PM +0100, Martin Amberg wrote:
> > > Hallo,
> > > ich habe einen Printserver von Axis das modell lautet axis 560. Wenn
> > ich
> > > den printserver in der printcap einrichte kann man auch au den
> > angesclossenen
> > > drucker drucken, aber leider nur reine textdateien. Sobald ich z.B.
> > etwas
> > > aus AbiWord Netscape etc. drucken moechte druckt der drucker nur
> > seitenweise
> >
> > 1. Drucker lokal einrichten. Dann sollten die passenden Filter
> >    von Postscript zur jeweiligen Druckersprache stehen
> > 2. /etc/printcap ändern. Aus 'lp=/dev/lp0' wird 'lp=/dev/null'.
> >    Zusätzlich trägst Du ein:
> >       'rm=<IP-Addr Deines Printservers>'
> >               und
> >       'rp=<Printer Name auf dem Print-Server>'
> >
> > ...das sollte es gewesen sein.
> >
> > MfG, JBG
> >
> > --
> > Fehler eingestehen, Größe zeigen: Nehmt die Rechtschreibreform
> > zurück!!!
> > /* Jan-Benedict Glaw <jbglaw at lug-owl.de> -- +49-177-5601720 */
> > keyID=0x8399E1BB fingerprint=250D 3BCF 7127 0D8C A444 A961 1DBD 5E75
> > 8399 E1BB
> >      "insmod vi.o and there we go..." (Alexander Viro on linux-kernel)
> >
> 
> Hallo,
> das der  drucker nicht druckt ist ja nicht das problem, so ein eintrag
> steht
> bei mir schon in der printcap. Aber trotzdem druckt er diesen Postscript
> code aus.
> 
> mfg martin
> 
> --
> Sent through GMX FreeMail - http://www.gmx.net
> 
>   ------------------------------------------------------------------------
>    Part 1.2Type: application/pgp-signature



Mehr Informationen über die Mailingliste linux-l