I've installed Ubuntu 12.04 & and edited the /etc/default/grub file to auto boot into text mode. but every time I turn on the computer it asks for username and password (in text mode), I wanted it to automatically login without asking for username and password, so in graphical mode I went to "System Setting->User Accounts" and checked the "Automatic login", but it didn't work. so what should I do to automatically log in even in text mode?
To boot into text mode
sudo vim /etc/default/grub
and change the following line:
exit and enter:
Automatically login in text mode without specifying userid or password
in file /etc/init/tty1.conf
/etc/init/tty1.conf is the upstart job that runs at the appropriate time to start the terminal session on tty1. Adding the
Upstart is the Ubuntu system that operates as the kernel init process (process 1).
I tested this on my tty6 and it worked great. Because of the upstart respawn line if you exit the shell it will start back up again automatically.
open terminal and do as
then find this line and change as shown below
now close the editor and do as
and do restart now
Also comment GRUB_HIDDEN_TIMEOUT=0 This line is for unhiding the GRUB menu (comment is to put "#" in the line )
and to start the x just type
If you use Kubuntu, replace gdm with kdm in the command above.
if it still does the graphical boot/shutdown, but it will drop you at the command line after boot. You should probably check the grub configuration. For that Click Here
Pardon me for asking, but why do you wan't to. There might be a better solution like using the alternative iso image or going into recovery mode (which should have some kind of command line only interface in it somewhere). If you could tell me your problem that you need solved in a different way and your situation I might be able to help you more, but what I recommend trying is booting to recovery mode.