SuSE Linux PowerPC: Version 6.4
echo -en "This is a test-text-line\f" >/dev/ttyS0echo -en "This is a test-text-line\f" >/dev/ttyS1This is a test-text-line
printed on it, the low-level-communication to the printer is not possible.
stty 57600 raw -echo crtscts </dev/ttySXWhere
ttySX is either ttyS1 or ttyS0.
The speed 57600 should work for a DeskWriter but you may have to adjust the
speed too - normal values are 2400, 4800, 9600, 19200, 38400, 57600,
115200 and 230400.
stty 230400 raw -echo cstopb </dev/ttySX stty ixon ixoff </dev/ttySXYou may have to adjust the parameters for your special printer.
Using
man stty
the possible parameter settings are shown.
echo -en "This is a test-text-line\f" >/dev/ttySX
In case of unsuccessfull attempts it is recommended to move the
file /etc/printcap. Log in as root and type
mv /etc/printcap /etc/printcap.save
and after this please try to configure again.
(With rm /etc/printcap you may delete this file.)
/etc/printcap has to be changed:
:br#9600:\
:ty=ixon -imaxbel -ixany -ixoff -crtscts:\
from /etc/printcap
using an editor (e.g. use mcedit /etc/printcap)
because this lines would cause unsuitable standard parameter settings
for the serial interface.
Restart the printer spooler using
/sbin/init.d/lpd restart
lpr /etc/fstablpr /usr/share/ghostscript/5.50/examples/colorcir.ps
/sbin/init.d/boot.local
for example usemcedit /sbin/init.d/boot.local
Installing a printer for PowerPC