Chapter 4: Installing Optional Peripherals
Helpful Serial Port Commands
70
5. Add the following line to your ~/.login file. This sets the terminal type,
syntax, and erase/kill parameters automatically when you log in:
% eval 'tset -s -Q'
6. Check terminal connection and function using the following:
% cat /etc/group > /dev/ttyd1
% ps -def | grep getty
To show the standard settings on a particular serial port, become superuser
and enter
x
# stty < /dev/ttyd
where x is the number of the tty port on which you want information.
To show the various settings on a particular serial port, enter
# stty -a < /dev/ttyd
To change the baud rate on a particular serial port, enter the following (the
example is 2400):
# stty 2400 < dev/ttyd
For additional useful information on serial ports and configuration, see the
reference (man) pages for the following:
•
inittab
•
gettydefs
•
ttytype
•
terminfo
•
stty
•
termio
x
x