Where is the /etc/inittab file or how to set the default runlevel
Posted
by
YumYumYum
on Ask Ubuntu
See other posts from Ask Ubuntu
or by YumYumYum
Published on 2011-10-24T20:02:46Z
Indexed on
2012/03/28
17:45 UTC
Read the original article
Hit count: 320
I was trying to find the /etc/inittab
where I do my autologin. But in Ubuntu 11.04 that file seems to be lost. Is this the correct way you do it in Ubuntu?
# Auto Login for Ubuntu how?
# 1. apt-get install mingetty
# 2. vim /etc/init/tty1.conf
# 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 <PUTYOUR_USERNAME_HERE> tty1
^
|____ edited only this line, seems to be working
© Ask Ubuntu or respective owner