This simple tutorial will show you how to boot your Ubuntu directly into text mode and log-in automatically without entering username/password by manual.

First make Ubuntu boot into text mode:

Hit Ctrl+Alt+T to launch a terminal window. Then edit /etc/default/grub with your favorite editor, for example:

sudo gedit /etc/default/grub

Find out this line:


change it into:


Apply changes:

sudo update-grub

At next boot, your Ubuntu will directly boot into text mode, you can start graphical interface via this command:

sudo lightdm

Automatic login without username/password in text mode:

Add  -a <your-user-name> to the line:

exec /sbin/getty -8 38400 tty1

in file /etc/init/tty1.conf

For example, auto login with user meilin:

exec /sbin/getty -8 38400 tty1 -a meilin

/etc/init/tty1.conf is the upstart job that runs at the appropriate time to start the terminal session on tty1. Adding the -a option tells getty to call the login program with the -f option to sign that user in, bypassing the user prompt from getty and the password prompt from login.

via askubuntu