Saturday, March 27, 2010

Auto login

To make auto login in runlevel 5, you can change /etc/gdm/gdm.conf.

To change your run level and auto login, you need to do the following.

in /etc/init/rc-sysinit.conf:
---------------
env DEFAULT_RUNLEVEL=3
---------------

in /etc/init/gdm.conf:
---------------
start on (filesystem
and started hal
and tty-device-added KERNEL=tty7
and (graphics-device-added or stopped udevtrigger)
and runlevel [!3])
stop on runlevel [016]
---------------


The default login is getty, which does not support auto login. You need install mingetty and change your /etc/init/tty1.conf as the following:

---------------
# 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 rc RUNLEVEL=[2345]
stop on runlevel [!2345]
respawn
#exec /sbin/getty -8 38400 tty1
exec /sbin/mingetty --autologin setup tty1
----------------

So the runlevel will enable you into runlevel 3,and mingetty will enable the autologin. The next thing you need to do is to auto start x-window.

.xinitrc
----------------
/usr/bin/python /home/setup/python/updated_V19.py
----------------

.profile add the following line to the end.
----------------
startx
----------------

\n

No comments:

Post a Comment