PASSIVE
|^^^^^^^^^^| | |
| | | TERMINAL |
| TERMINAL | | |
| | | |
-----------\ ------------
// \ --tty14---| |
__________________ \ | _______________________
/ - - - - - / | | \ - - - - - - - - \
/_________________/ | | _____________________\
| |
-------------------------
---------Terminal
COMPUTER
\\
ACTIVE
|^^^^^^^^^^| | |
| | | TERMINAL |
| TERMINAL | | |
| | | |
-----------\ ------------
__________________ \ | _______________________
/ - - - - - / | | \ - - - - - - - - \
/_________________/ | | _____________________\
| |
-------------------------
---------Terminal
COMPUTER
\\
BOTCLEAN
LNEXT
ONELCLEAN
UTERMINAL
TERMINAL
NEXT
$V1$
HILINE
PAUSE
q - to quit, <CR> - to continue
GO
Once you have physically connected a new terminal to the computer
system, you need to tell UNIX to run the getty process for the
newly connected terminal.
Until a getty process begins to run on the port to which the
new terminal is connected, no one on that terminal can log
in to your UNIX system.
Assuming that the serial port id is tty14, the process for activating
this port through software involves two steps:
1 - Setting the terminal mode to 1 in the /etc/ttys file: 1mtty14
2 - Having the init process read the /etc/ttys file,
2 - Having the init process read the /etc/inittab file,
thus activating the getty process for the port!
1mtty10
/etc/getty tty10 9600
1mtty11
/etc/getty tty11 9600
0itty12
/etc/getty tty12 9600
1itty13
/etc/getty tty13 9600
0mtty14
/etc/getty tty14 9600
/etc/ttys file
/etc/inittab file
The setting of the terminal mode to active may be done using
an editor. Getting the init process to read this entry is
done either by having a user log in to an active port, by using
the kill -2 1 command, or of course by rebooting the system!
the kill -1 1 command, or of course by rebooting the system!
A much easier approach to activate a port is by using the enable
command, whose syntax is: enable tty where tty is the terminal id.
So at the prompt, please use
the enable command to enable
getty on the port /tty14!
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type enable /dev/tty14
Please type enable /dev/tty14
FORGET1
enable /dev/tty14
Observe the result on the terminal:
/etc/inittab updated
/etc/ttys updated
$PROMPT$
1mtty10
/etc/getty tty10 9600
1mtty11
/etc/getty tty11 9600
0itty12
/etc/getty tty12 9600
1itty13
/etc/getty tty13 9600
1mtty14
/etc/getty tty14 9600
/etc/ttys file
/etc/inittab file
A correct result will be
followed by the next prompt.
$PROMPT$