From owner-freebsd-questions Wed Nov 10 1:57:40 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dart.sr.se (dart.SR.SE [193.12.91.98]) by hub.freebsd.org (Postfix) with ESMTP id 03AD515206 for ; Wed, 10 Nov 1999 01:57:29 -0800 (PST) (envelope-from gunnar@pluto.sr.se) Received: from honken.sr.se ([134.25.128.27]) by dart.sr.se (8.9.3/8.9.3) with ESMTP id KAA07230; Wed, 10 Nov 1999 10:57:22 +0100 (MET) Received: from pluto.sr.se (pluto.SR.SE [134.25.193.91]) by honken.sr.se (8.7.5/8.7.3) with ESMTP id KAA23092; Wed, 10 Nov 1999 10:57:22 +0100 (MET) Received: (from gunnar@localhost) by pluto.sr.se (8.9.3/8.9.3) id KAA59664; Wed, 10 Nov 1999 10:57:22 +0100 (CET) (envelope-from gunnar) Date: Wed, 10 Nov 1999 10:57:22 +0100 From: Gunnar Flygt To: Ariel Burbaickij Cc: FreeBSD Questions Subject: Re: my printcap once more .Giorgios has asked about it and some othertoo:) Message-ID: <19991110105721.C57511@sr.se> Reply-To: Gunnar Flygt References: <86d7tkuxkv.fsf@localhost.hell.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Nov 09, 1999 at 05:30:02PM +0100, Ariel Burbaickij wrote: > > > On 9 Nov 1999, Giorgos Keramidas wrote: > > > Alfred Perlstein writes: > > > > > On Mon, 8 Nov 1999, Ariel Burbaickij wrote: > > > > > > > First of all,yes i have maanged to bring him so far as to > > > > spit out some bytes.But on rather strange manner:i brought > > > > it up with lpc up lp,previously it was not possible for me > > > > to get it working with lpc start|enable all.As far as > > > > understood it from man pages though,the function > > > > of start|enable and up is rather identical.So > > > > the question #1: > > > > 1)Is it a bug or a feature?What is the > > > > expected way?What is the difference between > > > > up and enable. > > > > > > it seems 'start' will start lpd, while 'enable' will only > > > enable queing on the printer, it assumes you already have > > > lpd running. > > > > Ahem, you're probably right on the spot here. Tried that on my lpd > > tonight and -- sure thing -- it worked exactly like that. It seems that > > the _enable_ command tries to enable queueing without starting a daemon. > > >From /usr/src/usr.sbin/lpr/lpc/cmds.c (line 372) we read: > > > > /* > > * Turn off the group execute bit of the lock file to enable queuing. > > */ > > > > and the enable() function does just that. Only the startpr() function a > > few lines below starts a new daemon if one is not present. > > Ugums it this behaviour as we both have described it. > But i am rather wondering or to quote man pages lpc(8): > up [all |printer]Turns the queue for printer on and enables printing > on printer.So it obviously the save bet. > But some rows previously we read > start [all |printer] Enables printing.Starts a spooling deamon > This description and this behaviour given the question is: > What is the difference then? > Besides,i have seen that solaris and linux are fine > out with just starting lpd daemon during startup procedures > Both of them use as standard at least BSD lpd daemon. > So the question is why it is not sufficent under fbsd? On my systems I have lpd_enable="YES" in /etc/rc.conf and it works like a charm as on most of the FreeBSD systems I know of. > Why have i to type in lpc up all from commmand line? Misconfiguration somewhere > Is it a bug or a feature? > > > > Yet to statemnet about just few bytes. > > > > I use apsfilter and programm claims > > > > that it could handle TIFF format but i got reverse staircase > > > > effect while trying to print out some man pages.So question > > > > #2 is: > > > > How can i handle reverse staircase effect in this particular > > > > case? > > > > > > This is odd, manpages aren't in TIFF format. > > Well even if they are not the effect is the same :)) I get > reverse staircase(staircase starts on the left margin > of a4 format after printing 1 sometimes 2 letter(s) > on previous row) > > > They certainly aren't. At least those that I have seen so far. > > > > > I think it would be great if you could provide us with your > > > printcap file so we can see exactly what's going on. > > > > Oh, and please (not that I can't read it otherwise, but) it would be > > nice if you didn't use base-64 MIME encoded attachments. Just quote > > your printcap entry. Something like: > > > > lp|Line Printer:\ > > :sh:\ > > :mx#0: > > I have not understood it about base-64 MIME i use mailserver > of my collegde(i do not know wheather it has something in common > with your demand not to use this format ,though :))) > > > Regards. > > Best Regards > Ariel Burbaickij > Additional questions are as usually welcome. > > -- > > Giorgos Keramidas, > > "What we have to learn to do, we learn by doing." [Aristotle] > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > ##### @(#)printcap 5.3 (Berkeley) 6/30/90 > ##### $Id: printcap,v 1.9 1998/02/04 12:09:06 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|local line printer:\ > ### :sh:\ > ### :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs: > ### :if=/usr/local/libexec/lpr/freebsug > ##### 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: > # LABEL apsfilter > # apsfilter setup Tue Oct 19 20:27:32 CEST 1999 > # > # APS_BASEDIR:/usr/local/apsfilter > # > # > ascii|lp1|bj200-a4-ascii-mono|bj200 ascii mono:\ > :lp=/dev/lpt0:\ > :sd=/var/spool/bj200-a4-ascii-mono:\ > :lf=/var/spool/bj200-a4-ascii-mono/log:\ > :af=/var/spool/bj200-a4-ascii-mono/acct:\ > :if=/usr/local/apsfilter/filter/aps-bj200-a4-ascii-mono:\ > :mx#0:\ > :sh: > # > lp|lp2|bj200-a4-auto-mono|bj200 auto mono:\ > :lp=/dev/lpt0:\ > :sd=/var/spool/bj200-a4-auto-mono:\ > :lf=/var/spool/bj200-a4-auto-mono/log:\ > :af=/var/spool/bj200-a4-auto-mono/acct:\ > :if=/usr/local/apsfilter/filter/aps-bj200-a4-auto-mono:\ > :mx#0:\ > :sh: > # > raw|lp3|bj200-a4-raw|bj200 auto raw:\ > :lp=/dev/lpt0:\ > :sd=/var/spool/bj200-raw:\ > :lf=/var/spool/bj200-raw/log:\ > :af=/var/spool/bj200-raw/acct:\ > :if=/usr/local/apsfilter/filter/aps-bj200-a4-raw:\ > :mx#0:\ > :sh: -- __o regards, Gunnar ---_ \<,_ email: flygt@sr.se ---- (_)/ (_) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message