[root@localhost gdm]# more /etc/X11/prefdm <...truncated...> # Run preferred X display manager preferred= if[-f /etc/sysconfig/desktop ]; then ./etc/sysconfig/desktop if["$DISPLAYMANAGER"= GNOME ]; then preferred=gdm elif["$DISPLAYMANAGER"= KDE ]; then preferred=kdm elif["$DISPLAYMANAGER"= XDM ]; then preferred=xdm fi fi <...truncated...>
check what's my currently settings of the Display Manager:
Then we may change the GDM's config file: /etc/X11/gdm/gdm.conf
From:
# Automatic login,iftrue the first local screen will automatically logged # in as user as set with AutomaticLogin key. AutomaticLoginEnable=false AutomaticLogin=
To:
# Automatic login,iftrue the first local screen will automatically logged # in as user as set with AutomaticLogin key. AutomaticLoginEnable=true AutomaticLogin=root
1. Under runlevel 3Edit the /etc/inittab the section about getttys, from1:2345:respawn:/sbin/mingetty tty1to1:2345:respawn:/sbin/mingetty --autologin root tty1