Posted: . At: 6:16 PM. This was 12 years ago. Post ID: 2483
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


Booting into text mode console in Ubuntu 12.04.


I have found out how to stop the graphical login manager and get to a plain text console in Ubuntu, you type this command as root and it will shutdown the Lightdm login manager. Press Ctrl-Alt-F2 and login at the text console then type the command to get rid of the login manager.

sudo stop lightdm

This command will shut down the login manager and allow you to use the framebuffer console to perform tasks such as installing Nvidia drivers that require Xorg to be shut down. The grub.cfg entry should look like this, just make a copy of the existing entry for your distribution and give it a new name. Then for the linux line, remove the quiet splash commands and change it to text. And change vt.handoff from 7 to 1, this will dump you at the 1st virtual console and then you may login to your text console. If you wish to start the login manager then type sudo start gdm or sudo start lightdm depending on whichever graphical login manager you have installed.

menuentry 'Ubuntu, with Linux 3.2.0-8-generic console login' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	set gfxpayload=$linux_gfx_mode
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root 7962f1b3-1c9c-4966-825e-f0b964a3dfdc
	linux /boot/vmlinuz-3.2.0-8-generic root=UUID=7962f1b3-1c9c-4966-825e-f0b964a3dfdc ro text vt.handoff=1
	initrd	/boot/initrd.img-3.2.0-8-generic
}

This is a nice alternative to the old /etc/inittab system that Red Hat distributions used.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.