Console booting in Linux

Usually all the linux distributions do start the graphical environment automatically. Its good, but it becomes little pain of linux nerds, they want to use it in there own ways. So this is a simple trick which will enable you to boot in console mode with help of Grub.

You just need to edit the following file.

/etc/default/grub

And the find the following line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

and replace it with following.

GRUB_CMDLINE_LINUX_DEFAULT="text"

Save the file and then execute following command in the command window ( Terminal / Console ).

sudo update-grub


Thats is, next time you are going to boot in console mode. But, next thing is how run the graphical console.

Just do this, and it will run you default graphical manager.

startx

If you wish to do some other Graphical desktop then you have to create and .xinitrc file inside your home directory.

Few examples of .xinitrc files :

Example 1 : For cinnamon desktop environment.

#!/bin/sh
#exec gnome-session
exec gnome-session --session=cinnamon

Example 2 : For gnome classic.

#!/bin/sh
#exec gnome-session
exec gnome-session --session=gnome-classic

Enjoy tweaking.

3 thoughts on “Console booting in Linux

Leave a Reply