> From [EMAIL PROTECTED] Mon Sep 25 11:57:21 2000
> Date: Mon, 25 Sep 2000 10:59:35 -0700
> From: "Ron 'The InSaNe One' Rosson" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: Newbie Help
>
> I just installed LPRng and ifhp from The FreeBSD ports collection for
> many reasons I wont go into here. I am having a hard time getting it
> work with my printers and am getting a little frusttrated.
>
> Here is what I have for printers available to me on my networks:
>
> 1. Texas Instruments microLaser (Postscript only) connected to the
> network via a JetDirect EX plus
>
> 2. Epson Stylus 500 connected to the network via an Win95 machine and a
> FreeBSD server running samba to handle the printing.
>
> 3. An HP4 with a HP Jetdirect card installed.
>
> Here is my /etc/printcap before I switched to LPRng:
>
> #
> #TI microLaser (home)
> ti:rm=hpjet:rp=raw:mx=0:sh:sd=/var/spool/lpd/ti: \
> ti2:if=/usr/local/libexec/psif:rm=hpjet:rp=raw:mx=0:sh:sd=/var/spool/lpd/ti2:
> tiM:if=/usr/local/libexec/psifm:rm=hpjet:rp=raw:mx=0:sh:sd=/var/spool/lpd/tiM:
>
> # Epson Stylus Color 500 on Win95 (home)
> ep|samba line printer Epson:lp=:rm=the:rp=ep:sh:mx#0:sd=/var/spool/lpd/ep:
>
> # HP4 Printer (office)
> hp4|lj1_text|text1:lp=:rm=mps:rp=text:sd=/var/spool/lpd/hp4:
> hp4pcl|lj1_raw|raw1:lp=:rm=mps:rp=raw:sd=/var/spool/lpd/hp4pcl:
You want to use:
#
#TI microLaser (home)
ti:rm=hpjet:rp=raw:mx=0:sh:sd=/var/spool/lpd/ti:
ti2:if=/usr/local/libexec/psif:rm=hpjet:rp=raw:mx=0:sh:sd=/var/spool/lpd/ti2:
tiM:if=/usr/local/libexec/psifm:rm=hpjet:rp=raw:mx=0:sh:sd=/var/spool/lpd/tiM:
# Epson Stylus Color 500 on Win95 (home)
ep|samba line printer Epson:rm=the:rp=ep:sh:mx#0:sd=/var/spool/lpd/ep:
# HP4 Printer (office)
hp4|lj1_text|text1:rm=mps:rp=text:sd=/var/spool/lpd/hp4:
hp4pcl|lj1_raw|raw1:rm=mps:rp=raw:sd=/var/spool/lpd/hp4pcl:
>
> here is the contents of the /usr/local/libexec/psif file:
>
>
> #!/bin/sh
> #
> # psif - Print PostScript or plain text on a PostScript printer
> # Script version; NOT the version that comes with lprps
> # Installed in /usr/local/libexec/psif
> #
> read first_line
> first_two_chars=`expr "$first_line" : '\(..\)'`
>
> if [ "$first_two_chars" = "%!" ]; then
> #
> # PostScript job, print it.
> #
> echo "$first_line" && cat && printf "\004" && exit 0
> exit 2
> else
> #
> # Plain text, convert it, then print it.
> #
> ( echo "$first_line"; cat ) | /usr/local/bin/a2ps -nL -nH -p -ns -1 && printf
>"\004" && exit 0
> exit 2
> fi
>
>
> Would like some assistance in getting converted over to LPRng
Should work out of the box. What is the problem?
>
> TIA
> --
> ------------------------------------------------------------------------------
> Ron Rosson ... and a UNIX user said ...
> The InSaNe One rm -rf *
> [EMAIL PROTECTED] and all was /dev/null and *void()
> ------------------------------------------------------------------------------
> Dial M for Sampo.
Patrick Powell Astart Technologies,
[EMAIL PROTECTED] 9475 Chesapeake Drive, Suite D,
Network and System San Diego, CA 92123
Consulting 858-874-6543 FAX 858-279-8424
LPRng - Print Spooler (http://www.astart.com)
-----------------------------------------------------------------------------
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------