Serial Printer
Albrecht Dreß
yellowdog-general@lists.terrasoftsolutions.com
Thu Nov 21 12:05:01 2002
--tThc/1wpZn/ma/RB
Content-Type: text/plain; format=flowed; charset=ISO-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi Dan!
I have an old StyleWriter II running fine with a 7300... Just put the=20
following into /etc/printcap:
~~~snip here~~~
lp:\
:sd=3D/var/spool/lpd/lp:\
:mx#0:\
:sh:\
:lp=3D/dev/stylewriter:\
:lf=3D/var/spool/lpd/lp.log:\
:px#2975:\
:py#4210:\
:sf:\
:rw:\
:if=3D/usr/local/sbin/lp2stylewriter.sh:
~~~snip here~~~
Then make a symlink named /dev/stylewriter to /dev/ttyS0 (or 1, depends on=
=20
your machine), and use the attached file as input filter. Please note that=
=20
this is all configured for A4 paper (210 x 297 mm), so if you use letter,=
=20
you may have to change some settings.
Cheers,
Albrecht.
Am 21.11.02 19:03:11 schrieb(en) Dan Koch:
> Hi folks,
>=20
> Has anyone had any luck getting an Apple Stylewriter to work? The Printer=
=20
> Configuration GUI under YDL 2.3 seems to think that lpstyl is available=
=20
> for a LOCAL printer type, but I could not find the driver. So I downloade=
d=20
> and installed the tar ball=20
> (http://homepage.mac.com/monroe/styl/stylewriter.tar.gz). I followed the=
=20
> instructions but can't make the direct print debug script work. I wanted=
=20
> to test that first before I configure the /etc/printcap file. I verifed=
=20
> that the printer works under MacOS 9.
>=20
> Thanks,
> Dan
>=20
>--=20
> Dr. Daniel B. Koch
> Assoc Prof, Elec & Comp Engr (http://www.ece.utk.edu/~koch)
> Director, Applied Visualization Center (http://viz.utk.edu)
>=20
> _______________________________________________
> yellowdog-general mailing list
> yellowdog-general@lists.terrasoftsolutions.com
> http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general
--=20
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Albrecht Dre=DF - Johanna-Kirchner-Stra=DFe 13 - D-53123 Bonn (German=
y)
Phone (+49) 228 6199571 - mailto:albrecht.dress@arcor.de
_________________________________________________________________________
--tThc/1wpZn/ma/RB
Content-Type: text/x-sh; charset=us-ascii
Content-Disposition: attachment; filename="lp2stylewriter.sh"
#!/bin/bash
#
#
GS=/usr/bin/gs
GS_OPTS="-q -dNOPAUSE -dBATCH -sDEVICE=pbmraw -r360x360 -sPAPERSIZE=a4"
#
A2PS=/usr/local/bin/a2ps
A2PS_OPTS="-q -1 -E -M A4 --prologue=gray -o -"
#
LPSTYL=/usr/local/sbin/lpstyl
LPSTYL_OPTS="-p a4"
# ----------------------------------------------------------------------
HEAD=`dd bs=4 count=1 2> /dev/null`
if [ "$HEAD" = "%!PS" ] ; then
(echo -n $HEAD; cat -) |\
$GS $GS_OPTS -sOutputFile=- - |\
$LPSTYL $LPSTYL_OPTS
else
unset fuser
unset fhost
while [ -n "$1" ] ; do
if [ "$1" = "-n" ] ; then
shift
fuser=$1
fi
if [ "$1" = "-h" ] ; then
shift
fhost=$1
fi
shift
done
(echo -n "$HEAD"; cat -) |\
$A2PS --right-title="Printed by $fuser@$fhost" $A2PS_OPTS |\
$GS $GS_OPTS -sOutputFile=- - |\
$LPSTYL $LPSTYL_OPTS
fi
--tThc/1wpZn/ma/RB--