EC2 tty configuration


Hi, if on your CentOS instance you can see some of this lines in your /var/log/messages


... /sbin/mingetty[1816]: tty2: No such file or directory
... /sbin/mingetty[1817]: tty3: No such file or directory
... /sbin/mingetty[1818]: tty4: No such file or directory
... /sbin/mingetty[1819]: tty5: No such file or directory
... /sbin/mingetty[1820]: tty6: No such file or directory

edit /etc/inittab and comment the relative lines

# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
#2:2345:respawn:/sbin/mingetty tty2
#3:2345:respawn:/sbin/mingetty tty3
#4:2345:respawn:/sbin/mingetty tty4
#5:2345:respawn:/sbin/mingetty tty5
#6:2345:respawn:/sbin/mingetty tty6

save it and then use the following command

kill -HUP 1

That’s all!

Share

Tags: , , ,