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.


Comments

3 responses to “Console booting in Linux”

  1. Great!!! I was looking for such solution.

  2. Yes,great. But have you checked it after installing KDE. AFAIK it din’t work for me at KDE.

  3. I’ve not used KDE, though you can post here what error you get while doing startx. Also, Let me look into you .xinitrc file.

Leave a Reply

%d bloggers like this: