SuSE Linux: Versions 6.0 to 7.3
You want to run your printer on the serial port.
From SuSE Linux 8.0 on, refer to the "Reference" manual.
file:/usr/share/doc/howto/en/html/Printing-HOWTO/
Refer to the following URL for more information on serial printers:
file:/usr/share/doc/howto/en/html/Printing-HOWTO/kernel.html
.
plp
", series
"n
") as the printer spooler
instead of the BSD spooler (package "lprold
").
If you use the BSD spooler, proceed as described below.
/etc/printcap
.
In addition to the usual entries, the following serial port's
parameters should be present, too:
:br#9600:\ :ty=ixon -imaxbel -ixany -ixoff -crtscts:\
The entry "br
" defines the baud rate, whereas "ty
"
contains the "stty
" options. Both values must be tuned
to your hardware. Use man stty
to display all possible stty options.
The speed must also be adapted to your system's features. The usual values are:
2400, 4800, 9600, 19200, 38400, 57600, 115200, and 230400.
For example, the following stty settings should work for an HP DeskJet 500:
ixon -ixoff -imaxbel -opost
See also the article
PPC: Printing with Old Macs -- Serial Printers
/etc/printcap
.
The serial port's parameters can be defined with the commands
setserial
and stty
.
Refer to
man setserial
and man stty
.
The above-mentioned options from /etc/printcap
could be set, for example, with the command:
stty 9600 ixon -imaxbel -ixany -ixoff -crtscts </dev/ttySXNote that
ttySX
must be customized. Use
ttyS0
or ttyS1
for normal cases.
If you insert a suitable setserial or stty call in the file
/sbin/init.d/boot.local
or, from SuSE Linux 7.1 on, in the file
/etc/init.d/boot.local
the command will be automatically executed every time you boot the system.
In addition, the file /etc/printcap
must also be adapted.
Remove, with an editor, all lines resembling:
:br#9600:\ :ty=ixon -imaxbel -ixany -ixoff -crtscts:\The reason is that these lines set standard parameters not suitable for serial ports (because the BSD spooler does not detect the option "ty"). The parameters to be used, unchanged, are those set by means of the commands above (during the boot process).