auto login to linux console in fedora

Jump to: navigation, search

Edit file /etc/event.d/tty1

vi /etc/event.d/tty1


exec /sbin/mingetty tty1

Replace with

exec /sbin/mingetty --autologin root tty1

On my local test web server

[[email protected] event.d]# cat /etc/event.d/tty1
# tty1 - getty
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.

start on stopped rc2
start on stopped rc3
start on stopped rc4

stop on runlevel 0
stop on runlevel 1
stop on runlevel 6

#exec /sbin/mingetty tty1
exec /sbin/mingetty --autologin root tty1
[[email protected] event.d]#